Skip to content

Commit

Permalink
--call to --calldata
Browse files Browse the repository at this point in the history
  • Loading branch information
tjayrush committed Dec 14, 2024
1 parent 1aa6343 commit 39c8543
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion content/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2123,7 +2123,7 @@ paths:
explode: true
schema:
type: boolean
- name: call
- name: calldata
description: write-only call to a smart contract with one or more solidity calls, four-byte plus parameters, or encoded call data strings
required: false
style: form
Expand Down
12 changes: 7 additions & 5 deletions content/chifra/chainstate.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ Flags:
One or more of [ balance | nonce | code | proxy | deployed | accttype | some | all ]
-c, --changes only report a balance when it changes from one block to the next
-z, --no_zero suppress the display of zero balance accounts
-l, --call string write-only call to a smart contract with one or more solidity calls, four-byte plus parameters, or encoded call data strings
-s, --send string send a transaction to a smart contract using a solidity function, a four-byte plus parameters, or an encoded call data string
-a, --articulate for the --call option only, articulate the retrieved data if ABIs can be found
-r, --proxy_for string for the --call option only, redirects calls to this implementation
-l, --call write-only call (a query) to a smart contract
-d, --calldata string for commands (--call or --send), provides the call data (in various forms) for the command (may be empty for --send)
-a, --articulate for commands only, articulate the retrieved data if ABIs can be found
-r, --proxy_for string for commands only, redirects calls to this implementation
-H, --ether specify value in ether
-o, --cache force the results of the query into the cache
-D, --decache removes related items from the cache
Expand All @@ -72,11 +72,13 @@ Notes:
- If the queried node does not store historical state, the results are undefined.
- Special blocks are detailed under chifra when --list.
- Balance is the default mode. To select a single mode use none first, followed by that mode.
- Valid parameters for --call include Solidity-like syntax: balanceOf(0x316b...183d), a four-byte followed by parameters: 0x70a08231(0x316b...183d), or encoded input data.
- Valid parameters for --calldata include Solidity-like syntax: balanceOf(0x316b...), a four-byte followed by parameters: 0x70a08231(0x316b...), or encoded input data.
- You may specify multiple parts on a single line.
- In the --call string, you may separate multiple calls with a colon.
- Your use of the unaudited --send option legally absolves, in any jurisdiction, TrueBlocks, LLC or any associated parties from liability or loss related to such use.
- The --send option does not validate its input before sending your transaction to the network. If you provide invalid data, you may lose your funds. Be warned.
- As of version 4.0.0, use --call --calldata <cmd> to provide your command.
- --calldata may be one or more solidity calls, four-byte plus parameters, or encoded call data strings.
```

Data models produced by this tool:
Expand Down

0 comments on commit 39c8543

Please sign in to comment.