UNPKG

@arkiv-network/sdk

Version:

TypeScript client library for Arkiv's blockchains interactions

23 lines (22 loc) • 991 B
//#region src/consts.ts const ARKIV_ADDRESS = "0x4400000000000000000000000000000000000044"; const BLOCK_TIME = 2; /** * The longest an entity may live, in blocks, counted from the block its create or extension lands * in: 7,884,000 blocks, about 182.5 days at {@link BLOCK_TIME}. The chain reverts anything longer * with `ExpiryBeyondMaxLifetime`, so the SDK refuses it before sending. */ const MAX_LIFETIME = 7884000n; /** Where to get a free access key for the RPC endpoints Arkiv hosts. */ const ACCESS_KEYS_URL = "https://hub.arkiv.network/access-keys"; /** * Headroom added to a gas estimate, in percent. */ const GAS_HEADROOM_PERCENT = 25n; /** * The most gas one transaction may carry: EIP-7825's per-transaction cap, which the node enforces. */ const MAX_TRANSACTION_GAS = 2n ** 24n; //#endregion export { MAX_LIFETIME as a, GAS_HEADROOM_PERCENT as i, ARKIV_ADDRESS as n, MAX_TRANSACTION_GAS as o, BLOCK_TIME as r, ACCESS_KEYS_URL as t }; //# sourceMappingURL=consts-Lp55G1Qc.js.map