Arianee Events
Methods related to event management.
Create Arianee event
Fees
This method performs a blockchain transaction. It costs 1 credit and Gas.
Method
ArianeeWallets.methods.createArianeeEvent(data)
Parameter | Type | Mandatory | Description |
---|---|---|---|
data | Object | โ | Event creation data object. |
data โ uri | String | โ | Event uri. |
data โ contentImprint | String | โ | Event content imprint, either contentImprint or content need to be provided. |
data โ certificateId | Number | โ | Arianee token ID of the NFT. Randomly generated if left empty. |
data โ arianeeEventId | Number | โ | Arianee event ID. Randomly generated if left empty. |
data โ content | Object | โ | Event content object, either contentImprint or content need to be provided. |
Output
promise
returns object
: The receipt of the blockchain transaction and keys.
contentImprint
- Arianee event content imprint.arianeeEventId
- Arianee event ID.
Example
const event={
certificateId,
content: {
title:'title event',
$schema: 'https://cert.arianee.org/version1/ArianeeEvent-i18n.json'
}
}
const { contentImprint, arianeeEventId } = await await wallet.methods.createArianeeEvent(event);
Store Arianee event content
Method
ArianeeWallets.methods.storeArianeeEvent(certificateId, arianeeEventId, content, url)
Parameter | Type | Mandatory | Description |
---|---|---|---|
certificateId | Number | โ | Arianee token ID of the NFT. |
arianeeEventId | Number | โ | Arianee event ID. |
content | Object | โ | Event content object. |
uri | String | โ | URI of RPC server where you want to store the event content, usually brand's RPC server. |
Output
promise
returns any
.
Example
await wallet
.methods
.storeArianeeEvent(
certificateId,
arianeeEventId,
event.content,
'https://http://arianee.cleverapps.io/testnet/rpc');
Accept Arianee event
When accepting an Arianee event, it appears in the NFT history.
Fees
This method performs a blockchain transaction. It costs Gas.
Method
ArianeeWallets.methods.acceptArianeeEvent(arianeeEventId)
Parameter | Type | Mandatory | Description |
---|---|---|---|
arianeeEventId | Number | โ | Arianee event ID. |
Output
promise
returns TransactionObject
.
Example
await wallet.methods.acceptArianeeEvent(4433);
Refuse Arianee event
Fees
This method performs a blockchain transaction. It costs Gas.
Method
ArianeeWallets.methods.refuseArianeeEvent(arianeeEventId)
Parameter | Type | Mandatory | Description |
---|---|---|---|
arianeeEventId | Number | โ | Arianee event ID. |
Output
promise
returns TransactionObject
.
Example
await wallet.methods.refuseArianeeEvent(4433);
Updated over 1 year ago