Skip to main content

Broadcast Transaction (Async)

broadcast_tx_async request type

This endpoint allows you to send a signed transaction asynchronously. It returns immediately with the transaction hash without waiting for execution.

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_async",
  "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_async
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
resultstring

Base58-encoded hash

errorobject
codeinteger
messagestring
dataobject