Aori is updating it’s API to support our upgraded and audited v2 settlement contract. Most of the changes to the API are small and migration should be relatively simple and non intrusive. Use this document as reference for updating your integration until the official Aori docs are completely updated.
Major Changes:
AoriOrder
object interfaceContents:
https://api.aori.io
-
HTTP API to be able to send Requests statelessly, typically from end users.
wss://api.aori.io
-
WebSocket API for market makers and solvers that want lower latency.
The primary Aori API endpoint url will be converted from rfq.aori.io
to [api.aori.io](<http://api.aori.io>).
Deployments of rfq.aori.io will remain live (but unmaintained) until all integrated parties have successfully migrated. A legacy version of the Aoriscan explorer will remain up at https://v1.aoriscan.io
If you’re using the aori sdk, you can also update your sdk version.
npm install @aori-io/[email protected]
Chain | Address Deployed To |
---|---|
1 (Mainnet) |
0xD5722c275ebB125e26f191b8F0FB3B514aA429Cb |
10 (Optimism) |
0xD5722c275ebB125e26f191b8F0FB3B514aA429Cb |
137 (Polygon) |
0xD5722c275ebB125e26f191b8F0FB3B514aA429Cb |
8453 (Base) |
0xD5722c275ebB125e26f191b8F0FB3B514aA429Cb |
42161 (Arbitrum One) |
0xD5722c275ebB125e26f191b8F0FB3B514aA429Cb |
421614 (Arbitrum Sepolia) |
0xD5722c275ebB125e26f191b8F0FB3B514aA429Cb |
11155111 (Sepolia) |
0xD5722c275ebB125e26f191b8F0FB3B514aA429Cb |
*the latest zone address can always be obtained by using getDefaultZone()
from the aori sdk
inputChainId
& outputChainId
condensed to chainId
inputZone
& outputZone
condensed to zone
recipient
: to specify a different address from offerer
to receive the outputToken
in the outputAmount
feeRecipient
for integrators with independent user bases looking to monetize their integration.Current (rfq.aori.io
):
{
"offerer": "0x..",
"inputToken": "0x..",
"inputAmount": 1000..,
"inputChainId": 1,
"inputZone": "0x..",
"outputToken": "0x..",
"outputAmount": 1000...,
"outputChainId": 1,
"outputZone": "0x..",
"startTime": 1714857600,
"endTime": 1714861200,
"salt": 342515
"counter": 0,
"toWithdraw": false
}
New (api.aori.io
):
{
"offerer": "0x..",
"chainId": 1,
"zone": "0x..",
"inputToken": "0x..",
"inputAmount": 1000..,
"outputToken": "0x..",
"outputAmount": 1000...,
"recipient": "0x..."
"startTime": 1714857600,
"endTime": 1714861200,
"toWithdraw": true
}
*the AoriOrder
type interface can be imported from the ts sdk
Changes:
inputChainId
& outputChainId
condensed to chainId
inputZone
& outputZone
condensed to zone
recipient
: to specify a different address from offerer
to receive the outputToken
in the outputAmount
salt
counter
New (api.aori.io
):
RPC Method | notes |
---|---|
aori_rfq |
|
aori_respond |
provide quote, the functionality of the functionality of aori_match has been rolled into aori_respond . If your quote is matched with the original request, orders will be matched and settled automatically. The aori_respond method can also be used to take resting limit maker orders. |
aori_fail |
|
aori_make |
aori_make method has been added for placing resting limit orders at a specific price that do not need immediate quotes provided or to be seeked for immediate matching |
aori_cancel |
|
aori_subscribe |