Get account info
Request the account info from a Hedera network. A .info file will be returned. It can be placed in the InputFiles folder for the demo application to read.
Command
get-account-info
gi
Argument
Description
Required/Optional
-a
The account to get the info for. Either the entity ID (0.0.100) or account number (100) can be used. You can specify more than 1 account info at a time. Ranges are not accepted.
Required
-k
The path to the location of the key (.pem) to the account that will pay for the transaction fee.
Required
-n
The network to submit the query to. (PREVIEWNET, TESTNET, MAINNET).
Default: MAINNET
Optional
-o
The path to the directory the account info file (.info) should be stored.
Optional
-p
The account ID of the account paying for the transaction fee
Required
bash launch.sh get-account-info
Example:
bash launch.sh gi -a <accountNumberForInfo> -k </path/to/key/key.pem> -o </path/to/store/accountInfo> -p <payer account ID> -n <network>
Last updated
Was this helpful?