Skip to main content
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
NameTypeDescription
updateDestinationToken(address?: string, chainId?: number, amount?: number) => voidUpdates the destination token, chainId and amount if provided
updateDestinationWalletAddress(address: string) => voidUpdates the destination wallet address
updateDestinationChainId(chainId: number) => voidUpdates the chain ID for the destination
updateDestinationContract(contract: FKConfig[“destination”][“contract”]) => voidUpdates the contract information of the destination
updateRequestedAmountnumber | undefinedUpdates the requested amount for the transaction
updateRequestedAmountInUSDnumber | undefinedUpdates the requested amount in USD

Example (Using AarcFundKitModal Functions)

Example (Using config)