@dfinity/cketh
v8.0.0
Published
A library for interfacing with ckETH.
Readme
cketh-js
A library for interfacing with ckETH on the Internet Computer.
[!TIP] Still using
@dfinity/cketh? Upgrade to@icp-sdk/canisters/cketh!
Table of contents
Installation
You can use cketh-js by installing it in your project.
npm i @dfinity/ckethThe bundle needs peer dependencies, be sure that following resources are available in your project as well.
npm i @icp-sdk/core @dfinity/utilsUsage
The features are available through the class CkEthMinterCanister. It has to be instantiated with a canister ID.
import { CkEthMinterCanister } from "@dfinity/cketh";
import { createAgent } from "@dfinity/utils";
const agent = await createAgent({
identity,
host: HOST,
});
const { getSmartContractAddress } = CkEthMinterCanister.create({
agent,
canisterId: MY_CKETH_MINTER_CANISTER_ID,
});
const address = await getSmartContractAddress({});Documentation
You can find the API docs here.
Resources
- ckETH Minter
- ckETH testnet deployment arguments
- How to Acquire ckETH blog post by Jennifer Tran
