Destination
Last updated
Last updated
Set destination details like the desired token and chain for your walletAddress
. Additionally, configure contract
details for cross-chain calls.
Here are the methods and attributes to configure destination details using the client
object from AarcFundKitModal
Class.
You can also configure destination details in config
object
Name | Type | Description |
---|---|---|
updateDestinationToken
(address?: string, chainId?: number, amount?: number) => void
Updates the destination token, chainId and amount if provided
updateDestinationWalletAddress
(address: string) => void
Updates the destination wallet address
updateDestinationChainId
(chainId: number) => void
Updates the chain ID for the destination
updateDestinationContract
(contract: FKConfig["destination"]["contract"]) => void
Updates the contract information of the destination
updateRequestedAmount
number | undefined
Updates the requested amount for the transaction
updateRequestedAmountInUSD
number | undefined
Updates the requested amount in USD