Mjolnir is a script-friendly TRON developer CLI written in Rust. Its installed binary is mjol.
It follows the command-line style of Foundry's cast while using
tronz for TRON protocol, ABI, provider, signer, and contract
behavior.
Mjolnir 0.1.0 supports chain and account queries, ABI utilities, read-only contract calls,
transaction construction and broadcasting, TRC20 operations, Stake 2.0 resources, governance,
wallet utilities, and solidified receipt queries.
mjol 0.1.0
A script-friendly TRON developer command-line toolkit
USAGE:
mjol [OPTIONS] <COMMAND>
FLAGS:
--json Format the primary result as JSON
-h, --help Print help
-V, --version Print version
SUBCOMMANDS:
block-number Get the latest block number
block Get information about a block
tx Get information about a transaction
receipt Get a transaction receipt
account Get TRON account state
balance Get an account's TRX balance
client Get information about the connected node
chain Query chain-wide parameters, prices, maintenance, and peers
contract Query deployed smart-contract metadata
call Execute a read-only smart-contract call
estimate Estimate the energy consumed by a smart-contract call
logs Query and decode contract event logs
energy Query the energy market and an account's energy
bandwidth Query and estimate bandwidth
resource Query and manage staked resources and delegations
trc20 Query and transfer TRC20 tokens
transfer Sign and broadcast a native TRX transfer
vote Replace or clear an account's super-representative votes
withdraw-reward Claim accumulated block and vote rewards
governance Query representatives, proposals, votes, and rewards
multisig Inspect multisignature permissions and transaction approval state
publish Broadcast a complete signed protobuf transaction
mktx Construct and sign a contract transaction without broadcasting it
send Sign and broadcast a contract call, or deploy a contract
wallet Create keys and inspect signing credentials
completions Generate a shell completion script
address Convert and validate TRON addresses
keccak Hash arbitrary data with Keccak-256
sha256 Hash arbitrary data with SHA-256
txid Compute the ID of an encoded transaction
format-units Convert a sun amount to decimal TRX
parse-units Convert decimal TRX to sun
sig Compute the four-byte selector for a function signature
calldata ABI-encode a function selector and its arguments
abi-encode ABI-encode function arguments without the selector
decode-abi Decode ABI-encoded function input or output data
decode-event Decode event topics and data with an explicit event signature
help Print this message or the help of the given subcommand(s)
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE)
- MIT License (LICENSE-MIT)
at your option.