Batch Transactions

Create Batch Transaction

Changed on

Create a batch of transactions. <br> Batch transactions are currently supported only on Solana.

post/api/v1/batch-transactions

Request

  • Base URL: https://api.fordefi.com
  • URL: https://api.fordefi.com/api/v1/batch-transactions
  • Auth: HTTP bearer

Headers

x-signaturestring

Signature of the body. Base64 encoded string. If the request is made programatically by an API user, signing of the request is required and is intended to protect you from malicious backends. x_signature is valid for 120 seconds.

Example:SGVsbG8=
x-timestampinteger

Timestamp of the signature. Integer. Specify an Epoch date. If the request is made programatically by an API user, the timestamp of the request is required and is intended to protect you from replay attacks.

x-idempotence-idstring uuid

Optional idempotence ID of a transaction.

Request body

OR

Example request

{
  "details": {
    "fee": {
      "priority_fee": "1000000000000000000",
      "unit_price": "1000000000000000000"
    },
    "transactions": [
      {
        "instructions": [
          {
            "data": "SGVsbG8="
          }
        ],
        "accounts": [
          {
            "address": "4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA",
            "ephemeral_key": "lnNyP8kFPEaVpvUo/SIlhdZlzhPU8r7yT/h0gG5ajzQ="
          }
        ],
        "address_table_lookups": [
          {
            "account_key": "4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"
          }
        ],
        "signatures": [
          {
            "data": "SGVsbG8="
          }
        ],
        "recent_blockhash": "4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZAMdL4VZHirAn"
      }
    ]
  }
}

Response

Successful Response

batch_idstring uuid required

ID of the batch of transactions.

Changes

    • warning

      added the new canton_withdraw_of enum value to the ///// response property for the response status

    • warning

      added the new canton_withdraw_of enum value to the ///// response property for the response status

    • warning

      added the new canton_withdrawn_by enum value to the ///// response property for the response status

    • warning

      added the new canton_withdrawn_by enum value to the ///// response property for the response status

    • warning

      added the new first_time_transfer_destination enum value to the ////// response property for the response status

    • warning

      added the new first_time_transfer_destination enum value to the ////// response property for the response status