java.lang.Object
com.hedera.hashgraph.sdk.Transfer
A transfer of Hbar that occurred within a transaction.
Returned with a TransactionRecord.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static TransferfromProtobuf(AccountAmount accountAmount) Create a transfer from a protobuf.(package private) AccountAmountCreate the protobuf.toString()
-
Field Details
-
accountId
The Account ID that sends or receives crypto-currency. -
amount
The amount that the account sends (negative) or receives (positive).
-
-
Constructor Details
-
Transfer
-
-
Method Details
-
fromProtobuf
Create a transfer from a protobuf.- Parameters:
accountAmount- the protobuf- Returns:
- the new transfer
-
toProtobuf
AccountAmount toProtobuf()Create the protobuf.- Returns:
- the protobuf representation
-
toString
-