0xtrails. No provider wrapper is required.
Quotes
useQuote
Returns a real-time quote for a cross-chain transfer or swap. Pass human-readable decimal amounts; the hook converts to raw amounts using token decimals.useTrailsSendTransaction
Creates a button-driven transaction flow that opens the SDK modal. Accepts mostuseQuote parameters.
Tokens and balances
useTokenBalances
Returns token balances for an address, sorted by USD value, with price enrichment.symbol, name, decimals, contractAddress, chainId, balance, balanceFormatted, balanceDisplay, balanceUsd, and priceUsd.
useTokenList
Returns all tokens supported across all chains.useSupportedTokens
Filters the token list by chain.useTokenInfo
Returns ERC-20 metadata for a specific token.useAccountTotalBalanceUsd
Returns the aggregate USD value across all tokens for an address.useHasSufficientBalanceToken
Checks whether an address holds enough of a specific token.useHasSufficientBalanceUsd
Checks whether the total USD balance meets a threshold.Chains
useSupportedChains
Returns all supported chains.getChainInfo
Returns metadata for a specific chain by ID.Intent state
useGetIntent
Fetches the current state of an intent by ID. Use this to display status in a custom UI.useIntentRecover
Recovers funds from a stuck intent. Provides a singlerecover() call plus manual control.
useIntentRecoverWithAddress
For custodial or non-custodial wallet scenarios where you handle signing externally. Returns EIP-712 data viagetDataToSign().