POST
/
api
/
transaction
/
encode
curl --request POST \
  --url https://api.adamik.io/api/transaction/encode \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "transaction": {
    "data": {
      "chainId": "bitcoin",
      "sender": "<string>",
      "recipient": "<string>",
      "fees": 123,
      "gas": 123,
      "nonce": 123,
      "memo": "<string>",
      "format": "json",
      "params": {
        "pubKey": "<string>"
      },
      "useMaxAmount": false,
      "mode": "transfer",
      "amount": 123
    }
  }
}'
{
  "transaction": {
    "data": {
      "chainId": "bitcoin",
      "sender": "<string>",
      "recipient": "<string>",
      "useMaxAmount": false,
      "fees": "<string>",
      "gas": "<string>",
      "nonce": "<string>",
      "memo": "<string>",
      "format": "json",
      "params": {
        "pubKey": "<string>"
      },
      "mode": "transfer",
      "amount": "<string>"
    },
    "encoded": "<string>"
  },
  "status": {
    "errors": [],
    "warnings": []
  }
}

Authorizations

Authorization
string
header
required

Body

application/json
transaction
object
required

Response

200
application/json
200 OK - Returns the transaction data encoded into a blockchain-specific format, ready for broadcasting.
transaction
object
required
status
object
required