Skip to main content
POST
/
accounts
/
{id}
/
transactions
/
{txId}
/
execute
cURL
curl --request POST \
  --url https://api.onchainden.com/api/v1/accounts/{id}/transactions/{txId}/execute \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Idempotency-Key: <x-idempotency-key>' \
  --data '
{
  "type": "approve"
}
'
{
"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
txId
string
required

Body

application/json
type
enum<string>
required

Which resolution to execute

Available options:
approve,
reject

Response

Transaction executed

data
object