Skip to main content

broadcast_tx_commit RPC Method

Sends a transaction and waits until transaction is fully complete (It has a 10 second timeout).

Updated on
Oct 4, 2023

broadcast_tx_commit RPC Method

Parameters

signed transaction
string
The signed transaction in base64 encoding

Returns

status
The status of the transaction
successValue
The amount successfully transferred
transaction
The transaction object
signer_id
The account id of the transaction originator
public_key
The public key of the signer
nonce
The number of transactions made by the sender prior to this one encoded as hexadecimal
receiver_id
The account id of the transaction receiver
actions
An action built from near-api-js.transactions
transfer
The tokens transferred
deposit
The amount deposited
signature
The standard ed25519 signature type
hash
The hash of the block
transaction_outcome
The transaction result
proof
The proof of the transaction
block_hash
The hash of the block this transaction was associated with
id
The transaction id
outcome
The outcome associated with transaction
logs
Logs for the application being executed by this transaction
receipt_ids
The ids of the receipt
gas_burnt
The gas burnt while executing the transaction
tokens_burnt
The amount of tokens burnt
executor_id
The id of the originator
status
The status of the transaction
successReceiptId
The transaction id of the successful receipt
receipts_outcome
The receipts outcome for the transaction
proof
The proof of the transaction
block_hash
The hash of the block this transaction was associated with
id
The transaction id
outcome
The outcome associated with transaction
logs
Logs for the application being executed by this transaction
receipt_ids
The ids of the receipt
gas_burnt
The gas burnt while executing the transaction
tokens_burnt
The amount of tokens burnt
executor_id
The id of the originator
status
The status of the transaction
successReceiptId
The transaction id of the successful receipt
Request
1
curl https://docs-demo.near-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method":"broadcast_tx_commit","params":["signedtransaction base64 encoded"],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free