Batch get CWEB wallet balances without UTXO details
Retrieves CWEB token balances for multiple ECDSA wallets identified by their public keys, without detailed UTXO information. This endpoint queries the blockchain for multiple wallets in a single request, which is more efficient than making individual requests. The response is a record mapping each public key to its balance information (total balance, hex balance, UTXO count, decimals) without individual UTXO details. This is ideal when you only need balance summaries for multiple wallets and don't require UTXO-level information.
Query Parameters
Array of CWEB wallet public keys for which to retrieve balances. This allows querying multiple wallets in a single request, which is more efficient than making individual requests. The public keys should be provided as hex strings without 0x prefix.
Backend URL. Default is https://api-cloud.coinweb.io/wallet. This URL is used to query the wallet balances from the blockchain.
uriThe network/shard name where the wallets are deployed. If not provided, defaults to BNB. Available options include: BITCOIN, ELROND, ETHEREUM, KUJI, LITECOIN, POLYGON, ARBITRUM, DEVNET_L1A, DEVNET_L1B, BITCOIN_TESTNET, and other NetworkName enum values.
"BITCOIN" | "BITCOIN_CASH" | "BITCOIN_CASH_TESTNET" | "BITCOIN_TESTNET" | "BNB" | "BNB_TESTNET" | "DOGECOIN" | "DOGECOIN_TESTNET" | "ELROND" | "ELROND_TESTNET" | "ETHEREUM" | "ETHEREUM_TESTNET" | "KUJI" | "KUJI_TESTNET" | "LITECOIN" | "LITECOIN_TESTNET" | "POLYGON" | "POLYGON_TESTNET" | "ARBITRUM" | "ARBITRUM_TESTNET" | "DEVNET_L1A" | "DEVNET_L1B"Response Body
curl -X GET "https://cwap-api.coinhq.store/ecdsa_cm/batchGetWalletBalanceCWEB?publicKeys=020a89e0698443aaf4ecd613317d2fdf90ef73b99244182fc7bb3c6b85f375b876&backendUrl=https%3A%2F%2Fapi-cloud.coinweb.io%2Fwallet&shard=BITCOIN"{
"property1": {
"balanceCWEB": "1000000000000000000000",
"balanceHexCWEB": "de0b6b3a7640000",
"numberOfUTXOs": 5,
"decimals": 18
},
"property2": {
"balanceCWEB": "1000000000000000000000",
"balanceHexCWEB": "de0b6b3a7640000",
"numberOfUTXOs": 5,
"decimals": 18
}
}Was this documentation helpful? Any suggestions?
Last updated on