GET Transactions for reserves payments to a stake address
GET Transactions for treasury payments to a stake address
Returns details of a transaction used for payments between the treasury and a stake address.
GET /api/core/transactions/{transaction_hash}/treasury
🎰 Parameters
Name | Description | In | Type | Required |
---|---|---|---|---|
transaction_hash | The transaction hash. | path | string | true |
👨💻 Code samples
- Node.js
- Python
- Rust
const CBI = await new CardanoBI({ apiKey: 'YOUR-KEY', apiSecret: 'YOUR-SECRET' });
const treasury = await CBI.core.transactions.treasury_({ transaction_hash: "0bc50b20e16268419048790f6ae3667a1480418dd9faed543bc0e8ca32ea7a08" });
console.log(treasury);
CBI = CardanoBI(apiKey='YOUR-KEY', apiSecret='YOUR-SECRET' });
treasury = await CBI.core.transactions.treasury_(transaction_hash='0bc50b20e16268419048790f6ae3667a1480418dd9faed543bc0e8ca32ea7a08');
print(treasury);
let CBI = CardanoBI::new(Some("YOUR-KEY"), Some("YOUR-SECRET")).await.expect("Failed to initialize CardanoBI");
let pots_treasury = CBI.core.transactions.treasury_(Some("0bc50b20e16268419048790f6ae3667a1480418dd9faed543bc0e8ca32ea7a08"), HashMap::new()).await.expect("Failed to call endpoint");
println!("pots_treasury: {:?}", pots_treasury);
💌 Response Codes
- 200
- 400
- 401
- 402
- 403
- 404
- 429
OK: Successful request.
[
{
"cert_index": 0,
"stake_address": "stake1uyzvysc3exwp2s9dqvq2zrmmpgc3dejc7p8ygleh9dhh77c80lhm0",
"amount": 1559093
},
"...",
{
"cert_index": 0,
"stake_address": "stake1uyzz8fzxw6yq5l38fez3rlvk0jnd6893yvvte77x3apgjtqjtyn3z",
"amount": 7023183365
}
]
Bad Request: The request was unacceptable, often due to missing a required parameter.
Response schema is undefined.
Unauthorized: No valid API key provided.
Response schema is undefined.
Quota Exceeded: This API key has reached its usage limit on request.
Response schema is undefined.
Access Denied: The request is missing a valid API key or token.
Response schema is undefined.
Not Found: The requested resource cannot be found.
Response schema is undefined.
Too Many Requests: This API key has reached its rate limit.
Response schema is undefined.
💌 Response Schemas
- 200
- 400
- 401
- 402
- 403
- 404
- 429
Status Code 200
Name | Type | Description |
---|---|---|
cert_index | integer(int32) | The index of this payment certificate within the certificates of this transaction. |
stake_address | string | The Bech32 encoded version of the stake address. |
amount | number(double) | The treasury payment amount (in Lovelace). |
Status Code 400
Name | Type | Description |
---|
Response schema is undefined.
Status Code 401
Name | Type | Description |
---|
Response schema is undefined.
Status Code 402
Name | Type | Description |
---|
Response schema is undefined.
Status Code 403
Name | Type | Description |
---|
Response schema is undefined.
Status Code 404
Name | Type | Description |
---|
Response schema is undefined.
Status Code 429
Name | Type | Description |
---|
Response schema is undefined.
GET Transactions for reserves payments to a stake address
Returns details of a transaction used for payments between the reserves and a stake address.
GET /api/core/transactions/{transaction_hash}/reserves
🎰 Parameters
Name | Description | In | Type | Required |
---|---|---|---|---|
transaction_hash | The transaction hash. | path | string | true |
👨💻 Code samples
- Node.js
- Python
- Rust
const CBI = await new CardanoBI({ apiKey: 'YOUR-KEY', apiSecret: 'YOUR-SECRET' });
const reserves = await CBI.core.transactions.reserves_({ transaction_hash: "27dff3f43c460e779e35eff505f5f159c4283a8221b31ee17cdcd5b31ad221ba" });
console.log(reserves);
CBI = CardanoBI(apiKey='YOUR-KEY', apiSecret='YOUR-SECRET' });
reserves = await CBI.core.transactions.reserves_(transaction_hash='27dff3f43c460e779e35eff505f5f159c4283a8221b31ee17cdcd5b31ad221ba');
print(reserves);
let CBI = CardanoBI::new(Some("YOUR-KEY"), Some("YOUR-SECRET")).await.expect("Failed to initialize CardanoBI");
let pots_reserves = CBI.core.transactions.reserves_(Some("27dff3f43c460e779e35eff505f5f159c4283a8221b31ee17cdcd5b31ad221ba"), HashMap::new()).await.expect("Failed to call endpoint");
println!("pots_reserves: {:?}", pots_reserves);
💌 Response Codes
- 200
- 400
- 401
- 402
- 403
- 404
- 429
OK: Successful request.
[
{
"cert_index": 0,
"stake_address": "stake1uyzpdslj7kensytepnw099696nuccjwm89xz0jrfxjrp8wqhdd2us",
"amount": 223803
},
"...",
{
"cert_index": 0,
"stake_address": "stake1ux27egwsda2rk5zz7uk9qgmjlsr26yak6epfgtqezavzafcxj3hwu",
"amount": 110865360098
}
]
Bad Request: The request was unacceptable, often due to missing a required parameter.
Response schema is undefined.
Unauthorized: No valid API key provided.
Response schema is undefined.
Quota Exceeded: This API key has reached its usage limit on request.
Response schema is undefined.
Access Denied: The request is missing a valid API key or token.
Response schema is undefined.
Not Found: The requested resource cannot be found.
Response schema is undefined.
Too Many Requests: This API key has reached its rate limit.
Response schema is undefined.
💌 Response Schemas
- 200
- 400
- 401
- 402
- 403
- 404
- 429
Status Code 200
Name | Type | Description |
---|---|---|
cert_index | integer(int32) | The index of this payment certificate within the certificates of this transaction. |
stake_address | string | The Bech32 encoded version of the stake address. |
amount | number(double) | The treasury payment amount (in Lovelace). |
Status Code 400
Name | Type | Description |
---|
Response schema is undefined.
Status Code 401
Name | Type | Description |
---|
Response schema is undefined.
Status Code 402
Name | Type | Description |
---|
Response schema is undefined.
Status Code 403
Name | Type | Description |
---|
Response schema is undefined.
Status Code 404
Name | Type | Description |
---|
Response schema is undefined.
Status Code 429
Name | Type | Description |
---|
Response schema is undefined.