Read one catalogue entry
/ networks/ {network_id}/ {contract_address}Return the one asset-on-chain the pair identifies, as the NetworkAsset itself.
Both halves of the composite key are named, because neither identifies an entry alone: a chain carries many assets, and an asset lives on many chains at different addresses.
The address is compared the way its chain family writes them.
On an EVM chain that means case-insensitively, so a checksummed address and a lowercase one reach the same entry. An address that is not well-formed for its chain answers
422parameter_invalidnamingcontract_addressrather than a404, because the request could not have matched anything and saying "not found" would suggest it might have. A chain the catalogue carries no entry of answers404resource_missingnamingnetwork_id; a well-formed address that names no entry of the chain answers it namingcontract_address.
Path parameters
- network_idstringrequired
The chain, by its network id (
60is Ethereum). - contract_addressstringrequired
The asset's address on that chain. A native coin is addressed by its chain's own zero-address convention.
Responses
The catalogue entry.
- 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.
Show 9 more fieldsShow fewer fields
- 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.- amountstringrequired
The amount in the asset's base units: digits only, no sign, no exponent and no leading zero (
"0"for zero). At most a uint256, the widest on-chain amount. - amount_decimalstringrequired
The exact human amount,
amount / 10^decimals: no sign, no exponent, no leading zero before the point other than a lone0, and no trailing zero after it ("12.5","0.000001","3"). - decimalsinteger <int32>required
The asset's decimals on its network, which
amount_decimalis scaled by. - assetstringrequired
The symbol of the asset the amount is in (
USDC), so a fee or a total never mixes units.
- amountstringrequired
- created_atstring <date-time>required
When the entry entered the catalogue.
- updated_atstring <date-time>required
When the entry was last changed.
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
- 404resource_missingNo such object
- 409environment_provisioningEnvironment provisioning
- 429rate_limitedToo many requests