Skip to main content

Broadcast Transaction (Commit)

broadcast_tx_commit request type

This endpoint allows you to send a signed transaction and wait until it is fully executed and committed on the NEAR blockchain.

Network
FastNear API keyNo saved key
Get API key
Endpointhttps://rpc.mainnet.fastnear.com
Authnone detected
Live Response

Responses from the selected endpoint appear here after you run a request.

Live response output will appear here after you run a request.

Request reference

application/json

This operation accepts a JSON-RPC body over POST to /.

Required request inputs: yes

{
  "jsonrpc": "2.0",
  "id": "fastnear",
  "method": "broadcast_tx_commit",
  "params": {
    "signed_tx_base64": "DgAAAG1pa2UubmVhcgCpPJgEEFUwQjFQvL8V3CnZ0h688WG5sVsKE8JYM37ax2cUjgEAAAAAAAAADQAAAG1pa2V0ZXN0Lm5lYXIPfFBmYNAIe2/MicVhDXbvT3w06LxS2OCF0UHIYgjNDQAAAHRlc3RpbmcgbWVtbwEAAAADAQAAAAAAAAAAAAAAAAAAAA=="
  }
}

Request schema

object
requires jsonrpc, id, method, params
jsonrpc *string
2.0
id *string

Example: fastnear

method *string
broadcast_tx_commit
params *object
requires signed_tx_base64
signed_tx_base64 *string

Base64-encoded signed transaction. This must be generated for the signing account just before submission.

wait_untilstring

Desired level of execution status guarantee

NONEINCLUDEDINCLUDED_FINALEXECUTEDEXECUTED_OPTIMISTICFINAL

Default: EXECUTED_OPTIMISTIC

Response reference

200 application/json

Successful response

Response schema

objectJsonRpcResponse
requires jsonrpc, id
jsonrpc *string
2.0
id *one of
stringnumber
resultobject
requires final_execution_status
final_execution_status *string

Desired level of execution status guarantee

NONEINCLUDEDINCLUDED_FINALEXECUTEDEXECUTED_OPTIMISTICFINAL
receiptsarray

Receipts generated from the transaction

itemsobject
receipts_outcomearray

The execution outcome of receipts.

itemsobject
statusobject

One of multiple possible types

transactionobject

Signed Transaction

transaction_outcomeobject

The execution outcome of the signed transaction.

errorobject
codeinteger
messagestring
dataobject