Account Queries
aori_accountOrders
Parameters | Type | Required | Description |
---|---|---|---|
apiKey | string | Yes | API key (see Authentication) |
{
"id": <request_id>,
"jsonrpc": "2.0",
"method": "aori_accountOrders",
"params": [{
"apiKey": <string>,
}
}]
}
Response
{
"id": <request_id>,
"result": {
"orders": [
{
// Order details
},
// ... more orders
]
}
}
aori_accountBalance
To fetch your balance for a specific token for your account, you can use the aori_accountBalance
method.
This method mimics the call you would make to retrieve your account balance on an exchange, but does so for your on-chain wallet address.
Parameters | Type | Required | Description |
---|---|---|---|
address | string | Yes | Address of your on-chain wallet |
token | string | Yes | Address of token e.g 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 for Uniswap |
chainId | number | Yes | Integer representing chain id that token exists on e.g 1 for Ethereum Mainnet |
{
"id": <request_id>,
"jsonrpc": "2.0",
"method": "aori_accountBalance",
"params": [{
"address": <string>,
"token": <string>,
"chainId": <number>
}]
}