Encode X-Address

Through this endpoint, customers can encode an encoded XRP address with tag, by providing the specific x-address. The response includes the encoded classic address and the tag.

Single Result - This endpoint returns only one single result. GET /blockchain-tools/{blockchain}/{network}/encode-x-address/{classicAddress}/{addressTag}

Path Parameters

  • Required
    addressTag integer

    Defines a specific Tag that is an additional XRP address feature. It helps identifying a transaction recipient beyond a wallet address.

    Example : 3999472835
  • Required
    blockchain string

    Represents the specific blockchain protocol name, e.g. Ethereum, Bitcoin, etc.

    Example : xrp
    Possible Values : xrp
  • Required
    classicAddress string

    Represents the public address, which is a compressed and shortened form of a public key.

    Example : rA9bXGJcXvZKaWofrRphdJsBWzhyCfH3z
  • 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", "ropsten" are test networks.

    Example : testnet
    Possible Values : mainnet testnet

Query parameters

  • 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

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 : 2.0.0
  • Required
    requestId string

    Defines the ID of the request. The requestId is generated by Crypto APIs 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
        xAddress string

        Represents the encoded classic address with its destination tag.

        Example : TVTMSyg6nRscAm2JtRd8hnpF9nD21CgZx6ibb9iy3EWHotV

Credits Cost : 10 Credits For 1 Result(s)

Try it out

Request Example

GET
https://rest.cryptoapis.io/v2/blockchain-tools/xrp/testnet/encode-x-address/rA9bXGJcXvZKaWofrRphdJsBWzhyCfH3z/3999472835?context=yourExampleString
Headers
Host: https://rest.cryptoapis.io/v2
Content-Type: application/json
X-API-Key: my-api-key

Response Example

{
    "apiVersion": "2.0.0",
    "requestId": "601c1710034ed6d407996b30",
    "context": "yourExampleString",
    "data": {
        "item": {
            "xAddress": "TVTMSyg6nRscAm2JtRd8hnpF9nD21CgZx6ibb9iy3EWHotV"
        }
    }
}