@bit-gpt/h402
Version:
BitGPT's 402 open protocol for blockchain-native payments
13 lines • 607 B
TypeScript
/**
* Get the number of decimals for a token
* For native token, returns network-specific decimals (18 for most EVM chains)
* For ERC20 tokens, fetches from the contract
*/
export declare function getTokenDecimals(tokenAddress: string, networkId?: string): Promise<number>;
/**
* Get the symbol for a token
* For native token, returns network-specific symbol (BNB for BSC, ETH for Ethereum, etc)
* For ERC20 tokens, fetches from the contract
*/
export declare function getTokenSymbol(tokenAddress: string, networkId?: string): Promise<string | undefined>;
//# sourceMappingURL=tokenMetadata.d.ts.map