TypeScript SDK
ConvertCryptoToFiatParams
Props for the convertCryptoToFiat function
Props for the convertCryptoToFiat function
type ConvertCryptoToFiatParams = { fromAmount: number; fromTokenAddress: Address; to: SupportedFiatCurrency;};The chain that the token is deployed to
The amount of token to convert to fiat value
type fromAmount = number;The contract address of the token For native token, use NATIVE_TOKEN_ADDRESS
type fromTokenAddress = Address;The fiat symbol. e.g "USD"
type to = SupportedFiatCurrency;