Skip to content
Docs
Actions
Account Queries

Account Queries

aori_accountOrders

ParametersTypeRequiredDescription
apiKeystringYesAPI 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.

ParametersTypeRequiredDescription
addressstringYesAddress of your on-chain wallet
tokenstringYesAddress of token e.g 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 for Uniswap
chainIdnumberYesInteger 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>
     }]
 }