Type alias SafeContractWriteOptions

SafeContractWriteOptions: {
    value?: bigint;
    dataSuffix?: Hex;
}

Options of a safeContractWrite call. dataSuffix is appended verbatim after the ABI-encoded arguments, both in the simulation and in the broadcast transaction (viem's writeContract forwards it to sendTransaction, which concatenates it onto data); Solidity's decoder ignores trailing bytes, so a suffix never changes what the contract executes.

Type declaration

  • Optional value?: bigint
  • Optional dataSuffix?: Hex