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

initiator authorizes the transaction; approve/reject are approver votes.

Available options:
initiator,
approve,
reject
signature
string
required

The signature

execute
boolean
default:false

Whether to execute immediately if threshold is met

Response

Signature submitted

data
object