NEAR Protocol RPC: Broadcast Transaction Commit (1.0.0)

Send transaction and wait for it to be committed to the blockchain

Languages
Servers
Mainnet
https://rpc.mainnet.fastnear.com/
Testnet
https://rpc.testnet.fastnear.com/

Send transaction and wait for commit

Request

Submits a transaction and waits until it's fully committed to the blockchain

Bodyapplication/jsonrequired
jsonrpcstringrequired
Value"2.0"
idstringrequired
Example: "fastnear"
methodstringrequired
Value"broadcast_tx_commit"
paramsobjectrequired
params.​signed_tx_base64stringrequired

Base64-encoded signed transaction

params.​wait_untilstring

Desired level of execution status guarantee

Default "EXECUTED_OPTIMISTIC"
Enum"NONE""INCLUDED""INCLUDED_FINAL""EXECUTED""EXECUTED_OPTIMISTIC""FINAL"
curl -i -X POST \
  https://rpc.mainnet.fastnear.com/ \
  -H 'Content-Type: application/json' \
  -d '{
    "jsonrpc": "2.0",
    "id": "fastnear",
    "method": "broadcast_tx_commit",
    "params": {
      "signed_tx_base64": "DgAAAG1pa2UubmVhcgCpPJgEEFUwQjFQvL8V3CnZ0h688WG5sVsKE8JYM37ax2cUjgEAAAAAAAAADQAAAG1pa2V0ZXN0Lm5lYXIPfFBmYNAIe2/MicVhDXbvT3w06LxS2OCF0UHIYgjNDQAAAHRlc3RpbmcgbWVtbwEAAAADAQAAAAAAAAAAAAAAAAAAAA=="
    }
  }'

Responses

Successful response

Bodyapplication/json
jsonrpcstringrequired
Value"2.0"
idstring or numberrequired
One of:
string
resultobject
errorobject
Response
application/json
{ "jsonrpc": "2.0", "id": "string", "result": { "final_execution_status": "NONE", "receipts": [], "receipts_outcome": [], "status": {}, "transaction": {}, "transaction_outcome": {} }, "error": { "code": 0, "message": "string", "data": {} } }