Step 1 - Getting Started

Install

To install the SDK, run the following command in your project directory:

npm i @kiroboio/fct-sdk
or
yarn add @kiroboio/fct-sdk

Initialize

Use the start function in order to connect to Kirobo's FCT service.

import { service } from '@kiroboio/fct-sdk'

service.start({
    key: 'dev',
    secret: 'sdk',
})

Config

Should be called on account change and network change.

import { service } from '@kiroboio/fct-sdk'

service.config({
    signer, 
    project?: 'my project',
    builder?: '0x.......',
    autoLogin?: false,
})

Example usage

import { service } from '@kiroboio/fct-sdk'
import { watchSigner } from '@wagmi/core'

watchSigner({}, (signer) => {
  service.config({ signer, ... })
})

Last updated