On this page

Assets & Routes

Read available funding assets, token decimals and Sepolia action routes.

Get funding assets#

GET /api/queue/assets takes no query parameters. It returns funding assets and their availability at the response's blockNumber and stateBlockHash.

GET/api/queue/assets
Sepolia
Request
Terminal
curl --include --request GET \
  'https://api.fuyu.xyz/api/queue/assets' \
  --header 'Accept: application/json'
Response
Run the request to see its response.

Live read requests run through the docs server. Copied examples call api.fuyu.xyz directly. No API key required.

Asset fields#

FieldMeaning
addressToken contract; 0x0000000000000000000000000000000000000000 identifies native ETH
symbol / decimalsDisplay symbol and number of decimal places
kindAsset classification, such as native or core-fungible
statusdeposit-enabled, publisher-disabled or unavailable
reserveAtomicPool-accounted reserve in atomic units; null when unavailable

Handle amounts as integers#

Use the returned address to identify an asset and its decimals to format amounts. ETH uses 18 decimals; the Sepolia USDC in the catalog uses 6. One USDC is 1000000 atomic units.

Keep atomic amounts as decimal strings or BigInt. JavaScript Number can lose precision. reserveAtomic is a Pool value, not the user's private balance.

Read action routes and fees#

The funding catalog does not list every possible action output. Read routes from deployment configuration for swap and Earn routes. Each route identifies its id, assetIn, assetOut and adapterAddress.

The same response contains relayFees: its sponsored flag, free operation names and current fee schedule. Read these values when showing a payment review instead of hard-coding a fee.