Tokens on networks that can accept payment
GET
/networks/payable/stablecoins
const url = 'https://hub.stablezact.com/api/v1/networks/payable/stablecoins';const options = {method: 'GET', headers: {'X-Public-Key': '<X-Public-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”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."}