REST APIFee Events
Get maker rebate events
Returns paginated on-chain maker rebate earnings for the authenticated wallet, newest first.
The occurred_after and occurred_before filters are unix timestamps in
milliseconds and both bounds are exclusive: only events that occurred
strictly after occurred_after and strictly before occurred_before are
returned. Neither bound is carried in the pagination cursor, so send the
same filters again when requesting the next page.
ApiKeyAuthBearerAuthx-api-key<token>API key authentication via the x-api-key header.
AuthorizationBearer <JWT>Bearer authentication via the Authorization: Bearer <token> header.
first?integerPage size, from 1 to 150. Defaults to 50. A value outside that range is clamped.
int32after?stringThe cursor from the previous page, to get the next one.
length <= 1024fee_in_collateral*booleanSet to true for the amounts paid in USDT, or false for those paid in outcome
tokens.
occurred_after?integerOnly include events that occurred strictly after this unix timestamp (milliseconds)
int64occurred_before?integerOnly include events that occurred strictly before this unix timestamp (milliseconds)
int64application/json; charset=utf-8- response
Paginated fee event response.
success*booleancursor?stringdata*array<>curl -X GET 'https://api.predict.fun/v1/maker-rebates?fee_in_collateral=true'{ "success": true, "cursor": "string", "data": [ { "transactionHash": "string", "createdAt": "string", "takerFeeTokenId": "string", "amount": "string", "marketQuestion": "string", "marketOutcomeName": "string", "price": "string" } ]}Set a referral POST
Set a referral code if not already set. Requires JWT or project authentication. Project auth requires an EIP-712 signature in the x-signature header.
Get referral fee events GET
Returns paginated on-chain referral fee earnings for the authenticated wallet, newest first. The occurred_after and occurred_before filters are unix timestamps in milliseconds and both bounds are exclusive: only events that occurred strictly after occurred_after and strictly before occurred_before are returned. Neither bound is carried in the pagination cursor, so send the same filters again when requesting the next page.