Skip to main content

Send Transaction

send_tx request type

This endpoint allows you to send a signed transaction to the NEAR blockchain. Returns the final execution outcome when the transaction is complete.

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": "send_tx",
  "params": {
    "signed_tx_base64": "ExampleBase64EncodedTransaction",
    "wait_until": "EXECUTED_OPTIMISTIC"
  }
}

Request schema

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

Example: fastnear

method *string
send_tx
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