Here’s a list of all utility types that are used in Execution Cloud Widget

DepositWidgetSDK

Property/MethodTypeDescription
configFKConfigConfiguration object for the widget
navigationFKNavigationNavigation control for the widget
reset() => voidResets the widget state
getMeshIntegrationPlaforms() => PromiseRetrieves mesh integration platforms
openMeshLink(integrationId?: string) => PromiseOpens a mesh link
openOnRampFlowViaUrl() => PromiseOpens the on-ramp flow via URL
searchSupportedTokens(searchString?: string, address?: string, chainId?: string) => Promise<SupportedToken[]>Searches for supported tokens
updateDestinationTokenWithAddress(tokenAddress: string, chainId: string, tokenAmount?: string) => PromiseUpdates the destination token
getSupportedTokens() => Promise<SupportedToken[]>Retrieves all supported tokens
getSupportedChains() => Promise<ChainInfo[]>Retrieves all supported chains
getMultichainBalance(address: string, extendedBalances?: boolean) => PromiseRetrieves multichain balance
getTokenPrice(tokenSymbol?: string) => PromiseRetrieves token price
getCheckoutRoute() => PromiseRetrieves checkout route
getDepositRoute() => Promise<RouteResponse | undefined>Retrieves deposit route
handleApprove({ approvalTxs }: { approvalTxs: ApprovalTransaction[] }) => Promise<RelayedTxListResponse[]>Handles approval transactions
handleExecute({ executionTxs, provider }: { executionTxs: ExecutionTransaction[], provider?: string }) => Promise<RelayedTxListResponse[]>Handles execution transactions
getTransactionStatus(txHash: string) => PromiseRetrieves transaction status
addTxMetaDetails(data: TxMetaDetails) => voidAdds transaction meta details
updateChainId(chainInfo: ChainInfo) => voidUpdates the chain ID
goToPreviousStep() => voidNavigates to the previous step
updateDestinationContract(contract: FKDestination[“contract”]) => voidUpdates the destination contract
updateDestinationToken(token: SupportedToken, chainInfo?: ChainInfo) => voidUpdates the destination token

SupportedToken

PropertyTypeDescription
addressstringToken address
chainIdnumberChain ID where the token is supported
namestringToken name
symbolstringToken symbol
decimalsnumberNumber of decimal places
logoURIstringURI of the token logo
prioritynumber?Priority of the token
sourcestring[]?Sources supporting the token

ChainInfo

PropertyTypeDescription
chainIdstringChain ID
namestringChain name
logoURIstringURI of the chain logo
prioritynumber?Priority of the chain

FormattedToken

PropertyTypeDescription
formattedBalancestringFormatted token balance
formattedUSDValuestringFormatted USD value of the token
contractstring?Contract address
namestringToken name
symbolstringToken symbol
addressstringToken address
token_addressstringToken address (duplicate?)
decimalsnumberNumber of decimal places
logostringURI of the token logo
native_tokenbooleanWhether it’s a native token
typestringToken type
is_spambooleanWhether the token is considered spam
balancestringRaw balance
usd_pricenumberUSD price of the token
sourceAmountstring?Source amount
chainIdstringChain ID
chain{ id: string, logo: string }Chain information