setReferrer
Body
Request envelope for the /exchange endpoint.
All exchange requests must include:
action: The action to performsignature: EIP-712 signature authorizing the actionnonce: Unix timestamp in milliseconds (must be within validity window)
expiresAfterinteger · nullableOptional
Optional expiry for L1-signed actions.
nonceinteger · int64Required
Request nonce (Unix timestamp in milliseconds)
vaultAddressstring · nullableOptional
Optional vault address for vault operations
Responses
200
Request successful. Response format depends on the requested action.
application/json
anyOptional
400
Request body was not valid JSON
text/plain
422
JSON body did not match a supported exchange schema
text/plain
500
Internal server error
application/json
post/exchange
POST /exchange HTTP/1.1
Host: api.hyperlink.xyz
Content-Type: application/json
Accept: */*
Content-Length: 139
{
"action": {
"code": "text",
"type": "setReferrer"
},
"expiresAfter": null,
"nonce": 1,
"signature": {
"r": "text",
"s": "text",
"v": 1
},
"vaultAddress": null
}[
{
"coin": "BTC",
"side": "A",
"limitPx": "29792.0",
"sz": "5.0",
"oid": 91490942,
"timestamp": 1681247412573,
"origSz": "5.0",
"cloid": "0x1234567890abcdef1234567890abcdef"
}
]Last updated