broadcast_tx_commit

Sends a transaction and waits until transaction is fully complete (It has a 10 second timeout).

📘

Supported on NEAR (mainnet) only.

Parameters

  • signed transaction - string - The signed transaction encoded in base64

Returns

  • status- The status of the transaction
    • SuccessValue- The amount successfully transferred
  • transaction- The transaction object
    • signer_id- The account id of the transaction originator
    • public_key- The public key of the signer
    • nonce- The number of transactions made by the sender prior to this one encoded as hexadecimal
    • receiver_id- The account id of the transaction receiver
    • actions- An action built from near-api-js.transactions
      • Transfer - The tokens transferred
      • deposit- The amount deposited
      • signature- The standard ed25519 signature type
      • hash- The hash of the block
    • transaction_outcome- The transaction result
      • proof- The proof of the transaction
      • block_hash- The hash of the block this transaction was associated with
      • id- The transaction id
      • outcome- The outcome associated with transaction
        • logs- Logs for the application being executed by this transaction
        • receipt_ids- The ids of the receipt
        • gas_burnt- The gas burnt while executing the transaction
        • tokens_burnt- The amount of tokens burnt
        • executor_id- The id of the originator
        • status- The status of the transaction
          • SuccessReceiptId- The transaction id of the successful receipt
    • receipts_outcome- The receipts outcome for the transaction
      • proof- The transaction proof
      • block_hash- The hash of the block this transaction was associated with
      • id- The transaction id
      • outcome- The outcome associated with transaction
        • logs- Logs for the application being executed by this transaction
        • receipt_ids- The id of the receipts
        • gas_burnt- The gas burnt while executing the transaction
        • tokens_burnt- The amount of tokens burnt
        • executor_id- The id of the originator
        • status- The status of the transaction
          • SuccessReceiptId- The transaction id of the successful receipt

API Endpoint

The format of a Near API endpoint is
https://open-platform.nodereal.io/{{apiKey}}/near/

Here is an example:
https://open-platform.nodereal.io/4c0a1c23661a4e26bcbcwed461e34ea9/near/

Example

Request

curl https://open-platform.nodereal.io/{{apiKey}}/near/ \
 -X POST \
 -H "Content-Type: application/json" \
 --data '{"method":"broadcast_tx_commit","params":["signedtransaction base64 encoded"],"id":1,"jsonrpc":"2.0"}'

Result