❤️React

React to an NFT using a RARA reaction. This will generate an NFT (“Like Token”) for the Reactor. Add metadata to the reaction by including an IPFS hash.

{
    transformId: Uint256, // The ID of the Reaction Transform you want to use
    quantity: Uint256, // The number of Reactions you'd like to send
    referrerAddress: Address, // The Address that should receive referrer cuts
    optionBits: Uint256, // Parameter version of the Reaction you're using
    takerNFTChainId: Uint256, // Chain ID of the NFT receiving the Reaction
    takerNFTAddress: Address, // Contract Address of the NFT receiving the Reaction
    takerNFTId: Uint256, // Token ID of the NFT receiving the Reaction
    curatorVaultOverride: Address, // Override used for alternate Curator Vaults
    ipfsMetadataHash: String // Additional metadata to be saved with Reaction
}

Parameters

All parameters are required

transformId

The ID of the reaction to be used. Only registered reactions can be used.

quantity

The number of reactions to be sent. If value is sent, the reaction quantity must equal the value / reactionPrice

referrerAddress

The address of the referring party. If value is sent, the referrer will be rewarded with value * saleReferrerBasisPoints. Use addressZero if no referrerAddress is set.

optionBits

This parameter can be used to create different versions of the reaction NFT. Use 0 if optionBits are not set.

takerNFTChainId

Chain ID of the NFT receiving reactions

takerNFTContractAddress

Contract Address of the NFT receiving reactions

takerNFTTokenId

Token ID of the NFT receiving reactions

curatorVaultOverride

This parameter allows for multiple Curator Vaults. Use addressZero if curatorVaultOverride is not set.

IPFSMetadataHash

This parameter can be used to embed additional data about the user interaction. Use maxInt256 if ipfsMetadataHash is not set.

Source Code

View the protocol on Github.

Last updated

RARA, the Social Curation Protocol for NFTs. © 2020-2023 RARA Social Inc.