fromWallet
amount
to sendtoken
to sendfund
method.
fund
methodfund
method will trigger a transaction to the primary wallet.
This is the only method that is 100% headless, meaning it does not require any user interaction and shows no UI.
It takes a single object with the following properties:
fund
method returns a Promise that resolves to the transaction hash.
connectWalletForFunding
methoduserWallets
.
This method takes no arguments.
promptAmountAndFund
methodpromptAmountAndFund
method will prompt the user to enter an amount and token,
and then trigger a transaction to the primary wallet.
This method takes a single object with the following properties:
exact
: The user will not be able to change the amount.recommended
: Set initial amount, but user will be able to change it.minimum
: Set initial amount, and user will be able to change it, but not below the minimum amount.exact
: The user will not be able to change the selected token.recommended
: Set initial selected token, but user will be able to change it.exact-with-amount
: Same as exact
, and also treats the amount
param as relative to the selected token rather than USD.USD
) as the token.If a token is provided, but doesn’t correspond to the selected token, quick suggestions will NOT be shown.void
externalWalletFundingEnabled
property