POSTbroadcast_tx_async

NEAR Mainnethttps://near-mainnet.nodit.io/

Sends a signed transaction to the network and returns the transaction hash immediately, without waiting for execution.

NEAR marks this method as deprecated. It is equivalent to send_tx with wait_until: "NONE"; send_tx is recommended for new implementations. Send the parameters as a { "signed_tx_base64": … } object; an array holding only the signed transaction string (["…"]) is also accepted. wait_until is ignored if provided. To check the execution result with the returned hash, call the tx method. Malformed base64 or borsh data returns PARSE_ERROR.

Request Body
jsonrpcstringrequired
idstringrequired

Request ID. Any string; it is returned unchanged in the response.

methodstringrequired
signed_tx_base64stringrequired

A borsh-serialized SignedTransaction, encoded in base64.

Responses
jsonrpcstring

JSON-RPC version

idstring

Request ID

resultstring

The hash of the sent transaction (base58).

namestring (enum)

Error class. REQUEST_VALIDATION_ERROR (invalid request), HANDLER_ERROR (processing error), INTERNAL_ERROR (node internal error)

causeobject

The specific cause of the error.

namestring

Name of the error cause (e.g. UNKNOWN_BLOCK, UNKNOWN_ACCOUNT, PARSE_ERROR)

infoobject

Additional information about the error (block hash, height, account ID, etc.)

codeinteger

Legacy JSON-RPC error code (e.g. -32000 server error, -32700 parse error, -32601 method not found)

messagestring

Legacy error message

datastring

Legacy error details

X-API-KEY
RequestCU40
cURL
curl -X POST "https://near-mainnet.nodit.io/" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": "dontcare",
    "method": "broadcast_tx_async",
    "params": {
      "signed_tx_base64": "QAAAADc4MWY4NzM0MTEyYzhlYjk3OTU4OGVjODUzODI5ZmVmNjZmOWU2ZjZhODBlOTg2OTc2ZmEyYmY4MDlkNWFkNDMAeB+HNBEsjrl5WI7IU4Kf72b55vaoDphpdvor+AnVrUMBU6K348gAAEAAAAAzMGQ2MjA1Yjg5ZTAyZDJjMzRhZGUxNjVhZTk3MDVmOGQ5ZTgwZDBlMzA0MDYxY2IxMGI4ZTU2YzhlNzAzZjYyvu07kVkCPg4EXK924R29YyEvUBYvKvTIB8mri0er3EwBAAAAAwAAII+tMHr3w1+lAAAAAAAAvS+JY93baTzDI2gRbUR5+KbUAbgdDORq8SnghPxAnMsaUtxGkCL4v/Z77uoc83OQdP8Oord4onDZwctNWoRZAQ=="
    }
  }'
Response
Example · 200
{
  "jsonrpc": "2.0",
  "id": "dontcare",
  "result": "4QzusrLJXqUogS4vipyH6XoJ5BRe6tC3HKakhvBnfAE8"
}