Ask for an invitation
Menu

Endpoint

Retrieve the fee account

GET/v1/fee_account

The merchant-owned single-key account that pays network fees on the EVM networks and Solana. On TRON the wallet account itself pays its fees and the TRON fee key only holds spare TRX and forwards it (Money out). It is never an owner of a wallet. low: true means a send on that network would fail with fee_account_low.

Scope a restricted key needs
wallets:read
Publishable key
Not allowed: secret or restricted key only
Idempotency-Key
Not used. A GET is already safe to repeat.

Parameters

Parameters of Retrieve the fee account
ParameterType and placeMeaning
Orrerie-VersionstringheaderAPI version date. Default: the version the key was created with. Example 2026-10-11.

Example request

curl

curl https://api.orrerie.com/v1/fee_account \
  -H "Authorization: Bearer $ORRERIE_SECRET_KEY"

JavaScript

const response = await fetch("https://api.orrerie.com/v1/fee_account", {
  headers: {
    Authorization: `Bearer ${process.env.ORRERIE_SECRET_KEY}`,
  },
});
const result = await response.json();
if (!response.ok) throw new Error(`${result.error.code}: ${result.error.message}`);
console.log(result);

Python

import os
import requests

response = requests.get(
    "https://api.orrerie.com/v1/fee_account",
    headers={"Authorization": f"Bearer {os.environ['ORRERIE_SECRET_KEY']}"},
    timeout=30,
)
result = response.json()
if not response.ok:
    raise RuntimeError(f"{result['error']['code']}: {result['error']['message']}")
print(result)

PHP

<?php
$request = curl_init('https://api.orrerie.com/v1/fee_account');
curl_setopt_array($request, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('ORRERIE_SECRET_KEY'),
    ],
]);
$body = curl_exec($request);
if ($body === false) {
    throw new RuntimeException(curl_error($request));
}
$result = json_decode($body, true);
if (curl_getinfo($request, CURLINFO_HTTP_CODE) >= 400) {
    throw new RuntimeException($result['error']['code'] . ': ' . $result['error']['message']);
}
print_r($result);

Responses

200 OK

The answer is the fee_account object. Headers: Orrerie-Request-Id.

Example response, 200

{
  "id": "fa_z9x4m7aaz6zqhzgd0x1qg952",
  "object": "fee_account",
  "livemode": true,
  "created": "2026-09-02T09:16:20.000Z",
  "top_up_from_takings": true,
  "keys": [
    {
      "family": "evm",
      "address": "0x52908400098527886E0F7030069857D2E4169EE7",
      "balances": [
        {
          "network": "base",
          "asset": "base:eth",
          "amount": "0.000410000000000000",
          "value": {
            "amount": "1.02",
            "currency": "USD"
          },
          "low_mark": {
            "amount": "0.50",
            "currency": "USD"
          },
          "low": false
        }
      ]
    },
    {
      "family": "solana",
      "address": "4Nd1mYvQwC8eBtBMRZcQJ6pGZpUuPqiJvWx3nCkV8sXh",
      "balances": [
        {
          "network": "solana",
          "asset": "solana:sol",
          "amount": "0.000000000",
          "value": {
            "amount": "0.00",
            "currency": "USD"
          },
          "low_mark": {
            "amount": "0.50",
            "currency": "USD"
          },
          "low": true
        }
      ]
    },
    {
      "family": "tron",
      "address": "TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7",
      "balances": [
        {
          "network": "tron",
          "asset": "tron:trx",
          "amount": "0.000000",
          "value": {
            "amount": "0.00",
            "currency": "USD"
          },
          "low_mark": {
            "amount": "0.50",
            "currency": "USD"
          },
          "low": true
        }
      ]
    }
  ]
}

Any other status: an error

A status of 400 or above answers with the error object. Branch on its code, never on its message.

Errors

This call has no error of its own. It answers with the errors every call can answer with: a bad key, a missing scope, an object that does not exist, the rate limit. Every error code has its own entry.