Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CreateExchangeRequest

Index

Constructors

Properties

amount: string

Amount in the smallest unit of the token

chainId: number

The chain ID. Must be a supported chain.

deadline?: number

Latest time swap can execute. Default is 15 minutes

fromAddress: string

The public address that will sign and submit the transaction. If you provide one of a pla_... or acc_... it will be converted to the corresponding address.

maxHops?: number

Maximum hops allowed in optimal route. Default is 2

optimistic?: boolean

Set to true to indicate that the transactionIntent request should be resolved as soon as possible, after the transactionIntent is created and simulated and before it arrives on chain.

policy?: string

ID of the Policy that defines the gas sponsorship strategy (starts with pol_). If no Policy is provided, the own Account native token funds will be used to pay for gas.

slippagePercent?: number

The percentage of slippage tolerance. Default = 0.1. Max = 50. Min = 0

tokenInAddress: string

Token address or 'native' to sell

tokenOutAddress: string

Token address or 'native' to buy

tradeType: TradeType
attributeTypeMap: { baseName: string; format: string; name: string; type: string }[] = ...
discriminator: undefined | string = undefined

Methods

  • getAttributeTypeMap(): { baseName: string; format: string; name: string; type: string }[]

Generated using TypeDoc