
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
balance-crypto
Advanced tools
Get wallet balance for 5.8K+ cryptocurrencies with a single function.
Get wallet balance for 5.8K+ cryptocurrencies with a single function.
# pnpm
pnpm i balance-crypto
# yarn
yarn add balance-crypto
# npm
npm i balance-crypto
To use the module in Deno import it like this: import { balance } from 'https://deno.land/x/balance_crypto/deno/mod.ts'
import { balance } from 'balance-crypto'
import fetch from 'node-fetch'
balance('3PxedDftWBXujWtr7TbWQSiYTsZJoMD8K5', 'BTC', {
keys: {
etherscan: process.env.ETHERSCAN_KEY,
blockcypher: process.env.BLOCKYCPHER_KEY
},
verbose: true
}).then((res) => console.log(res))
import { balance } from 'https://deno.land/x/balance_crypto/deno/mod.ts'
balance('3PxedDftWBXujWtr7TbWQSiYTsZJoMD8K5', 'BTC', {
keys: {
etherscan: Deno.env.get('ETHERSCAN_KEY'),
blockcypher: Deno.env.get('BLOCKYCPHER_KEY')
},
verbose: true
}).then((res) => console.log(res))
Result:
{ "balance": 0, "asset": "BTC" }
| Asset | Service | API key |
|---|---|---|
| ETH, ERC-20 tokens | https://etherscan.io | ✔️ |
| BTC, DASH, LTC, DOGE | https://blockcypher.com | ✔️ (optional) |
| BTC-based tokens | https://chainz.cryptoid.info | |
| ADA | https://explorer.cardano.org |
The best way to support the project is to stake it on DEV. Note that you also get rewarded by staking, as well as the project author.
These 3 addresses were rewarded with 10DEV as a bonus for staking:
FAQs
Get wallet balance for 5.8K+ cryptocurrencies with a single function.
We found that balance-crypto demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.