Skip to main content
type GetSwapPriceOptions = {
  network: EvmSwapsNetwork;
  fromToken: EvmAddress;
  toToken: EvmAddress;
  fromAmount: string;
  slippageBps?: number;
  account?: EvmAddress;
};
Request parameters for getting an indicative swap price.

Properties

PropertyTypeDescription
networkEvmSwapsNetworkThe network on which to perform the swap.
fromTokenEvmAddressThe 0x-prefixed contract address of the token to sell.
toTokenEvmAddressThe 0x-prefixed contract address of the token to buy.
fromAmountstringThe amount of fromToken to sell, in atomic units.
slippageBps?numberMaximum slippage in basis points (100 = 1%). Default is 100.
account?EvmAddressThe taker account address. If omitted, auto-selected from the signed-in user’s accounts.