API reference
Public Blacksheep API surface — read accounts, fetch quotes, initiate swaps, and submit withdrawals.
The endpoints below form the public Blacksheep API. Every public endpoint requires Ed25519 request signing (see Authentication) — session-authenticated endpoints used by the dashboard backend are not listed here.
Conventions
- Base URL —
https://api.blacksheep.money - HTTP method — All public endpoints are called with
POSTand a JSON body (endpoints that take no input are called with an empty body). - Envelopes — Success responses wrap the result in
{ "data": ... }; endpoint errors return{ "error": { "code", "message" } }(signature failures return401with a flat{ "error": "<code>" }— see Authentication). - Currency objects in responses also carry a
metadatafield (a JSON-encoded string, typically"{}") — omitted from the examples in these docs. - Amounts — Always in the smallest unit as a string (e.g.
"15000"AUD =$150.00). Never useNumber— useBigIntor a decimal library. - Currencies — Wire format:
{ "value": "...", "code": "AUD", "decimals": 2 }. Crypto currencies also carry achain(e.g."ethereum").
Grouping
account.*— Read account state: balances, external accounts (bank, wallet).quote.*— Fetch an indicative swap quote.transaction.*— Initiate swaps, submit withdrawals, read transaction history.