UNPKG

@avalanche-sdk/client

Version:

A TypeScript SDK for interacting with the Avalanche network through JSON-RPC APIs. This SDK provides a comprehensive set of tools to interact with all Avalanche chains (P-Chain, X-Chain, C-Chain) and various APIs, including wallet functionality for transa

26 lines (24 loc) 744 B
import { Common, Context } from "@avalabs/avalanchejs"; export const testContext: Context.Context = { xBlockchainID: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", pBlockchainID: "11111111111111111111111111111111LpoYY", cBlockchainID: "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5", avaxAssetID: "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z", baseTxFee: 1000000n, createAssetTxFee: 10000000n, networkID: 5, hrp: "fuji", platformFeeConfig: { weights: Common.createDimensions({ bandwidth: 1, dbRead: 1, dbWrite: 1, compute: 1, }), maxCapacity: 1_000_000n, maxPerSecond: 1_000n, targetPerSecond: 500n, minPrice: 1n, excessConversionConstant: 5_000n, }, };