DEVELOPER API
Authorized Avatars mint data is readable by third-party tools — galleries, marketplaces, and verifiers. Every record carries the work hash so anyone can independently confirm a mint was honestly mined.
Authentication
Reads are public. Use your app's Base44 API key in the Authorization header for any tool that hits the Avatar entity. Keep the key server-side — never expose it in a browser.
Endpoints
/avatars/avatars/:token_id/avatars?owner=:address/avatars?phase=:nAvatar record shape
Each avatar record contains the fields a verifier needs:
Verifying a mint hash
To confirm an avatar was mined honestly, recompute the work hash from the recorded inputs and check it has at least difficulty_bits leading zero bits — the threshold for the avatar's phase. The seed is the work hash re-hashed with the 5-minute time bucket of the mint, so the same inputs always reproduce the same pixels.
- Fetch the avatar record by token id.
- Recompute
hash(address | nonce | prevWork | anchor). - Count leading zero bits — it must be ≥
difficulty_bits. - Re-derive the seed from the work hash + time bucket and confirm the traits match.
On-chain payment
Each mint's tx_hash is a plain ETH transfer to the treasury, verifiable on the explorer:
0x328baca1c22d5cf7bdf4f67cfd56b4789c4a043bhttps://robinhoodchain.blockscout.com