cURL
curl --request POST \
--url https://api.example.com/EXPERIMENTAL_receipt \
--header 'Content-Type: application/json' \
--data '
{
"method": "EXPERIMENTAL_receipt",
"params": {
"receipt_id": "<string>"
},
"id": "dontcare",
"jsonrpc": "2.0"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
method: 'EXPERIMENTAL_receipt',
params: {receipt_id: '<string>'},
id: 'dontcare',
jsonrpc: '2.0'
})
};
fetch('https://api.example.com/EXPERIMENTAL_receipt', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/EXPERIMENTAL_receipt"
payload = {
"method": "EXPERIMENTAL_receipt",
"params": { "receipt_id": "<string>" },
"id": "dontcare",
"jsonrpc": "2.0"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"result": {
"predecessor_id": "<string>",
"receipt": {
"Action": {
"actions": [
"CreateAccount"
],
"gas_price": "<string>",
"input_data_ids": [
"<string>"
],
"output_data_receivers": [
{
"data_id": "<string>",
"receiver_id": "<string>"
}
],
"signer_id": "<string>",
"signer_public_key": "<string>",
"is_promise_yield": false,
"refund_to": "<string>"
}
},
"receipt_id": "<string>",
"receiver_id": "<string>",
"priority": 0
},
"id": "<string>",
"jsonrpc": "<string>"
}Post experimental receipt
Fetches a receipt by its ID (as is, without a status or execution outcome)
POST
/
EXPERIMENTAL_receipt
cURL
curl --request POST \
--url https://api.example.com/EXPERIMENTAL_receipt \
--header 'Content-Type: application/json' \
--data '
{
"method": "EXPERIMENTAL_receipt",
"params": {
"receipt_id": "<string>"
},
"id": "dontcare",
"jsonrpc": "2.0"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
method: 'EXPERIMENTAL_receipt',
params: {receipt_id: '<string>'},
id: 'dontcare',
jsonrpc: '2.0'
})
};
fetch('https://api.example.com/EXPERIMENTAL_receipt', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/EXPERIMENTAL_receipt"
payload = {
"method": "EXPERIMENTAL_receipt",
"params": { "receipt_id": "<string>" },
"id": "dontcare",
"jsonrpc": "2.0"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"result": {
"predecessor_id": "<string>",
"receipt": {
"Action": {
"actions": [
"CreateAccount"
],
"gas_price": "<string>",
"input_data_ids": [
"<string>"
],
"output_data_receivers": [
{
"data_id": "<string>",
"receiver_id": "<string>"
}
],
"signer_id": "<string>",
"signer_public_key": "<string>",
"is_promise_yield": false,
"refund_to": "<string>"
}
},
"receipt_id": "<string>",
"receiver_id": "<string>",
"priority": 0
},
"id": "<string>",
"jsonrpc": "<string>"
}Body
application/json
Available options:
EXPERIMENTAL_receipt Show child attributes
Show child attributes
JSON-RPC request id. Auto-populated; can be any string.
JSON-RPC protocol version. Always 2.0.
Available options:
2.0 Was this page helpful?