Returns paginated list of referrals for the sender
Changed onRequest
- Base URLhttps://api.ethereal.trade
- Authnone declared. Required headers: X-Ethereal-Auth, X-Ethereal-Sender, X-Ethereal-Signature, X-Ethereal-Intent, X-Ethereal-SignedAt
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Direction to paginate through objects
Limit the number of objects to return
Pointer to the current object in pagination dataset
Bytes32 encoded subaccount name (0x prefix, zero padded, set when using linked signer)
Order by field
Headers
Must be: EIP712Auth
Address that signed this message
Hex-encoded EIP-712 signature authorizing this request
Intent of the message (action to be taken)
Message signedAt current timestamp (seconds since Unix Epoch)
Response
Example response
{
"data": [
{
"code": "XYZ123456789",
"codeUsageRemaining": 5,
"createdAt": 1712019600000,
"id": "9036443a-441a-4a66-87f2-bd5c44cdca7a",
"referee": "0x4c9EDD5852cd905f086C759E8383e09bff1E68B3",
"refereeTotalPoints": "1234567.890000000",
"referrer": "0x41e038d9c9aF27369EcBCe72A69a96695A1fD0D3"
}
],
"hasNext": true
}Changes
- info
added the non-success response with the status
- info
- breaking
the
X-Ethereal-Intentrequest header's property undefined was restricted to a list of enum values - breaking
the
headerrequest parameterX-Ethereal-Intentwas restricted to a list of enum values - breaking
for the
headerrequest parameterX-Ethereal-Intent, the type changed fromstringtonumber - breaking
for the
headerrequest parameterX-Ethereal-Sender, the format changed from no format tohex - breaking
for the
headerrequest parameterX-Ethereal-Signature, the format changed from no format tohex - info
added the new enum value
0.00to theheaderrequest parameterX-Ethereal-Intent - info
added the new enum value
1.00to theheaderrequest parameterX-Ethereal-Intent - info
added the new enum value
2.00to theheaderrequest parameterX-Ethereal-Intent - info
added the new enum value
3.00to theheaderrequest parameterX-Ethereal-Intent - info
the
response's property default valueBad Requestwas removed for the status - info
the
response's property default valueForbiddenwas removed for the status - info
the
response's property default valueNot Foundwas removed for the status - info
the
response's property default valueToo Many Requestswas removed for the status - info
the
response's property default valueUnauthorizedwas removed for the status - info
the
response's property default valueUnprocessable Entitywas removed for the status - info
the
response's property default value400was removed for the status - info
the
response's property default value401was removed for the status - info
the
response's property default value403was removed for the status - info
the
response's property default value404was removed for the status - info
the
response's property default value422was removed for the status - info
the
response's property default value429was removed for the status - info
response property
messagelist-of-types was narrowed by removing typesarrayfrom media typeapplication/jsonof response400
- breaking