Skip to Content

@cfxdevkit/core


@cfxdevkit/core / WriteOptions

Interface: WriteOptions

Defined in: packages/core/src/contracts/types/index.ts:76

Properties

abi

abi: unknown[]

Defined in: packages/core/src/contracts/types/index.ts:80

Contract ABI


address

address: string

Defined in: packages/core/src/contracts/types/index.ts:78

Contract address


args?

optional args: unknown[]

Defined in: packages/core/src/contracts/types/index.ts:84

Function arguments


chain

chain: ChainType

Defined in: packages/core/src/contracts/types/index.ts:86

Chain to write to


functionName

functionName: string

Defined in: packages/core/src/contracts/types/index.ts:82

Function name to call


gasLimit?

optional gasLimit: bigint

Defined in: packages/core/src/contracts/types/index.ts:90

Gas limit


gasPrice?

optional gasPrice: bigint

Defined in: packages/core/src/contracts/types/index.ts:92

Gas price (in wei)


value?

optional value: bigint

Defined in: packages/core/src/contracts/types/index.ts:88

Value to send (in wei)


waitForConfirmation?

optional waitForConfirmation: boolean

Defined in: packages/core/src/contracts/types/index.ts:94

Wait for transaction confirmation