instantWithdrawal

instantWithdrawal is a method on the ARIO class that instantly withdraws funds from an existing vault on a gateway. If no gatewayAddress is provided, the signer's address will be used.

instantWithdrawal requires authentication.

Examples

instantWithdrawal

const { id: txId } = await ario.instantWithdrawal({
    gatewayAddress: 't4Xr0_J4Iurt7caNST02cMotaz2FIbWQ4Kbj616RHl3',
    vaultId: 'fDrr0_J4Iurt7caNST02cMotaz2FIbWQ4Kcj616RHl3'
});

Parameters

ParameterTypeDescriptionRequired
gatewayAddressstringThe gateway address where the vault existsNo
vaultIdstringThe ID of the vault to withdraw fromYes
tagsarray

An array of GQL tag objects to attach to the transaction

No

Was this page helpful?