Skip to content

Tokens on networks that can accept payment

GET
/networks/payable/stablecoins
curl --request GET \
--url https://hub.stablezact.com/api/v1/networks/payable/stablecoins \
--header 'X-Public-Key: <X-Public-Key>'

The narrowest of the token lists, and the one to drive a currency picker from: each entry carries the network it belongs to, so you can offer only combinations that will actually work.

The tokens, each with its network.

Media typeapplication/json
object
stablecoins
Array<object>
object
id
string
symbol
string
contractAddress
string
decimals
integer
Network
object
id
string
name
string
shortName
string
chainId
string
type
string
Examplegenerated
{
"stablecoins": [
{
"id": "example",
"symbol": "example",
"contractAddress": "example",
"decimals": 1,
"Network": {
"id": "example",
"name": "example",
"shortName": "example",
"chainId": "example",
"type": "example"
}
}
]
}

Missing or invalid credentials.

Media typeapplication/json
object
success
boolean
error
required

Short machine-ish reason.

string
message

Longer explanation, when there is one.

string
Example
{
"error": "API credentials required. Use x-public-key header or x-api-key and x-api-secret headers."
}