Additionally, paste this code immediately after the opening tag:

Create Fungible Tokens Transaction Request From Address

Through this endpoint users can make a single token transaction.

To have an operational callback subscription, you need to first verify a domain for the Callback URL. Please see more information on Callbacks here.

Vaultody will notify the user only when the event occurs. There are cases when the specific event doesn't happen at all, or takes a long time to do so. A callback notification will not be sent if the event does not or cannot occur, or will take long time to occur.

key.singleItemTitle POST /vaults/{vaultId}/{blockchain}/{network}/addresses/{senderAddress}/token-transaction-requests

Path Parameters

  • Required
    blockchain string

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

    Example : ethereum
    Possible Values : ethereum binance-smart-chain
  • 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 : sepolia
    Possible Values : mainnet testnet sepolia
  • Required
    senderAddress string

    Defines the specific source address for the transaction.

    Example : 0x0902a667d6a3f287835e0a4593cae4167384abc6
  • Required
    vaultId string

    Defines the unique ID of the Vault.

    Example : 609e221675d04500068718dc

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
        amount string

        Represents the specific amount of the transaction.

        Example : 0.2
      • Required
        feePriority string

        Represents the fee priority of the automation, whether it is "slow", "standard" or "fast".

        Example : standard
        Possible Values : slow standard fast
      • Optional
        note string

        Represents an optional note to add a free text in, explaining or providing additional detail on the transaction request.

        Example : yourAdditionalInformationhere
      • Required
        recipientAddress string

        Defines the specific recipient address for the transaction.

        Example : 0xc6d46aba0c6e2eb6358c4e24804158cc4d847922
      • Required
        tokenIdentifier string

        Defines the specific token identifier. For Ethereum-based transactions - the contract.

        Example : 0xdac17f958d2ee523a2206206994597c13d831ec7

Response Schema

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

The resource has been successfully created.

  • 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
        feePriority string

        Represents the fee priority of the automation, whether it is "slow", "standard" or "fast".

        Example : fast
        Possible Values : slow standard fast
      • Optional
        note string

        Represents an optional note to add a free text in, explaining or providing additional detail on the transaction request.

        Example : yourAdditionalInformationhere
      • Required
        recipients array

        Defines the destination for the transaction, i.e. the recipient(s).

        Example : 0x1316bea88fb7cd4ccc4a57e2f9f4f43d1a86ee59
        • Required
          address string

          Defines the destination address.

          Example : 0xc6d46aba0c6e2eb6358c4e24804158cc4d847922
        • Required
          amount string

          Defines the amount sent to the destination address.

          Example : 0.2
      • Required
        senders object

        Defines details about the source, i.e. the sender.

        • Required
          address string

          Defines the sender's public address.

          Example : 0x0902a667d6a3f287835e0a4593cae4167384abc6
      • Required
        tokenTypeSpecificData object object One Of
        object
        • Required
          contractAddress string

          Defines the contract address in the blockchain for an ERC20 token.

          Example : 0x534bD102153EF199abAe8296a2FaE4599fC44Cdc
      • Required
        transactionRequestId string

        Represents a unique identifier of the transaction request (the request sent to make a transaction), which helps in identifying which callback and which referenceId concern that specific transaction request.

        Example : 6038d09050653d1f0e40584c

Request Example

POST
https://rest.vaultody.com/vaults/609e221675d04500068718dc/ethereum/sepolia/addresses/0x0902a667d6a3f287835e0a4593cae4167384abc6/token-transaction-requests?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": {
            "amount": "0.2",
            "feePriority": "standard",
            "note": "yourAdditionalInformationhere",
            "recipientAddress": "0xc6d46aba0c6e2eb6358c4e24804158cc4d847922",
            "tokenIdentifier": "0xdac17f958d2ee523a2206206994597c13d831ec7"
        }
    }
}

Response Example

{
    "apiVersion": "2024-05-09",
    "requestId": "601c1710034ed6d407996b30",
    "context": "yourExampleString",
    "data": {
        "item": {
            "feePriority": "fast",
            "note": "yourAdditionalInformationhere",
            "recipients": [
                {
                    "address": "0xc6d46aba0c6e2eb6358c4e24804158cc4d847922",
                    "amount": "0.2"
                }
            ],
            "senders": {
                "address": "0x0902a667d6a3f287835e0a4593cae4167384abc6"
            },
            "tokenTypeSpecificData": {
                "contractAddress": "0x534bD102153EF199abAe8296a2FaE4599fC44Cdc"
            },
            "transactionRequestId": "6038d09050653d1f0e40584c"
        }
    }
}