🔔Events

Blockchains be talking back

Events are defined as JSON outputs emitted when certain state is changed within a NFT onto the the block explorer

Types of Events Supported

Event NameWhenJSON Format

nft_metadata_update

when NFT metadata for dynamic nft is udpated

{

newURI: URI

tokenID: fuel token ID

time: UNIX timestamp

updateAuthority: fuelAddress

}

nft_sbt_revoke

when an update authority revokes someone nft

{

revoker: fuelAddress

priorOwner: fuelAddress

time: UNIX timestamp

newOwner: fuelAddress

}

nft_assemble

when nfts pieces composed together

{

composabilityType: ENUM

piecesAddress: fuel token IDs

time: UNIX timestamp

wholeTokenID: fuel token ID

}

nft_dissasemble

when NFT whole is decomposed into pieces

{

composabilityType: ENUM

piecesAddress: fuel token IDs

time: UNIX timestamp

wholeTokenID: fuel token ID

}

nft_burn

when a NFT token is discared

{

owner: fuelAddress

user: fuelAddress

tokenID: fuel token ID

expiryDate: UNIX timestamp

paymentAmount: {optional} - probably should be included

}

nft_rented

{

owner: fuelAddress

user: fuelAddress

tokenID: fuel token ID

expiryDate: UNIX timestamp

paymentAmount: {optional} - probably should be included

}

nft_rent_expired

when NFT expiration date is reached

{

user: fuelAddress

tokenID: fuel token ID

expiryDate: UNIX timestamp

}

nft_evolved

when a NFT token evolves into new token

{

user: fuelAddress

formerTokenID: fuel token ID

newTokenID: fueltokenID

proxyContract: contractAddress

}

nft_opened

When unlockable content is redeemed

{

redeemer: userAddress

tokenID: fuel token ID

}

Explain how rent expiry event will be emitted

Last updated