1. Push events
| Event | Repeat | Describe |
|---|---|---|
| WT_DEPOSIT | yes | Deposit |
| WT_WITHDRAW | yes | Withdraw |
| WT_DEPOSIT_REFUND | yes | Deposit refund |
2.Global push format
| Parameter | Type | Required | Describe |
|---|---|---|---|
| event | String | true | Event name |
| trace | String | true | Link ID, the same link ID for the same transaction |
| orderNo | String | true | Order number, globally unique |
| timestamp | Long | true | Push timestamp (milliseconds) |
| detail | Object | The format of push content varies depending on the event |
2.1. Deposit
| Parameter | Type | Required | Describe |
|---|---|---|---|
| coinId | String | yes | Currency ID |
| amount | String | yes | Amount |
| orderNo | String | yes | Order number |
| chainId | String | yes | Chain ID |
| fromAddress | String | no | From address (empty for internal address transfer) |
| state | int | yes | Transaction status (1 = Success, 2 = Block confirmation, 3 = Failed, 4 = Risk control, 5 = Risk control return) |
| toAddress | String | yes | To address |
| txHash | String | no | Transaction Hash (empty for internal address transfers) |
| timestamp | Long | yes | Transaction timestamp |
2.2. Withdrawal
| Parameter | Type | Required | Describe |
|---|---|---|---|
| coinId | String | yes | Currency ID |
| amount | String | yes | Amount |
| orderNo | String | yes | Order number |
| chainId | String | yes | Chain ID |
| fromAddress | String | no | From address (empty for internal address transfer) |
| state | int | yes | Transaction status (1=Successful, 2=Block confirmation, 3=Failed, 4=Awaiting initial review, 5=Awaiting review, 6=Awaiting withdrawal, 7=Rejected, 8=Withdrawal rejected, 9=Returned) |
| toAddress | String | yes | To address |
| txHash | String | no | Transaction Hash (empty for internal address transfers) |
| timestamp | Long | yes | Transaction timestamp |
2.3 Deposit refund
| Parameter | Type | Required | Describe |
|---|---|---|---|
| depositOrderNo | String | yes | Deposit order number |
| refundOrderNo | String | yes | Refund order number |
| chainId | String | yes | Chain ID |
| chainName | String | yes | Chain name |
| coinId | String | yes | Coin ID |
| coinName | String | yes | Coin name |
| coinSymbol | String | yes | Coin symbol |
| from | String | no | Send address |
| to | String | yes | Refund address |
| amount | String | yes | From |
| txHash | String | no | TxHash |
| timestamp | String | yes | Transaction time(timestamp) |
| status | int | yes | Refund status (1=in process, 2=failed, 3=successful) |
| remark | String | no | Remark |
