@coinbase/cdp-sdk
Version:
SDK for interacting with the Coinbase Developer Platform Wallet API
21 lines (19 loc) • 1.12 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.listEvmTokenBalances = void 0;
const cdpApiClient_js_1 = require("../../cdpApiClient.js");
/**
* Lists the token balances of an EVM address on a given network. The balances include ERC-20 tokens and the native gas token (usually ETH). The response is paginated, and by default, returns 20 balances per page.
Calls to the `base` and `base-sepolia` networks offer:
* 99.5% < 2 second freshness from chain tip for new tokens on an address.
* 99.5% < 2 second freshness from chain tip for balance data.
Calls to the `ethereum` network offer:
* 99% < 30 second freshness from chain tip for new tokens on an address.
* 99% < 2 second freshness from chain tip for balance data.
* @summary List EVM token balances
*/
const listEvmTokenBalances = (network, address, params, options) => {
return (0, cdpApiClient_js_1.cdpApiClient)({ url: `/v2/evm/token-balances/${network}/${address}`, method: "GET", params }, options);
};
exports.listEvmTokenBalances = listEvmTokenBalances;
//# sourceMappingURL=evm-token-balances.js.map