Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 2.26 KB

getblockbyidrequest.md

File metadata and controls

20 lines (15 loc) · 2.26 KB

GetBlockByIdRequest

Example Usage

import { GetBlockByIdRequest } from "@avalabs/avacloud-sdk/models/operations";

let value: GetBlockByIdRequest = {
  blockchainId: "p-chain",
  blockId: "5615di9ytxujackzaXNrVuWQy5y8Yrt8chPCscMr5Ku9YxJ1S",
};

Fields

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