Skip to content

Transfer example updates compared to JS example #9

@SimiHunjan

Description

@SimiHunjan

Java:

gitpod /workspace/hello-future-world-java/transfer (develop) $ gradle run
Picked up JAVA_TOOL_OPTIONS: -XX:+UseContainerSupport -XX:ActiveProcessorCount=1

Task :run
Picked up JAVA_TOOL_OPTIONS: -XX:+UseContainerSupport -XX:ActiveProcessorCount=1
🏁 Hello Future World - Transfer HBAR - start
Using account: 0.0.1455
🟣 Creating, signing, and submitting the transfer transaction
The transfer transaction ID: 0.0.1455@1728087976.762000000
The transfer transaction status is: SUCCESS
The new account balance after the transfer: 8708.24591808 ℏ
🟣 View the transfer transaction transaction in HashScan
Transaction Hashscan URL:
https://hashscan.io/testnet/transaction/0.0.1455@1728087976.762000000
🟣 Get transfer transaction data from the Hedera Mirror Node
AccountID Amount


0.0.1455 -3.00193653
0.0.200 1
0.0.201 2
🎉 Hello Future World - Transfer HBAR - complete

JS:

🏁 Hello Future World - Transfer Hbar - start …
Read .env file
Using account: 0.0.1455

🟣 Creating, signing, and submitting the transfer transaction …
↪️ file:///workspace/hello-future-world-js/transfer/script-transfer-hbar.js:53:16
The transfer transaction ID: 0.0.1455@1728087878.253175759
The transfer transaction status is: SUCCESS
The new account balance after the transfer: 3658.62299628 ℏ

🟣 View the transfer transaction transaction in HashScan …
↪️ file:///workspace/hello-future-world-js/transfer/script-transfer-hbar.js:100:16
Copy and paste this URL in your browser:
https://hashscan.io/testnet/transaction/0.0.1455@1728087878.253175759

🟣 Get transfer transaction data from the Hedera Mirror Node …
↪️ file:///workspace/hello-future-world-js/transfer/script-transfer-hbar.js:109:16
The transfer transaction Hedera Mirror Node API URL:
https://testnet.mirrornode.hedera.com/api/v1/transactions/0.0.1455-1728087878-253175759?nonce=0
The debit, credit, and transaction fee amounts of the transfer transaction:
┌─────────┬────────────┬─────────────────┐
│ (index) │ Account ID │ Amount │
├─────────┼────────────┼─────────────────┤
│ 0 │ '0.0.1455' │ '-3.00194166 ℏ' │
│ 1 │ '0.0.200' │ '1 ℏ' │
│ 2 │ '0.0.201' │ '2 ℏ' │
└─────────┴────────────┴─────────────────┘

🎉 Hello Future World - Transfer Hbar - complete …

🔢 Summary metrics …

Has completed a task: true
First task completed ID: hcsTopic
Time to first task completion: 1min 20.0s
Time to all tasks completion: 27min 51.6s
Total number of task completions: 3

Completed tasks: 3
(1) Task ID: hcsTopic
Time taken to complete (first): 20.4s
Time taken to complete (latest): 20.4s
Errors prior to completion: 0
(2) Task ID: htsFt
Time taken to complete (first): 1min 8.3s
Time taken to complete (latest): 1min 8.3s
Errors prior to completion: 0
(3) Task ID: transferHbar (latest)
Time taken to complete (first): 10.9s
Time taken to complete (latest): 10.9s
Errors prior to completion: 0

Attempted but incomplete tasks: 0

View HCS metrics on HashScan:
https://hashscan.io/testnet/topic/0.0.4573319
Using the anonymised key: 56ad57bf7baaaf5ec88bba0a64b78c44

Missing:

  • Purple circle in front of step 2: View the token on HashScan
  • "..." after each step
  • metrics
  • user entering after each step

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions