getActions

The getActions method generates a set of actions required to approve and execute a purchase of fractions from a sale. The actions include approving the withdrawal of funds and sending a transaction to buy fractions.

Parameters

None.

Returns

IApproveSaleActions - A set of actions (IActionsSet) that need to be executed to complete the purchase. This includes:

  • approveTx: Approves the withdrawal of funds from the buyer's account to the market contract.
  • buyTx: Executes the purchase transaction on the blockchain.

Usage

const actions = sdk.buyService.getActions();
actions.on('nextAction', (state) => {
  console.log('Action state:', state);
});