v1

latestOpenAPI 3.0.02026-08-04134348905.1 KB
Subaccounts

Create new transactions

Permissions required: Subaccount

Create new transactions between subaccounts of the same Program Customer. This is a transactional operation, all transactions will be created successfully or none will.

post/subaccounts/transactions

Headers

Api-Signaturestring required

A hex-encoded Ed25519 signature of timestamp_epoch_seconds + uppercase(http_method) + request_path + request_body.

Construction example:

toHex(
  ed25519Sign(
    signing_key,
    '{}{}{}{}'.format(timestamp_epoch_seconds, toUpper(httpMethod), httpRequestPath, httpBody)
  )
)
Api-Timestampinteger required

Current timestamp, represented as unix epoch seconds

Request body

Example request

{
  "transactions": [
    {
      "amount": "1000.00",
      "assetType": "BTC",
      "destinationSubaccountId": "3eeaf765-0df2-49c9-9e1f-db9cf3e796dd",
      "idempotentId": "12838927347",
      "sourceSubaccountId": "ec761b5e-fd2c-497a-a9a0-f8738ac97bdf",
      "transactionMemo": "This is a memo"
    }
  ]
}

Response

Successfully created the transactions

Example response

{
  "data": {
    "transactionIds": [
      {
        "idempotentId": "12838927347",
        "transactionId": "c4c4652f-0c07-472c-a7f8-955fbe07775d"
      }
    ]
  }
}