register()
SDK
register()
Description
After the curators complete the curation(i.e., quote the target publication on Lens), they must bind the Quoted Publication Id and Bid Index. So that Tako can verify that the curators have completed the curation task. This method is used to perform the binding.
Nature
Method of Class
Parameters
Name
Type
Required
Description
index
number
YES
The index of bid
pubId
string
YES
The id of Curator's Quoted Publication, such as 0x8d11-0x07-DA-1cdac4db
Example Code
import { ethers } from 'ethers'
import { CONSTANT, TakoOpenCuration } from 'tako-open-curation'
const tako = new TakoOpenCuration(CONSTANT.Network.TESTNET)
const lensOpenCuration = tako.lensOpenCuration
const apikey = "Your Alchemy API Key"
const web3Provider = new ethers.providers.AlchemyProvider(80001, apikey)
lensOpenCuration.provider = web3Provider
const result = await lensOpenCuration.register(26, '0x49-0x01-DA-779542b8')
Example Returns
register lens curation succeed
Last updated