ITC Blockchain account-history

The itc blockchain account-history command retrieves the transaction history for a specified account in the Intelchain Blockchain. It provides concise, high-level details of each transaction, making it easier to track and analyze account activity.

Commmand Syntax

./itc blockchain account-history [flags]

Displays help information for the command

-h
--help

Specifies the maximum number of transactions to retrieve.

--max-tx
int

Options Inherited from Parent Commands

  • --file string -> Specifies a file path for input when the
  • -e, --ledger → Enables the use of a Ledger hardware wallet for transaction signing.
  • --no-latest → Prevents appending "latest" to RPC parameters, useful for specific blockchain states.
  • --no-pretty → Disables pretty-print formatting for JSON outputs, making them compact and machine readable.
  • -n, --node string → Specifies the host node for blockchain communication. Default: http://localhost:9500
  • -r, --rpc-prefix string → Sets the RPC prefix for commands interacting with the blockchain. Default: itc
  • -v, --verbose → Outputs detailed debug information, equivalent to setting the ITC_ALL_DEBUG = true environment variable.

Examples

  • Retrieve the last 500 transactions for an account
  • Use this command to list a specific number of transactions:*
./itc blockchain account-history --max-tx 500

Use a remote blockchain node

Fetch transaction history while connecting to a custom node:

./itc blockchain account-history -n http://remote-node:9500

Use a Ledger hardware wallet

Access account history while using a Ledger hardware wallet:

./itc blockchain account-history --ledger

Disable pretty-print for JSON outputs

Compact the JSON output to make it easier for programmatic parsing :

./itc blockchain account-history --no-pretty