Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.trustware.io/llms.txt

Use this file to discover all available pages before exploring further.

These optional discovery endpoints return metadata for all supported chains and tokens. Use them to populate chain and token selectors in your UI rather than hardcoding supported assets. They are not required for the core integration flow.

GET /chains

GET https://api.trustware.io/api/v1/routes/chains Returns metadata for all supported chains including chain ID, name, type, native currency, RPC URL, block explorer URLs, and supported bridge providers.

Response

[
  {
    "axelarChainName": "Avalanche",
    "blockExplorerUrls": ["https://avascan.info/blockchain/c/"],
    "chainIconURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/webp128/chains/avalanche.webp",
    "chainId": "43114",
    "chainName": "Chain 43114",
    "chainType": "evm",
    "id": "43114",
    "nativeCurrency": {
      "decimals": 18,
      "name": "Avalanche",
      "symbol": "AVAX"
    },
    "networkName": "Avalanche",
    "providersSupported": ["squid", "lifi"],
    "rpc": "https://api.avax.network/ext/bc/C/rpc",
    "type": "evm"
  }
]

Chain object fields

FieldDescription
chainIdNumeric chain ID as a string. Use this value in fromChain and toChain fields.
chainNameInternal chain name.
networkNameHuman-readable network name for display.
chainTypeChain type: evm, solana, stellar, btc, etc.
typeAlias for chainType.
nativeCurrencyNative token metadata: name, symbol, decimals.
rpcPublic RPC endpoint for this chain.
blockExplorerUrlsArray of block explorer URLs.
chainIconURIChain logo image URL.
providersSupportedBridge and swap providers available for this chain.

GET /tokens

GET https://api.trustware.io/api/v1/routes/tokens Returns tokens supported by Trustware. Called with no query parameters, it returns the full unpaginated list. Passing any of the optional query parameters below switches the endpoint into paginated mode and the response shape changes accordingly.

Query parameters

ParameterRequiredDescription
chainIdNoRestrict results to a single chain (e.g. "8453" for Base). Passing this also activates pagination.
limitNoPage size when paginating. No fixed default — omit to use the server-side page size.
cursorNoPagination cursor returned by a previous paginated response.
qNoFree-text search across token symbol and name.
includeTotalNoSet to true to include the total result count in the paginated response.
Pagination activates as soon as any of these query parameters is present. Call with no query string to receive the full token list in a single response.

Response

[
  {
    "address": "0x4acc81dc9c03e5329a2c19763a1d10ba9308339f",
    "chainId": "8453",
    "decimals": 18,
    "logoURI": "https://token-media.defined.fi/8453_0x4acc81dc9c03e5329a2c19763a1d10ba9308339f_large.png",
    "name": "Base Baboon",
    "symbol": "$BOON",
    "type": "evm",
    "usdPrice": 9.35818822286e-8
  }
]

Token object fields

FieldDescription
addressToken contract address on this chain. Use this in fromToken and toToken.
chainIdChain this token belongs to.
symbolToken ticker symbol.
nameFull token name.
decimalsToken decimal places.
typeToken type (e.g. evm).
usdPriceCurrent USD price per token.
logoURIToken logo image URL.