@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
2 lines (1 loc) • 535 B
JavaScript
async function e(e){return e.request({method:"eth_baseFee",params:[]})}async function t(e){return e.request({method:"eth_getChainConfig",params:[]})}async function r(e){return e.request({method:"eth_maxPriorityFeePerGas",params:[]})}async function n(e,{blk:t}){return e.request({method:"eth_feeConfig",params:[t??"latest"]})}async function a(e,{timestamp:t}){return e.request({method:"eth_getActiveRulesAt",params:[t??"latest"]})}export{e as baseFee,n as feeConfig,a as getActiveRulesAt,t as getChainConfig,r as maxPriorityFeePerGas};