ITC Blockchain Documentation

The itc blockchain command enables users to interact with the Intelchain blockchain. This command offers a range of subcommands for querying transaction details, retrieving historical records, and accessing blockchain metrics.

Synopsis

Interact with the Intelchain blockchain to query completed transactions and historical records.

./itc blockchain [flags]

Display help information for the blockchain command

-h, --help 

Options inherited from Parent Commands

Specify the file path for the command if applicable

 --file string 

Use a Ledger hardware wallet

-e 
--ledger 

Do not include the 'latest' parameter in RPC calls

--no-latest 

Display pretty-printed JSON outputs

--no-pretty

Specify the host (default: https://localhost:9500)

-n
--node string

Specify the RPC prefix (default: itc)

-r
--rpc-prefix

Enable verbose output (equivalent to setting ITC_ALL_DEBUG=true)

-v
--verbose

Subcommands for ITC

Retrieve the history of all transactions for a specific account.

./itc blockchain account-history

Get a blockchain block by its block number

./itc blockchain block-by-number

Retrieve the current nonce for a specific account.

./itc blockchain current-nonce

Get information about delegations on the blockchain.

./itc blockchain delegation
./itc blockchain known-chains

Retrieve the latest block header.

./itc blockchain latest-header

Fetch the latest chain headers.

./itc blockchain latest-headers

Retrieve the median stake of the top 320 validators with delegations applied.####

./itc blockchain median-stake

Dump the transaction pool of a node.

./itc blockchain pool

Get the version of the Intelchain protocol.

./itc blockchain protocol-version

Replay a cross-shard transaction

./itc blockchain resend-cx

Retrieve transaction details using its hash.

./itc blockchain transaction-by-hash

Get information about a finalized transaction.

./itc blockchain transaction-receipt

Retrieve the current utility metrics of the blockchain.

./itc blockchain utility-metrics

Retrieve information about validators.

./itc blockchain validator

Examples Use Case

Fetch transaction by hash

./itc blockchain transaction-by-hash --hash `\<`transaction-hash`\>`

View the latest block header

./itc blockchain latest-header