Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 2.54 KB

README.md

File metadata and controls

49 lines (35 loc) · 2.54 KB

getLogs

getLogs returns a transaction's logs. You may specify the logs you want using either a transaction hash (trans_hash), a block hash plus transaction index (block_hash.trans_id), or a block number plus transaction index (block_num.trans_id).

Usage

Usage: getLogs [-a|-v|-h] <tx_id> [tx_id...]
Purpose: Retrieve a transaction's logs from the local cache or a running node.

Where:

Short Cut Option Description
trans_list a space-separated list of one or more transaction identifiers (tx_hash, bn.txID, blk_hash.txID) (required)
-a --articulate articulate the transactions if an ABI is found for the 'to' address
-v --verbose set verbose level. Either -v, --verbose or -v:n where 'n' is level
-h --help display this help screen

Notes:

  • trans_list is one or more space-separated identifiers which may be either a transaction hash, a blockNumber.transactionID pair, or a blockHash.transactionID pair, or any combination.
  • This tool checks for valid input syntax, but does not check that the transaction requested exists.
  • This tool retrieves information from the local node or rpcProvider if configured (see documentation).
  • If the queried node does not store historical state, the results may be undefined.

Other Options

All QBlocks command-line tools support the following commands (although in some case, they have no meaning):

Command     |     Description
-----------------------------------------------------------------------------
--version   |   display the current version of the tool
--nocolor   |   turn off colored display
--wei       |   specify value in wei (the default)
--ether     |   specify value in ether
--dollars   |   specify value in US dollars
--raw       |   report JSON data from the node with minimal processing
--veryRaw   |   report JSON data from node with zero processing
--fmt       |   export format (where appropriate). One of [none|txt|csv|json|api]
--to_file   |   write the results to a temporary file and return the filename
--output:fn |   write the results to file 'fn' and return the filename
--file:fn   |   specify multiple sets of command line options in a file.

For the --file:fn option, place a series of valid command lines in a file and use the above options. In some cases, this option may significantly improve performance. A semi-colon at the start of a line makes that line a comment.

Powered by Qblocks