https
or wss
respectively.wss
) then the server communicates its supported protocols upon connnection. See the initialize
method of the Request for Quote and Last Look protocols for details. WebSocket servers can support both RFQ and Last Look protocols.protocolFeeLight
on the Swap contract. The amount is transferred from the signerWallet
address upon settlement.-32700
Parse error-32600
Invalid Request-32601
Method not found-32602
Invalid params-32603
Internal error-32000 to -32099
(Reserved for implementation-defined server-errors)-33600
Cannot provide the requested quote or order-33601
Not trading the requested signerToken
senderToken
pair-33602
The specified senderAmount
or signerAmount
is too low-33603
The specified senderAmount
or signerAmount
is too high-33604
Invalid request parameters-33605
Rate limit exceeded-33700 to -33799
(Reserved for implementation specific trading errors)4
with the airswap chain
command. The following examples assume a local development server is running at http://localhost:3000
.airswap order:get
to request an order directly from your server. (RFQ)airswap order:best
to request an order from servers supporting a specific token pair. Once your server is on the registry it will be queried with this command. (RFQ)airswap quote:stream
to subscribe to a pricing stream and make orders for your server. (Last Look)airswap account:import
command. You can but are not required to use the same Ethereum account that your Server is using.airswap order:best
command and aggregators like MetaMask Swaps.