v1

latestOpenAPI 3.0.32026-07-1320201.0 MB
Bitcoin Transactions

Create Bitcoin Transaction

Create a new Bitcoin transaction

post/api/v2/bitcoin/transactions

Headers

X-Network'testnet' | 'mainnet'

Specify "testnet" for test network or leave empty for main network. Defaults to "mainnet" if not provided.

Authorizationstring required

Bearer token for authorization. Required for authenticated endpoints.

Content-Type'application/json' | 'application/x-www-form-urlencoded' | 'multipart/form-data' required

The MIME type of the request body.

Request body

tostring required

The address to send the transaction to. Must match the regex /^(bc1|tb1|[13])[a-zA-HJ-NP-Z0-9]{25,39}$/.

amountnumber required

The amount to send.

walletnamestring required

The name of the wallet to send the transaction from.

passwordstring required

The password to unlock the wallet.

subtractfeeboolean

Whether to subtract the fee from the amount being sent.

speed'fast' | 'medium' | 'slow' required

The speed of the transaction.

Example request

{
  "to": "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq",
  "amount": 0.0001,
  "walletname": "mywallet",
  "password": "mypassword",
  "subtractfee": true,
  "speed": "fast"
}

Response

Transaction created

statusinteger
okboolean
messagestring

Example response

{
  "status": 201,
  "ok": true,
  "message": "Succesfully created transaction",
  "data": {
    "txid": "9aede7eee01b79aab1cd5a8990f31069756bdf9c969c67b1fd90428ece11919f"
  }
}