Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 2.63 KB

File metadata and controls

25 lines (20 loc) · 2.63 KB

Chain

Example Usage

import { Chain } from "@avalabs/avacloud-sdk/models/components";

let value: Chain = {
  evmChainId: 43114,
  chainName: "c_chain",
  blockchainId: "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
  subnetId: "11111111111111111111111111111111LpoYY",
  network: "testnet",
};

Fields

Field Type Required Description Example
evmChainId number ✔️ EVM ChainID for the blockchain. 43114
chainName string ✔️ Blockchain alias for easy identification of blockchains. c_chain
blockchainId string ✔️ Unique blockchain ID for this blockchain. 2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5
subnetId string ✔️ Subnet ID this blockchain belongs to. 11111111111111111111111111111111LpoYY
network components.NetworkType ✔️ Network on which this blockchain or subnet is created on.