API URL
POST /api/v1/collectionRequest
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| pid | integer(int64) | Yes | WaaS project ID. Go to Cregis > WaaS > Select project > Settings > Developer to view |
| currency | string | Yes | Token to withdraw (chain_id and token_id) |
| from_address | string | Yes | Source address (must be enabled project address) |
| to_address | string | Yes | Destination address (must be project wallet) |
| amount | string | No | Amount to collect. If empty, collect all available funds. Different tokens have different precision requirements |
| nonce | string | Yes | 6-character random string |
| timestamp | integer(int64) | Yes | Current timestamp (milliseconds) |
| sign | string | Yes | Digital signature to prevent tampering |
Request Example
Response
Response Result
| Name | Type | Description |
|---|---|---|
| code | string | Response Code |
| msg | string | Response Message |
| data | object | Response Data Object |
Response data Object
| Name | Type | Description |
|---|---|---|
| cid | integer(int64) | System Sequence Number |