Sends a transaction to a contract method that modifies the state

Usage

$ genlayer write [options] <contractAddress> <method>

Arguments

  • <contractAddress>
  • <method>

Options

ShortLongDescriptionRequiredDefault
--rpc <rpcUrl> RPC URL for the networkNo
--args <args...> Contract arguments. Supported types:No
bool: true, falseNo
null: nullNo
int: 42, -1, 0x1a (large values auto-use BigInt)No
str: hello, "multi word"No
address: 0x6857...a0 (40 hex chars) or addr#6857...a0No
bytes: b#deadbeefNo
array: '[1, 2, "three"]'No
dict: '{"key": "value"}' (default: [])No
-h--helpdisplay help for commandNo