Skip to content

Latest commit

 

History

History
59 lines (34 loc) · 1.71 KB

File metadata and controls

59 lines (34 loc) · 1.71 KB

External module: "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‹›