POST
/
transactions
/
batch
Submit batch transactions
curl --request POST \
  --url https://aptos-mainnet.s.chainbase.online/{api-key}/v1/transactions/batch \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "sender": "0xc739507214d0e1bf9795485299d709e00024e92f7c0d055a4c2c39717882bdfd",
    "sequence_number": "32425224034",
    "max_gas_amount": "32425224034",
    "gas_unit_price": "32425224034",
    "expiration_timestamp_secs": "32425224034",
    "payload": {
      "type": "entry_function_payload",
      "function": "0x1::aptos_coin::transfer",
      "type_arguments": [
        "<string>"
      ],
      "arguments": [
        "<any>"
      ]
    },
    "signature": {
      "type": "ed25519_signature",
      "public_key": "0xc739507214d0e1bf9795485299d709e00024e92f7c0d055a4c2c39717882bdfd",
      "signature": "0xc739507214d0e1bf9795485299d709e00024e92f7c0d055a4c2c39717882bdfd"
    }
  }
]'
{
  "transaction_failures": [
    {
      "error": {
        "message": "<string>",
        "error_code": "account_not_found",
        "vm_error_code": 123
      },
      "transaction_index": 123
    }
  ]
}

Body

The body is of type object[].

Response

202
application/json

Batch transaction submission result

Tells which transactions failed