UNPKG

asset-tracker

Version:

Asset tracker to track all your multichain assets.

28 lines (27 loc) 918 B
module.exports = { CHAIN_ID: 43114, SYMBOL: 'AVAX', NAME: 'Avalanche', RPC: 'https://rpc.ankr.com/avalanche', DECIMALS: 18, GET_TXN_LIST_API(address, page, limit) { return `https://api.snowtrace.io/api?module=account&action=txlist&address=${address}&startblock=0&page=${page}&offset=${limit}&sort=asc`; }, ASSET_API: '', EVM_FUNGIBLE_ASSET_DISCOVERY_API(address) { return `https://account.metafi.codefi.network/accounts/${address}?chainId=${this.CHAIN_ID}&includePrices=true` }, EVM_NON_FUNGIBLE_ASSET_DISCOVERY_API(address) { return `https://nft.metafi.codefi.network/accounts/${address}/nfts`; }, FUNCTIONALITY_SUPPORT: { getTransactions: true, discoverFungibleAssets: true, discoverNonFungibleAssets: true, switchChain: true, getNativeAssetBalance: true, getFungibleTokenDetails: true, getNFTDetails: true, getNativeAssetDetails: false, }, };