Read one catalogue entry

GET/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 422 parameter_invalid naming contract_address rather than a 404, 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 answers 404 resource_missing naming network_id; a well-formed address that names no entry of the chain answers it naming contract_address.

Path parameters

  • network_idstringrequired

    The chain, by its network id (60 is 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 (60 is 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 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 TokenAmount in the entry's own decimals and asset_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 lone 0, and no trailing zero after it ("12.5", "0.000001", "3").

    • decimalsinteger <int32>required

      The asset's decimals on its network, which amount_decimal is scaled by.

    • assetstringrequired

      The symbol of the asset the amount is in (USDC), so a fee or a total never mixes units.

  • 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.

Request
curl "https://api.stridge.com/v2/networks/string/string" \
  -H "Authorization: Bearer $STRIDGE_SECRET_KEY"

Set your secret key as STRIDGE_SECRET_KEY (sent as Authorization: Bearer).

Response200
"object": "network_asset",
"network_id": "60",
"contract_address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"network_symbol": "ETH",
"network_name": "Ethereum",
"asset_symbol": "USDC",
"asset_name": "USD Coin",
"category": "evm",
"decimals": 6,
"is_native": false,
"enabled": true,
"logo": "https://cdn.stridge.dev/assets/usdc.svg",
"amount": "12500000",
"amount_decimal": "12.5",
"decimals": 6,
"asset": "USDC"
},
"created_at": "string",
"updated_at": "string"
}