Sends a transaction to a contract method that modifies the state
Usage
$ genlayer write [options] <contractAddress> <method>
Arguments
<contractAddress><method>
Options
| Short | Long | Description | Required | Default |
|---|---|---|---|---|
| --rpc <rpcUrl> RPC URL for the network | No | |||
| --args <args...> Contract arguments. Supported types: | No | |||
| bool: true, false | No | |||
| null: null | No | |||
| int: 42, -1, 0x1a (large values auto-use BigInt) | No | |||
| str: hello, "multi word" | No | |||
| address: 0x6857...a0 (40 hex chars) or addr#6857...a0 | No | |||
| bytes: b#deadbeef | No | |||
| array: '[1, 2, "three"]' | No | |||
| dict: '{"key": "value"}' (default: []) | No | |||
| -h | --help | display help for command | No |