Tako Protocol
  • What is Tako?
  • Social Abstract Account
  • Social Legos
    • On-Chain Reputation
    • Farcaster
  • Monetization
    • Profile as an asset
      • Introduction
      • API Overview
      • For Farcaster dApp
        • Deployed Contract Address
        • Contract Specification
          • ProfileMarketV1
          • FarcasterKey
        • APIs
          • GetBuyPrice
          • GetBuyPriceAfterFee
          • GetSellPrice
          • GetSellPriceAfterFee
          • Discover
          • Explore
          • GetCommentsOnFarcaster
          • GetCommentsOnLens
          • GetHolders
          • GetAssets
          • GetProfileAndKey
          • GetActivated
          • GetHoldersByAddress
          • GetHoldingByAddress
          • GetKeyInfo
          • GetTrending
          • GetTrendingVolume
          • GetTradesLatest
          • GetTradesList
          • GetClaimable
    • Open Curation
      • Introduction
      • API Overview
      • For Lens dApp
        • Deployed Contract Address
        • Contract Specification
          • Enums and Structs
          • Owner Functions
          • Governance Functions
          • Bid Functions
          • Curate Functions
          • View Functions
        • APIs
          • GetWhitelistInfo
          • CheckOnchainTX
          • getOpenCurationCuratorAccepted
          • getOpenCurationBidsCreated
          • getOpenCurationBidsConfirmingCreated
          • getOpenCurationBidsPassed
          • getOpenCurationRecentActiveCurators
          • GetBidsFeed
          • verifyOpenCurationBid
          • getOpenCurationBidsCreatedStats
          • getOpenCurationCuratorLastBidPrice
          • registerOpenCuration
          • getOpenCurationIdIndexPairs
        • SDK
          • Installing the SDK
          • allBids
          • takoHubInfo()
          • generateBidAbiData()
          • generateBidBatchAbiData()
          • estimateGas()
          • generateTransaction()
          • register()
          • verifyBid()
          • generateClaimRewardAbiData()
          • curatorStatus()
    • Peer-to-Peer Curation
      • Introduction
      • API Overview
      • For Lens dApp
        • Deployed Contract Address
        • Contract Specification
          • Enums and Structs
          • Owner Functions
          • Governance Functions
          • Bid Functions
          • Curate Functions
          • View Functions
        • APIs
          • GetToken
          • RefreshToken
          • GetWhitelistInfo
          • SearchProfile
          • CheckOnchainTX
          • GetRecentActiveCurators
          • ActiveStatistics
          • GetLensCuratorAccepted
          • GetLensBidsCreated
          • GetLensBidsReceived
          • GetLensBidsConfirmingCreated
          • GetLensBidsConfirmingReceived
          • VerifyLensBid
          • IgnoreLensBid
          • GetLensBidsIgnored
          • GetLensBidsCreatedStats
          • GetLensBidsReceivedStats
          • GetLensCuratorLastBidPrice
          • GetLensPubIndexPairs
          • GetLensPubIds
      • For Farcaster dApp
        • Deployed Contract Address
        • Contract Specification
          • Enums and Structs
          • Owner Functions
          • Governance Functions
          • Bid Functions
          • Curate Functions
          • View Functions
        • APIs
          • GetToken
          • RefreshToken
          • GetWhitelistInfo
          • SearchProfile
          • CheckOnchainTX
          • GetRecentActiveCurators
          • ActiveStatistics
          • GetFarcasterCuratorAccepted
          • GetFarcasterBidsCreated
          • GetFarcasterBidsReceived
          • GetFarcasterBidsConfirmingReceived
          • VerifyFarcasterBid
          • IgnoreFarcasterBid
          • GetFarcasterBidsIgnored
          • GetFarcasterBidsCreatedStats
          • GetFarcasterBidsReceivedStats
          • GetFarcasterCuratorLastBidPrice
          • GetFarcasterEngagement
          • GetFarcasterPubIndexPairs
  • Links
    • Github
    • Twitter
    • Brand kit
Powered by GitBook
On this page
  • Parameters
  • Example Code
  • Example Returns
  1. Monetization
  2. Open Curation
  3. For Lens dApp
  4. SDK

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
PreviousgenerateTransaction()NextverifyBid()

Last updated 1 year ago