Read the network catalogue
/ networksReturn every asset-on-chain Stridge knows, narrowed by whichever filters the request states, as the catalogue {networks}.
The catalogue is Stridge's and not any workspace's, so this answers the same entries to every caller and states no scope. It is bounded and small, so it is answered WHOLE in one named member, as the webhook event types are, rather than as a paged list: there is no page to follow, and the request takes no limit or page. A client fetches it once, holds it, and resolves names, decimals and marks out of it locally.
The filters are named scalars.
Each present parameter is an exact match, and present parameters are combined with AND; an absent one filters nothing. Any other query parameter answers
400parameter_unknownnaming it, and a typed filter whose value does not parse (decimals=six,enabled=yes) answers422parameter_invalidnaming it rather than being silently dropped. So does a filter named with no value (network_id=).The catalogue is read with a bearer token or a secret key, which every key may do; the frozen
/v1keeps its keyless catalogue reads (GET /v1/networks/list,GET /v1/blockchain/networks,GET /v1/blockchain/assets).
Query parameters
- network_idstringoptional
Only entries on this chain, by its network id (
60is Ethereum). - contract_addressstringoptional
Only the entry at this address. Compared the way the chain family writes addresses, so an EVM address matches whatever case it is stated in.
- network_symbolstringoptional
Only entries on the chain with this ticker, in any case.
- asset_symbolstringoptional
Only entries for this asset, in any case. The symbol is not unique across chains, so this narrows to the asset on EVERY chain that carries it rather than to one entry.
- categorystringoptional
Only entries on chains of this family.
- decimalsintegeroptional
Only entries scaled by this many places.
- is_nativebooleanoptional
Only a chain's own coins, or only tokens issued on one.
- enabledbooleanoptional
Only entries Stridge currently accepts, or only those it does not. A client offering a choice of asset states
truehere; one rendering history states nothing and takes the lot.
Responses
The catalogue, filtered.
The catalogue entries, in the catalogue's own order.
- objectstringrequired
The object's type, always
network_asset. - network_idstringrequired
The chain's identifier in Stridge's own vocabulary: its SLIP-44 coin type as a string (
60is Ethereum). It is a string rather than the numeric EVM chain id, because the catalogue carries non-EVM chains that have no such number. - contract_addressstringrequired
Where the asset lives on its chain. A NATIVE coin has no contract, and answers the chain's own zero-address convention rather than an empty string, so the composite key stays whole and a client never has to special-case a missing half of it.
- network_symbolstringrequired
The chain's ticker, as a person writes it.
- network_namestringrequired
The chain's name, for display.
- asset_symbolstringrequired
The asset's ticker. It is NOT unique across the catalogue: the same symbol appears once per chain that carries the asset, which is why a client keys on the pair and never on this alone.
- asset_namestringrequired
The asset's name, for display.
- categorystringrequired
The chain family, which decides how an address on it is written and compared. An open value set: a client that meets a family it predates renders the entries rather than dropping them.
- decimalsintegerrequired
How many decimal places the asset's smallest unit represents. Every raw on-chain integer for this asset is scaled by
10 ** decimals. - is_nativebooleanrequired
Whether this is the chain's own coin rather than a token issued on it.
- enabledbooleanrequired
Whether Stridge will currently accept the asset. A disabled entry is still answered, because a client rendering historical records needs to name an asset it can no longer take.
- logostringrequired
A URL for the asset's mark. Empty when Stridge holds none.
The smallest deposit of this asset on this chain Stridge will credit, as a
TokenAmountin the entry's owndecimalsandasset_symbol.- created_atstring <date-time>required
When the entry entered the catalogue.
- updated_atstring <date-time>required
When the entry was last changed.
- objectstringrequired
Errors
The error.code values this operation can return. Each one links to its entry in the error catalogue, which explains the cause and the fix.
- 400header_invalidInvalid header
- 400422parameter_invalidInvalid parameter
- 400parameter_unknownUnknown parameter
- 401api_key_not_acceptedAPI key not accepted
- 401authentication_requiredAuthentication required
- 401publishable_key_not_acceptedPublishable key not accepted
- 401token_invalidInvalid or expired token
- 409environment_provisioningEnvironment provisioning
- 429rate_limitedToo many requests