Retrieves a receipt using it's ID. (without a status or execution outcome)
Supported on NEAR (mainnet) only.
Parameters
receipt_id
- string - The receipt id of the transaction originator
Returns
predecessor_id
- The id of the account that was the previous contract in the chainreceipt
- The receipt of the transactionAction
- The action to be performed on the receiver_idactions
- An action built from near-api-js.transactionsTransfer
- The tokens transferreddeposit
- The tokens deposited
gas_price
- Integer of the gasPrice used for each paid gas encoded as a hexadecimalinput_data_ids
- A vector of input data with the data_ids required for the execution of this receiptoutput_data_receivers
- A vector of output data receivers. It indicates where to send outgoing data. Each DataReceiver consists of data_id and receiver_id for routingsigner_id
- The account id of the transaction originatorsigner_public_key
- he public key of the signer
receipt_id
- The receipt id of the transaction originatorreceiver_id
- The account id of the transaction receiver
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/ \
--request POST \
--header "Content-Type: application/json" \
--data '{"jsonrpc": "2.0","method": "EXPERIMENTAL_receipt", "params": ["26ojqLfaArc9qviq3CKiSMyeMCRvL2XE8hETFZFdkaGh"],"id": 1}'
Result