Get Crypto Balance

Before doing an instant sell transaction, you'll need to know how much is in your wallet balance for the cryptocurrency you want to sell. To do that, make a GET request to the following endpoint.

https://api.localramp.co/v1/wallet/balances

With the following header

x-auth-token: <SECRET_KEY>

If the API call is successful, LocalRamp returns the following response:


{
    "status": "success",
    "data": {
        "balances": [
            {
                "currency": "usdc",
                "balance": "0.0"
            },
            {
                "currency": "bnb",
                "balance": "0.0"
            }
        ]
    }
}

Last updated