Page cover

Batch Processing

Batch processing of multiple addresses in one request.

Make a request

The best way to interact with our API:

curl -X POST "https://api-testnet.bitcoin-balance-api.com/v1/address/batch" \
  -H "Content-Type: application/json" \
  -d '{
    "addresses": [
      "tb1qlw09ycnp3qgqw9alqgx93ed7cg5kmnyud326ky",
      "2N8qAsMRn4WvEZJmTWf2K5Vn1C69JH9XjTW"
    ]
  }'

Response

The response from the api contains the same fields as a single balance request, but in an array of all addresses. E.g.:

{
  "status": 200,
  "results": [
    {
      "address": "tb1qlw09ycnp3qgqw9alqgx93ed7cg5kmnyud326ky",
      "balance": 954929635,
      "status": "success"
    },
    {
      "address": "2N8qAsMRn4WvEZJmTWf2K5Vn1C69JH9XjTW",
      "balance": 541997,
      "status": "success"
    }
  ]
}

Last updated