Get Wallets

Learn how to get the details of any wallet created on Bloc

On this page, you'll learn how to use our different "Get Wallets" endpoints to request details regarding all of the wallets you have created.

Get single wallet

To get the details of a particular wallet, pass the endpoint URL below alongside the wallet_id of the wallet you want to view.

curl --request GET \
     --url https://api.blochq.io/v1/wallets/{{walletID}} \
     --header 'accept: application/json' \
     --header 'authorization: Bearer sk_live_64520e0201478f5cd412865f64520e0201478f5cd4128660'

Here's a sample of the response to expect:

{
  "success": true,
  "data": {
    "id": "64630c972ec7502321fc36ec",
    "name": "Orthonga",
    "created_at": "2023-05-16T04:54:47.407Z",
    "account_number": "2058968447",
    "bank_name": "Banc Corp",
    "balance": 0
  },
  "message": "wallet found"
}

Get all wallets created

This allows you to request the details of all the wallets created by your organization. To do this, pass the endpoint URL below:

curl --request GET \
     --url https://api.blochq.io/v1/wallets \
     --header 'accept: application/json' \
     --header 'authorization: Bearer sk_live_64520e0201478f5cd412865f64520e0201478f5cd4128660'