Sign and Broadcast Transaction from Wallet
Last updated
Last updated
POST /wallets/{walletId}/transactions
Sign & Broadcast transaction enables communication with any arbitrary smart contract by replicating the native transaction protocol fields in the body of the request. It executes a signature, constructs the transaction for the target chain, and then broadcasts the transaction. It can be used to make native payments, call smart contract functions, and even deploy new smart contracts. Note for reading from a "view" function on EVM chains, please use Call Read Function.
User action signature required. See User Action Signing for more information.
Request headers required. See Request Headers for more information.
Authentication required. See Authentication Headers for more information.
Wallets:BroadcastTransaction
Always Required
walletId
Unique identifier of the Wallet
. ex. wa-1f04s-lqc9q-xxxxxxxxxxxxxxxx
The body of the request will depend on the chain you are targeting. Please find the chain in question by expanding this section in the left hand navigation:
Pending
The request is pending approval due to a policy applied to the wallet
Executing
The request is approved and is in the process of being executed (note this status is only set for a short time between pending and broadcasted)
Broadcasted
The transaction has been successfully written to the mempool
Confirmed
The transaction has been confirmed on-chain by our indexing pipeline
Failed
Indicates a system failure to complete the request
Rejected
The request has been rejected by a policy approval action