updates the util.js file with code to remove the prompt lines after input using ANSI escape code
adds a newline after each console log section in script-transfer-hbar.js
the output of the updated code in this PR:
🟣 Creating, signing, and submitting the transfer transaction …
The transfer transaction ID: 0.0.1@1722480248.302344195
The transfer transaction status is: SUCCESS
The new account balance after the transfer: 346.74689935 ℏ
🟣 View the transfer transaction transaction in HashScan …
Copy and paste this URL in your browser:
https://hashscan.io/testnet/transaction/0.0.1@1722480248.302344195
🟣 Get transfer transaction data from the Hedera Mirror Node …
The transfer transaction Hedera Mirror Node API URL:
https://testnet.mirrornode.hedera.com/api/v1/transactions/0.0.1-1722480248-302344195?nonce=0
The debit and credit amounts of the transfer transaction:
[
'10 ℏ',
'0.00006457 ℏ',
'0.00137583 ℏ',
'0.00015286 ℏ',
'-10.00159326 ℏ'
]
util.js
file with code to remove the prompt lines after input using ANSI escape codescript-transfer-hbar.js
the output of the updated code in this PR: