Back to Fuels Ts

Assets

apps/docs/src/guide/utilities/using-assets.md

0.103.0790 B
Original Source

Assets

We export an array of Asset objects, that can be useful when creating your dApp. The Asset object has useful metadata about the different assets that are available on blockchain networks (Fuel and Ethereum).

Included assets such as:

  • Ethereum (ETH)
  • Tether (USDT)
  • USD Coin (USDC)
  • Wrapped ETH (WETH)

The helper functions getAssetFuel and getAssetEth can be used to get an asset's details relative to each network. These return a combination of the asset, and network information (the return types are AssetFuel and AssetEth respectively).

<<< @./snippets/using-assets.ts#using-assets-1{ts:line-numbers}