Skip to content

CkETHMinterCanister

Defined in: packages/cketh/src/minter.canister.ts:29

  • Canister<CkETHMinterService>

protected new CkETHMinterCanister(id, service, certifiedService): CkETHMinterCanister

Defined in: packages/utils/dist/services/canister.d.ts:7

Principal

_SERVICE

_SERVICE

CkETHMinterCanister

Canister<CkETHMinterService>.constructor

protected caller: (__namedParameters) => _SERVICE

Defined in: packages/utils/dist/services/canister.d.ts:9

QueryParams

_SERVICE

Canister.caller


protected readonly certifiedService: _SERVICE

Defined in: packages/utils/dist/services/canister.d.ts:6

Canister.certifiedService


protected readonly service: _SERVICE

Defined in: packages/utils/dist/services/canister.d.ts:5

Canister.service

get canisterId(): Principal

Defined in: packages/utils/dist/services/canister.d.ts:8

Principal

Canister.canisterId

eip1559TransactionPrice(params): Promise<Eip1559TransactionPrice>

Defined in: packages/cketh/src/minter.canister.ts:151

Estimate the price of a transaction issued by the minter when converting ckETH to ETH and ckER20 to ERC20.

Eip1559TransactionPriceParams

The parameters to get the minter info.

Promise<Eip1559TransactionPrice>

  • The estimated gas fee and limit.

getMinterInfo(params): Promise<MinterInfo>

Defined in: packages/cketh/src/minter.canister.ts:179

Returns internal minter parameters such as the minimal withdrawal amount, the last observed block number, etc.

QueryParams

The parameters to get the minter info.

Promise<MinterInfo>


getSmartContractAddress(params): Promise<string>

Defined in: packages/cketh/src/minter.canister.ts:48

The address of the helper smart contract may change in the future when the minter is upgraded. Please verify the address of the helper contract before any important transfer by querying the minter as follows.

QueryParams = {}

The parameters to resolve the ckETH smart contract address.

Promise<string>

Address of the helper smart contract.


retrieveEthStatus(blockIndex): Promise<RetrieveEthStatus>

Defined in: packages/cketh/src/minter.canister.ts:166

Retrieve the status of a withdrawal request.

bigint

Promise<RetrieveEthStatus>

The current status of an Ethereum transaction for a block index resulting from a withdrawal.


withdrawErc20(params): Promise<RetrieveErc20Request>

Defined in: packages/cketh/src/minter.canister.ts:110

Submits a request to convert ckErc20 to Erc20 - e.g. ckUSDC to USDC - after making ICRC-2 approvals for the ckETH and related ckErc20 ledgers.

Preconditions:

The caller allowed the minter’s principal to spend its funds using [icrc2_approve] on the ckErc20 ledger and to burn some of the user’s ckETH tokens to pay for the transaction fees on the CkETH ledger.

The parameters to withdrawal ckErc20 to Erc20.

string

The destination ETH address.

bigint

The ETH amount in wei.

Subaccount

Subaccount

The optional subaccount to burn ckETH from to pay for the transaction fee.

Principal

Promise<RetrieveErc20Request>

The successful result or the operation.


withdrawEth(params): Promise<RetrieveEthRequest>

Defined in: packages/cketh/src/minter.canister.ts:69

Submits a request to convert ckETH to ETH after making an ICRC-2 approval.

Preconditions:

The caller allowed the minter’s principal to spend its funds using [icrc2_approve] on the ckETH ledger.

The parameters to withdrawal ckETH to ETH.

string

The destination ETH address.

bigint

The ETH amount in wei.

Subaccount

The optional subaccount to burn ckETH from.

Promise<RetrieveEthRequest>

The successful result or the operation.


static create(options): CkETHMinterCanister

Defined in: packages/cketh/src/minter.canister.ts:30

CkETHMinterCanisterOptions<_SERVICE>

CkETHMinterCanister