Skip to content

Latest commit

 

History

History
137 lines (72 loc) · 2.28 KB

File metadata and controls

137 lines (72 loc) · 2.28 KB

@cyberchain/smart-contract-wrapper


@cyberchain/smart-contract-wrapper / MethodTransactionOptions

Interface: MethodTransactionOptions

Defined in: src/types.ts:318

Options for sending a method transaction

Properties

chainId?

optional chainId: QuantityLike

Defined in: src/types.ts:334

Chain ID


complementaryAddress

complementaryAddress: string

Defined in: src/types.ts:329

Complementary address If signing with ECDSA, the ML-DSA address If signing with ML-DSA, the ECDSA address


gasLimit?

optional gasLimit: QuantityLike

Defined in: src/types.ts:360

Gas limit, by default it used the estimated gas


gasPrice?

optional gasPrice: QuantityLike

Defined in: src/types.ts:345

Gas price, by default it used the recommended gas price


isFeeMarket?

optional isFeeMarket: boolean

Defined in: src/types.ts:340

Fee market transaction? (to use fee instead of gas price) True by default


logFunction()?

optional logFunction: (msg) => void

Defined in: src/types.ts:378

Log Function to receive progress messages

Parameters

msg

string

Returns

void


maxFeePerGas?

optional maxFeePerGas: QuantityLike

Defined in: src/types.ts:355

The maximum total fee


maxPriorityFeePerGas?

optional maxPriorityFeePerGas: QuantityLike

Defined in: src/types.ts:350

The maximum inclusion fee per gas (this fee is given to the miner)


nonce?

optional nonce: QuantityLike

Defined in: src/types.ts:373

Transaction nonce. If not provided:

  • The transactions count is used.
  • In case of collision, the transaction will be retried with a new nonce.

receiptWaitTimeout?

optional receiptWaitTimeout: number

Defined in: src/types.ts:365

Timeout in milliseconds to wait for the transaction receipt. Set to 0 for no timeout. By default no timeout.


signKey

signKey: SignKey

Defined in: src/types.ts:322

Key to sign the transaction