Developer Guide

kit

Index

Classes

Interfaces

Functions

Functions

newKit

newKit(url: string, wallet?: Wallet): ContractKit‹›

Defined in contractkit/src/kit.ts:34

Creates a new instance of ContractKit give a nodeUrl

optional wallet to reuse or add a wallet different that the default (example ledger-wallet)

Parameters:

Name

Type

Description

url

string

CeloBlockchain node url

wallet?

Wallet

-

Returns: ContractKit‹›

newKitFromWeb3

newKitFromWeb3(web3: Web3, wallet?: Wallet): ContractKit‹›

Defined in contractkit/src/kit.ts:46

Creates a new instance of ContractKit give a web3 instance

optional wallet to reuse or add a wallet different that the default (example ledger-wallet)

Parameters:

Name

Type

Description

web3

Web3

Web3 instance

wallet?

Wallet

-

Returns: ContractKit‹›