ConvertFiatToCryptoParams
Props for the convertFiatToCrypto
function
type ConvertFiatToCryptoParams = { from: "USD"; fromAmount: number; to: Address;};
The chain that the token is deployed to
The fiat symbol. e.g: "USD" Currently only USD is supported.
type from = "USD";
The total amount of fiat to convert
e.g: If you want to convert 2 cents to USD, enter 0.02
type fromAmount = number;
The token address For native token, use NATIVE_TOKEN_ADDRESS
type to = Address;