File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Sources/web3swift/Operations Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,13 @@ public class WriteOperation: ReadOperation {
13
13
// FIXME: Rewrite this to CodableTransaction
14
14
/// Sends raw transaction for write operation.
15
15
/// - Parameters:
16
- /// - password: Password for private key.
17
- /// - policies: Custom policies for how to resolve (optional). Default is auto.
16
+ /// - password: Password for the private key in the keystore manager attached to the provider
17
+ /// you set to `web3` passed in the initializer.
18
+ /// - policies: Determining the behaviour of how transaction attributes like gas limit and
19
+ /// nonce are resolved. Default value is ``Policies/auto``.
20
+ /// - sendRaw: If set to `true` transaction will be signed and sent using `eth_sendRawTransaction`.
21
+ /// Otherwise, no signing attempts will take place and the `eth_sendTransaction` RPC will be used instead.
22
+ /// Default value is `false`.
18
23
public func writeToChain( password: String , policies: Policies = . auto, sendRaw: Bool = false ) async throws -> TransactionSendingResult {
19
24
try await policyResolver. resolveAll ( for: & transaction, with: policies)
20
25
You can’t perform that action at this time.
0 commit comments