The getActions
method generates a set of actions required to withdraw payments from a sale. It includes all the necessary steps to complete the withdrawal process on the blockchain.
Parameters:
None.
Returns
IWithdrawActions
- A set of actions (IActionsSet
) that need to be executed to withdraw payments. This includes:
withdrawAction
: An action that sends a transaction to withdraw funds from a sale.
Usage
const actions = sdk.WithdrawService.getActions();
actions.on('nextAction', (state) => {
console.log('Action state:', state);
});