Additionally, paste this code immediately after the opening tag:

Validate Address

This endpoint checks user public addresses whether they are valid or not.

key.singleItemTitle POST /info/{blockchain}/{network}/addresses/validate

Path Parameters

  • Required
    blockchain string

    Represents the specific blockchain protocol name, e.g. Bitcoin, Ethereum, Binance Smart Chain, Tron etc.

    Example : bitcoin
    Possible Values : bitcoin ethereum binance-smart-chain tron
  • Required
    network string

    Represents the name of the blockchain network used; blockchain networks are usually identical as technology and software, but they differ in data, e.g. - "mainnet" is the live network with actual data while networks like "testnet", "sepolia" are test networks.

    Example : testnet
    Possible Values : mainnet testnet sepolia nile

Query Paramaters

  • Optional
    context string

    In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.

    Example : yourExampleString

Request Body Schema application/json

  • Optional
    context string

    In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.

    Example : yourExampleString
  • Required
    data object
    • Required
      item object
      • Required
        address string

        Represents the specific address that will be checked if it's valid or not.

        Example : mho4jHBcrNCncKt38trJahXakuaBnS7LK5

Response Schema

200 400 401 402 403 409 415 422 429 500
Http Status Code: 200
Content Type: application/json

The request has been successful.

  • Object :

  • Required
    apiVersion string

    Specifies the version of the API that incorporates this endpoint.

    Example : 2024-05-09
  • Required
    requestId string

    Defines the ID of the request. The requestId is generated by Vaultody and it's unique for every request.

    Example : 601c1710034ed6d407996b30
  • Optional
    context string

    In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.

    Example : yourExampleString
  • Required
    data object
    • Required
      item object
      • Required
        address string

        Represents the specific address that will be checked if it's valid or not.

        Example : 15XyNC88pujwuuur8DCsXBCfEhJJMzHayU
      • Required
        isValid boolean

        Defines whether the address is valid or not. Set as boolean.

        Example : true

Request Example

POST
https://rest.vaultody.com/info/bitcoin/testnet/addresses/validate?context=yourExampleString
Headers
Content-Type: application/json
x-api-key: cb233681a8ee35665296c1824c1f67bc46691788
x-api-sign: PSqeqRLap8rBc/wogNU1DeGGUPb2VyVtg6GiBOaBnYQ=
x-api-timestamp: 1681885776
x-api-passphrase: zYgKeueoOq

Request Body
{
    "context": "yourExampleString",
    "data": {
        "item": {
            "address": "mho4jHBcrNCncKt38trJahXakuaBnS7LK5"
        }
    }
}

Response Example

{
    "apiVersion": "2024-05-09",
    "requestId": "601c1710034ed6d407996b30",
    "context": "yourExampleString",
    "data": {
        "item": {
            "address": "15XyNC88pujwuuur8DCsXBCfEhJJMzHayU",
            "isValid": true
        }
    }
}