Process Single Pending Corporate Action
Endpoint: POST /api/v1/maker/corporate-actions/action/{action_id}/process
Description: Authorize processing of a single corporate action
Authentication: API Key + Signature. See Authorization
Request Parameters:
| Field | Type | Required | Description |
|---|---|---|---|
| action_id | string | Yes | Route parameter, corporate action ID |
| asset_token | string | Yes | URL parameter, asset token address |
Response Parameters
| Field | Type | Description |
|---|---|---|
| code | int | Result code. 0 for success |
| data | object | Result object |
| data.id | uuid | Action record id |
| data.success | bool | Whether execution was successful |
| data.tx_hash | string|null | Execution transaction hash |
| data.error | string|null | Error description |
| data.chain_id | int|null | Blockchain network ID |
Request Example
bash
curl -X POST "{API_BASE_URL}/api/v1/maker/corporate-actions/action/123/process?asset_token=0x09671802Cc9Bbf6402f2e7a07b220Aa7b43D8c91" \
-H "X-API-Key: YOUR_API_KEY" \
-H "X-Maker-Addr: YOUR_MAKER_ADDRESS" \
-H "X-API-Timestamp: 1715100000000" \
-H "X-API-Signature: GENERATED_SIGNATURE" \
-H "Content-Type: application/json"Response Example
json
{
"code": 0,
"data": {
"id": "string",
"success": true,
"tx_hash": "0x...",
"error": null,
"chain_id": 56
}
}Implementation Notes
- The processing result includes a
chain_idfield, identifying which blockchain network the corporate action is executed on tx_hashis the transaction hash on that chain, which can be used to query transaction details in the blockchain explorer- When processing is successful,
successistrueanderrorisnull - When processing fails,
successisfalseanderrorcontains the error description