API reference

API reference · Account

What the signed in wallet holds, and its holder tier

GET/api/account/holderSigned in session

The balance of the token in the wallet that signed in, read with balanceOf over the contract's decimals on Robinhood Chain, the tier it earns and what the next tier needs. A reading missing or older than an hour is taken first, a few times a minute at most; past that, and when the chain does not answer, the last reading stands. A tier can widen the lifetime free allowance and multiply the per key API rate limit; nothing is priced differently. Off unless the deployment set ANTIMATTER_TOKEN_ADDRESS and either ANTIMATTER_HOLDER_TIERS or ANTIMATTER_HOLDER_PERK_MIN with ANTIMATTER_HOLDER_PERK_BONUS_MICROS.

Answer 200

The perk and the wallet's last reading.

Fields of the 200 answer
FieldTypeWhat it is
enabledbooleanFalse unless the token's address and a valid set of tiers are both set.
tokenstring or nullThe ERC-20 contract the perk reads, lower case, or null before it exists.
chainIdintegerThe chain the contract is on: 4663, Robinhood Chain.
minWholeintegerWhole tokens the lowest tier needs.
bonusMicrosintegerThe lowest tier's allowance bonus, micro USD.
tiersarray of objectEvery tier, lowest bar first; empty while off.
tiers[].namestring
tiers[].minWholeintegerWhole tokens the wallet must hold.
tiers[].allowanceBonusMicrosintegerMicro USD added to the lifetime free allowance.
tiers[].rateMultipliernumberThe per key API rate limit is multiplied by this; 1 is no change.
tiers[].requestsPerMinuteintegerThe per key API rate limit under this tier.
tiers[].markupDiscountBpsintegerBasis points off the operator's markup on what the holder's keys settle, never off the upstream's price; 0 where no markup is configured.
heldWholeinteger or nullWhole tokens in the signed in wallet at the last reading, or null before one.
tierobject or nullThe highest tier the last reading meets, or null.
nextTierobject or nullThe next tier up, or null at the top.
qualifiesbooleanHolds any tier.
checkedAtinteger or nullUnix ms of the last reading.

Errors

  • 401OpenAI shaped error.

Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.

Antimatter