Skip to main content
POST
/
accounts
/
{id}
/
transactions
cURL
curl --request POST \
  --url https://api.onchainden.com/api/v1/accounts/{id}/transactions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Idempotency-Key: <x-idempotency-key>' \
  --data '
{
  "networkId": 123,
  "policyId": "<string>",
  "description": "<string>",
  "to": "<string>",
  "value": "<string>",
  "data": "<string>"
}
'
{
"data": {
"id": "tx_123",
"accountId": "<string>",
"type": "TOKEN_TRANSFER",
"signatureStatus": "pendingInitiatorSignature",
"executionStatus": null,
"threshold": 123,
"approvals": [
{
"id": "mem_123",
"name": "Alice",
"type": "user",
"walletAddress": "0xabc...",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"rejections": [
{
"id": "mem_123",
"name": "Alice",
"type": "user",
"walletAddress": "0xabc...",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"data": {
"destination": "<string>",
"asset": {
"id": "<string>",
"symbol": "<string>",
"decimals": 123,
"name": "<string>",
"logoUrl": "https://assets.example.com/tokens/usdc.png",
"tokenAddress": "<string>"
},
"amount": "<string>",
"networkId": 123
},
"signingPayloads": {
"approvePayload": "<string>",
"rejectPayload": "<string>",
"initiatorPayload": "<string>"
},
"result": {
"resolution": "approved",
"transactionHash": "<string>"
}
}
}

Authorizations

Authorization
string
header
required

API key authentication. Include your API key in the Authorization header.

Headers

X-Idempotency-Key
string
required

Idempotency key for safely retrying mutation requests.

Path Parameters

id
string
required

Body

application/json
networkId
integer
required

Target network chain ID

policyId
string
required

Policy to use for this transaction

description
string
required

Human-readable description

to
string
required

Target address

value
string
required

Wei value (use "0" for ERC20 transfers)

data
string
required

Encoded calldata ("0x" for native transfers)

Response

Transaction created

data
object