Funding

Validate a blockchain address

GET/v1/blockchain-manager/address/validate

Checks whether an address has a valid format for the given network: its encoding, length, prefix and checksum. Use it to reject a mistyped address before registering it in the address book or sending a withdrawal to it.

A well-formed request always returns 200: valid says whether the address is valid and, when it is not, error says why. This includes an address of another network and a network the validator does not support: in that case supported is false, the address could not be checked and valid is false. In production the address is checked against the mainnet format of the network; in the other environments testnet addresses are also accepted. It does not tell whether the address exists on the blockchain, whether it belongs to anyone or whether funds can be withdrawn to it.

Authorization

ApiKeyAuth
X-Api-Key<token>

For accessing these endpoints a valid API key must be sent in the X-Api-Key header.

In: header

Query Parameters

network*string

Network identifier (e.g. bitcoin, ethereum). Only letters and digits.

Match^[A-Za-z0-9]+$
Length1 <= length <= 128
address*string

The address to validate. Surrounding spaces are trimmed; no whitespace is allowed inside it.

Length1 <= length <= 500

Response Body

application/json

application/json

application/json

Validate a blockchain address
curl --request GET \  --url 'https://gateway.bit2me.com/v1/blockchain-manager/address/validate?network=bitcoin&address=bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq'
Example1 of 3
{  "error": "Invalid bitcoin Bech32 address",  "supported": true,  "valid": false}