Skip to main content

Function: writeContract()

function writeContract<abi, functionName, args>(__namedParameters): Promise<Hex>

Type Parameters

Type Parameter

abi extends any

functionName extends ExtractAbiFunctionNames<abi extends Abi ? abi : Abi, mutability>

args extends AbiParametersToPrimitiveTypes<ExtractAbiFunction<abi extends Abi ? abi : Abi, functionName, mutability>, "inputs">

Parameters

ParameterType

__namedParameters

object

__namedParameters.abi

abi

__namedParameters.args

args

__namedParameters.functionName

functionName

__namedParameters.options

Partial<Pick<XOR<SendDataMessageParams, SendAbiMessageParams>, | "to" | "seqno" | "feeCredit" | "tokens" | "value">>

__namedParameters.wallet

WalletInterface

Returns

Promise<Hex>

Defined

@nilfoundation/niljs/src/contract-factory/contractInteraction.ts:51