1.0.5 • Published 13 days ago

@ottp/sdk v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
13 days ago

OTTP Integration Kit

This is an official integration repo for OTTP.

Using this example

Run the following command:

npm -i @ottp/sdk

Usage

Get Attestations

This method fetches attesations made using OTTP protocol for a given FID (Farcastar ID).

import { OttpClient } from '@ottp/sdk'

const main = async () => {

    const ottp = new OttpClient()
    const attestations = await ottp.getOttpAttestations('313600')
}

main()

Get OTTP ID

This method fetches the ottp id from the chain for a given FID (Farcastar ID).

import { OttpClient } from '@ottp/sdk'

const main = async () => {

    const ottp = new OttpClient()
    ottp.getOttpId(313600)
}

main()

Get Collaborators

This method fetches the collaborators for a given FID (Farcastar ID).

import { OttpClient } from '@ottp/sdk'

const main = async () => {

    const ottp = new OttpClient()
    const collabs = await ottp.getCollaborators('316300')
    console.log(collabs)
}

main()

Create Attestation

Refer the example repo.

1.0.2

13 days ago

1.0.5

13 days ago

1.0.4

13 days ago

1.0.3

13 days ago

1.0.1

18 days ago

1.0.0

18 days ago