Skip to main content
Version: 1.0
Endpoints Summary
GET Latest block transactions
GET Transactions for a given block by block number
GET Transactions for a given block by block hash

GET Latest block transactions

Returns the transactions within the latest block i.e. the tip of the blockchain.

GET /api/core/blocks/latest/transactions

👨‍💻 Code samples

const CBI = await new CardanoBI({ apiKey: 'YOUR-KEY', apiSecret: 'YOUR-SECRET' }); 
const transactions_transactions = await CBI.core.blocks.latest.transactions_();
console.log(transactions_transactions);

💌 Response Codes

OK: Successful request.

[
{
"id": 94211802,
"hash": "6mZYHIlu2YAhxBxk4RdPIGRfVDkEES7h2bi3Tl5xOSU=",
"block_id": 10595156,
"block_index": 0,
"out_sum": 24895471551,
"fee": 176809,
"deposit": 0,
"size": 476,
"invalid_before": null,
"invalid_hereafter": 129151032,
"valid_contract": true,
"script_size": 0,
"hash_hex": "ea66581c896ed98021c41c64e1174f20645f543904112ee1d9b8b74e5e713925",
"block": null
},
"...",
{
"id": 94211816,
"hash": "DsZ2XXf1RFFPahPoBeJUxkWJfFweQ8MVUQDA5B9GnVY=",
"block_id": 10595156,
"block_index": 14,
"out_sum": 811470770,
"fee": 506105,
"deposit": 0,
"size": 7966,
"invalid_before": null,
"invalid_hereafter": 129144653,
"valid_contract": true,
"script_size": 0,
"hash_hex": "0ec6765d77f544514f6a13e805e254c645897c5c1e43c3155100c0e41f469d56",
"block": null
}
]

💌 Response Schemas

Status Code 200

NameTypeDescription
idinteger(int64)The transaction unique identifier.
hashstring(byte)The hash identifier of the transaction.
block_idinteger(int64)The Block table index of the block that contains this transaction.
block_indexinteger(int32)The index of this transaction with the block (zero based).
out_sumnumber(double)The sum of the transaction outputs (in Lovelace).
feenumber(double)The fees paid for this transaction.
depositinteger(int64)Deposit (or deposit refund) in this transaction. Deposits are positive, refunds negative.
sizeinteger(int32)The size of the transaction in bytes.
invalid_beforenumber(double)Transaction in invalid before this slot number.
invalid_hereafternumber(double)Transaction in invalid at or after this slot number.
valid_contractbooleanFalse if the contract is invalid. True if the contract is valid or there is no contract.
script_sizeinteger(int32)The sum of the script sizes (in bytes) of scripts in the transaction.
hash_hexstringThe hexadecimal encoding of the hash identifier of the transaction.
blockBlockundefined

Block

NameTypeDescription
idinteger(int64)The block unique identifier.
hashstring(byte)The hash identifier of the block.
epoch_nointeger(int32)The epoch number.
slot_nointeger(int64)The slot number.
epoch_slot_nointeger(int32)The slot number within an epoch (resets to zero at the start of each epoch).
block_nointeger(int32)The block number.
previous_idinteger(int64)The Block table index of the previous block.
slot_leader_idinteger(int64)The SlotLeader table index of the creator of this block.
sizeinteger(int32)The block size (in bytes). Note, this size value is not expected to be the same as the sum of the tx sizes due to the fact that txs being stored in segwit format and oddities in the CBOR encoding.
timestring(date-time)The block time (UTCTime).
tx_countinteger(int64)The number of transactions in this block.
proto_majorinteger(int32)The block's major protocol number.
proto_minorinteger(int32)The block's major protocol number.
vrf_keystringThe VRF key of the creator of this block.
op_certstring(byte)The hash of the operational certificate of the block producer.
op_cert_counterinteger(int64)The value of the counter used to produce the operational certificate.
hash_hexstringThe hexadecimal encoding of the block hash.
op_cert_hexstringThe hexadecimal encoding of the block producer operational certificate's hash.

GET Transactions for a given block by block number

Returns the transactions within one specific block given its number.

GET /api/core/blocks/{block_no}/transactions

🎰 Parameters

NameDescriptionInTypeRequired
block_noBlock numberpathintegertrue

👨‍💻 Code samples

const CBI = await new CardanoBI({ apiKey: 'YOUR-KEY', apiSecret: 'YOUR-SECRET' }); 
const transactions = await CBI.core.blocks.transactions_({ block_no: 8415364 });
console.log(transactions);

💌 Response Codes

OK: Successful request.

[
{
"id": 61552864,
"hash": "vbiA3P2tGL5KMOKrD7SLPtHv+Jp+OYifjmh5/8cxPwI=",
"block_id": 8416431,
"block_index": 0,
"out_sum": 11747435254,
"fee": 183987,
"deposit": 0,
"size": 269,
"invalid_before": null,
"invalid_hereafter": 85169296,
"valid_contract": true,
"script_size": 0,
"hash_hex": "bdb880dcfdad18be4a30e2ab0fb48b3ed1eff89a7e39889f8e6879ffc7313f02",
"block": null
},
"...",
{
"id": 61552883,
"hash": "9a9HKyCMLzYmvNnrq1EDzFsW8Xmem2VMsDpNBUCQc3E=",
"block_id": 8416431,
"block_index": 19,
"out_sum": 41068697259,
"fee": 207345,
"deposit": 0,
"size": 1035,
"invalid_before": null,
"invalid_hereafter": 85172931,
"valid_contract": true,
"script_size": 0,
"hash_hex": "f5af472b208c2f3626bcd9ebab5103cc5b16f1799e9b654cb03a4d0540907371",
"block": null
}
]

💌 Response Schemas

Status Code 200

NameTypeDescription
idinteger(int64)The transaction unique identifier.
hashstring(byte)The hash identifier of the transaction.
block_idinteger(int64)The Block table index of the block that contains this transaction.
block_indexinteger(int32)The index of this transaction with the block (zero based).
out_sumnumber(double)The sum of the transaction outputs (in Lovelace).
feenumber(double)The fees paid for this transaction.
depositinteger(int64)Deposit (or deposit refund) in this transaction. Deposits are positive, refunds negative.
sizeinteger(int32)The size of the transaction in bytes.
invalid_beforenumber(double)Transaction in invalid before this slot number.
invalid_hereafternumber(double)Transaction in invalid at or after this slot number.
valid_contractbooleanFalse if the contract is invalid. True if the contract is valid or there is no contract.
script_sizeinteger(int32)The sum of the script sizes (in bytes) of scripts in the transaction.
hash_hexstringThe hexadecimal encoding of the hash identifier of the transaction.
blockBlockundefined

Block

NameTypeDescription
idinteger(int64)The block unique identifier.
hashstring(byte)The hash identifier of the block.
epoch_nointeger(int32)The epoch number.
slot_nointeger(int64)The slot number.
epoch_slot_nointeger(int32)The slot number within an epoch (resets to zero at the start of each epoch).
block_nointeger(int32)The block number.
previous_idinteger(int64)The Block table index of the previous block.
slot_leader_idinteger(int64)The SlotLeader table index of the creator of this block.
sizeinteger(int32)The block size (in bytes). Note, this size value is not expected to be the same as the sum of the tx sizes due to the fact that txs being stored in segwit format and oddities in the CBOR encoding.
timestring(date-time)The block time (UTCTime).
tx_countinteger(int64)The number of transactions in this block.
proto_majorinteger(int32)The block's major protocol number.
proto_minorinteger(int32)The block's major protocol number.
vrf_keystringThe VRF key of the creator of this block.
op_certstring(byte)The hash of the operational certificate of the block producer.
op_cert_counterinteger(int64)The value of the counter used to produce the operational certificate.
hash_hexstringThe hexadecimal encoding of the block hash.
op_cert_hexstringThe hexadecimal encoding of the block producer operational certificate's hash.

GET Transactions for a given block by block hash

Returns the transactions within one specific block given its hash.

GET /api/core/blocks/{block_hash}/transactions

🎰 Parameters

NameDescriptionInTypeRequired
block_hashBlock hashpathstringtrue

👨‍💻 Code samples

const CBI = await new CardanoBI({ apiKey: 'YOUR-KEY', apiSecret: 'YOUR-SECRET' }); 
const transactions = await CBI.core.blocks.transactions_({ block_hash: "89ff1090614105a919c9ccc8bb3914aaef1ddd28214a4d55ff65436d2c9fc0b2" });
console.log(transactions);

💌 Response Codes

OK: Successful request.

[
{
"id": 61552864,
"hash": "vbiA3P2tGL5KMOKrD7SLPtHv+Jp+OYifjmh5/8cxPwI=",
"block_id": 8416431,
"block_index": 0,
"out_sum": 11747435254,
"fee": 183987,
"deposit": 0,
"size": 269,
"invalid_before": null,
"invalid_hereafter": 85169296,
"valid_contract": true,
"script_size": 0,
"hash_hex": "bdb880dcfdad18be4a30e2ab0fb48b3ed1eff89a7e39889f8e6879ffc7313f02",
"block": null
},
"...",
{
"id": 61552883,
"hash": "9a9HKyCMLzYmvNnrq1EDzFsW8Xmem2VMsDpNBUCQc3E=",
"block_id": 8416431,
"block_index": 19,
"out_sum": 41068697259,
"fee": 207345,
"deposit": 0,
"size": 1035,
"invalid_before": null,
"invalid_hereafter": 85172931,
"valid_contract": true,
"script_size": 0,
"hash_hex": "f5af472b208c2f3626bcd9ebab5103cc5b16f1799e9b654cb03a4d0540907371",
"block": null
}
]

💌 Response Schemas

Status Code 200

NameTypeDescription
idinteger(int64)The transaction unique identifier.
hashstring(byte)The hash identifier of the transaction.
block_idinteger(int64)The Block table index of the block that contains this transaction.
block_indexinteger(int32)The index of this transaction with the block (zero based).
out_sumnumber(double)The sum of the transaction outputs (in Lovelace).
feenumber(double)The fees paid for this transaction.
depositinteger(int64)Deposit (or deposit refund) in this transaction. Deposits are positive, refunds negative.
sizeinteger(int32)The size of the transaction in bytes.
invalid_beforenumber(double)Transaction in invalid before this slot number.
invalid_hereafternumber(double)Transaction in invalid at or after this slot number.
valid_contractbooleanFalse if the contract is invalid. True if the contract is valid or there is no contract.
script_sizeinteger(int32)The sum of the script sizes (in bytes) of scripts in the transaction.
hash_hexstringThe hexadecimal encoding of the hash identifier of the transaction.
blockBlockundefined

Block

NameTypeDescription
idinteger(int64)The block unique identifier.
hashstring(byte)The hash identifier of the block.
epoch_nointeger(int32)The epoch number.
slot_nointeger(int64)The slot number.
epoch_slot_nointeger(int32)The slot number within an epoch (resets to zero at the start of each epoch).
block_nointeger(int32)The block number.
previous_idinteger(int64)The Block table index of the previous block.
slot_leader_idinteger(int64)The SlotLeader table index of the creator of this block.
sizeinteger(int32)The block size (in bytes). Note, this size value is not expected to be the same as the sum of the tx sizes due to the fact that txs being stored in segwit format and oddities in the CBOR encoding.
timestring(date-time)The block time (UTCTime).
tx_countinteger(int64)The number of transactions in this block.
proto_majorinteger(int32)The block's major protocol number.
proto_minorinteger(int32)The block's major protocol number.
vrf_keystringThe VRF key of the creator of this block.
op_certstring(byte)The hash of the operational certificate of the block producer.
op_cert_counterinteger(int64)The value of the counter used to produce the operational certificate.
hash_hexstringThe hexadecimal encoding of the block hash.
op_cert_hexstringThe hexadecimal encoding of the block producer operational certificate's hash.