π₯Social Growth Protocols
A unified on-chain points mechanism for Dapp growth.
POST /interfa/v2/x2earn
POST /interfa/v2/x2earn
Returns a JSON object providing result of recording.
Param | Type | Required? | Description |
---|---|---|---|
Authorization | String | Required | |
address | String | Required | Wallet Address |
orderId | String | Required | Order ID (business number, trade number, etc. should not duplicate) |
amount | float64 | Required | Amount of reward |
tx | String | Optional | Transaction |
chainType | String | Required when "tx" existed | Chain type. enum(EVM, Non-EVM) |
chainId | string | Required when "tx" existed | EVM Chain ID |
chainName | String | Required when "tx" existed | Chain name, specially for Non-EVM chain. enum(x1, eth, sol, arb, base, polygon, scroll, zksync) |
orderTime | int64 | Required | Order creation timestamp (s) |
orderDesc | String | Optional | Order description maxLength: 255 |
ExampleοΌ
POST /interfa/v2/x2earn/summary
POST /interfa/v2/x2earn/summary
Returns a JSON object providing total reward amount and limit.
Param | Type | Required? | Description |
---|---|---|---|
Authorization | String | Required |
ExampleοΌ
POST /interfa/v2/x2earn/subtotal
POST /interfa/v2/x2earn/subtotal
Returns a JSON object providing subtotal reward amount by address and orderId prefix.
Param | Type | Required? | Description |
---|---|---|---|
Authorization | String | Required | |
address | String | Required | Wallet Address |
orderIdPrefix | String | Optional | Order ID prefix |
ExampleοΌ
Code
Code | Desc | Remarks |
---|---|---|
200 | success | the flag for a successful request |
5001002 | false |
Last updated