Manage Arianee Events

Accept or decline Arianee Event

wallet.smartAsset.acceptEvent(network, eventId)
wallet.smartAsset.declineEvent(network, eventId)
ParameterMandatoryTypeDescription
networkβœ…StringProtocol network of the given Arianee Event.
eventIdβœ…StringIdentification number of the Arianee Event to accept or decline.

Example:

const wallet = new Wallet({ chainType: 'mainnet' });
const myNft = await wallet.smartAsset.getOwned();
await myNft[0].arianeeEvents[0].acceptEvent();
await myNft[0].arianeeEvents[0].refuseEvent();

Result: The receipt of the transaction is returned.