Skip to main content
POST
Set your receive (payout) / refund address for a leg

Authorizations

Authorization
string
header
required

An API key (hk_live_… / hk_test_…) with read/taker/maker scopes. read is read-only: every write except webhooks needs taker or maker (403 otherwise), and either of those can read too. Creating RFQs and listing tokens need taker; quoting needs maker.

Path Parameters

id
string
required

Body

application/json
chain
string
required
address
string
required
leg
enum<string>

required only when both legs of the swap are on chain

Available options:
a,
b

Response

ok

swap
object

leg a = what the maker gives, leg b = what the maker wants