Tezos RPC
Archive Method
Only on the full archive nodes. Complex queries might take longer and incur additional cost
How to use it
// Importing Tatum SDK for Tezos blockchain
import { TatumSDK, Network, Tezos } from '@tatumio/tatum'
// Initializing SDK for Tezos blockchain
const tatum = await TatumSDK.init<Tezos>({ network: Network.TEZOS })
// Define parameters for the query
const params = {
chainId: 'YOUR_CHAIN_ID',
blockId: 'YOUR_BLOCK_ID',
}
// Fetching list of operation hashes
const operationHashes = await tatum.rpc.getOperationHashes(params)
console.log(operationHashes)
// Cleaning up resources used by Tatum SDK
await tatum.destroy()
Overview
The getOperationHashes
method is used to retrieve a list of operation hashes from a specific block on the Tezos blockchain.
Request Parameters
chainId
(string, required): The ID of the chain.blockId
(string, required): The unique identifier (hash) of the block.
Return Object
The method returns an array of strings, each representing an operation hash from the specified block on the Tezos blockchain.
(Note: The exact fields in the return object might vary based on the Tezos blockchain's implementation and version.)