Read the network catalogue

GET/networks

Return 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 400 parameter_unknown naming it, and a typed filter whose value does not parse (decimals=six, enabled=yes) answers 422 parameter_invalid naming 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 /v1 keeps 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 (60 is 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 true here; 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 (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.

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

    • 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" \
  -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"
}
]
}