π₯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.
Query parameters
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.
Query parameters
Response fields
totalAmount
Decimal
Return the dapp rewards that have been recorded
totalAmountMax
Decimal
Returns the maximum amount of rewards that the dapp can distribute
ExampleοΌ
POST /interfa/v2/x2earn/subtotal
POST /interfa/v2/x2earn/subtotal
Returns a JSON object providing subtotal reward amount by address and orderId prefix.
Query parameters
address
String
Required
Wallet Address
orderIdPrefix
String
Optional
Order ID prefix
Response fields
subtotalAmount
Decimal
Return address reward amount based on query params
ExampleοΌ
Code
200
success
the flag for a successful request
5001002
false
Last updated