import { GetBlockByIdRequest } from "@avalabs/avacloud-sdk/models/operations";
let value: GetBlockByIdRequest = {
blockchainId: "p-chain",
blockId: "5615di9ytxujackzaXNrVuWQy5y8Yrt8chPCscMr5Ku9YxJ1S",
};
Field | Type | Required | Description | Example |
---|---|---|---|---|
blockchainId |
components.BlockchainId | ✔️ | A primary network blockchain id or alias. | p-chain |
network |
components.GlobalParamNetwork | ➖ | Either mainnet or testnet/fuji. | mainnet |
blockId |
string | ✔️ | A block identifier which is either a block number or the block hash. | 5615di9ytxujackzaXNrVuWQy5y8Yrt8chPCscMr5Ku9YxJ1S |