gamma-cli send-tx
and giving a JSON file containing the call arguments.gamma-cli run-query
and giving a similar JSON file.<INPUT_FILE>
Path of the JSON file containing the call arguments-signer
Account ID of the signer of the call (from orbs-test-keys.json
)-arg#
Override the value of argument number # from the input call argument JSONgamma-cli deploy
. The method name should be one of the exported methods found in the contract source code.uint32
- Integer with 32 bit precision. Matches the uint32
type in Go contracts. Provided in the JSON as a string of a decimal number. For exampleuint64
- Integer with 64 bit precision. Matches the uint64
type in Go contracts. Provided in the JSON as a string of a decimal number. For examplestring
- String. Matches the string
type in Go contracts. Provided in the JSON as a UTF8 string. For examplebytes
- An array of bytes (blob). Matches the []byte
type in Go contracts. Provided in the JSON as a hex string. For examplebool
- boolean value. Matches the bool
type in Go contracts. Provided in the JSON as a string with value "0"
or "1"
. For exampleuint256
- Integer with 256 bit precision. Matches the *big.Int
type in Go contracts. Provided in the JSON as a hex string with fixed size of 64 hexes. For examplebytes20
- A fixed size array of 20 bytes. Matches the [20]byte
type in Go contracts. Provided in the JSON as a hex string with fixed size of 40 hexes. For examplebytes32
- A fixed size array of 32 bytes. Matches the [32]byte
type in Go contracts. Provided in the JSON as a hex string with fixed size of 64 hexes. For examplegamma:keys-file-address
- An account address by ID. The value should be an account ID from orbs-test-keys.json
. An alias for the type bytes
which means it matches the []byte
type in Go contracts. Used to pass the account address in raw form.-arg1
and -arg2
command line arguments to override values[]bool{false, true, true}