Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Interface AccountAmountOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
AccountAmount,AccountAmount.Builder
@Generated
public interface AccountAmountOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescription* An account identifier that will send or receive token(s).long* An amount to send (negative) or receive (positive).boolean* An approved allowance flag.<br/> If true then the transfer is expected to be an approved allowance.* Two calls, the first call before attempting the CryptoTransfer, to a method with logical signature allowPre(HookContext, ProposedTransfers); and the second call after attempting the CryptoTransfer, to a method with logical signature allowPost(HookContext, ProposedTransfers).* A single call made before attempting the CryptoTransfer, to a method with logical signature allow(HookContext, ProposedTransfers)boolean* An account identifier that will send or receive token(s).boolean* Two calls, the first call before attempting the CryptoTransfer, to a method with logical signature allowPre(HookContext, ProposedTransfers); and the second call after attempting the CryptoTransfer, to a method with logical signature allowPost(HookContext, ProposedTransfers).boolean* A single call made before attempting the CryptoTransfer, to a method with logical signature allow(HookContext, ProposedTransfers)Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasAccountID
boolean hasAccountID()* An account identifier that will send or receive token(s).
.proto.AccountID accountID = 1;- Returns:
- Whether the accountID field is set.
-
getAccountID
AccountID getAccountID()* An account identifier that will send or receive token(s).
.proto.AccountID accountID = 1;- Returns:
- The accountID.
-
getAmount
long getAmount()* An amount to send (negative) or receive (positive). <p> This amount MUST be denominated in the smallest unit of the relevant token.<br/> For HBAR this SHALL be tinybar (10<sup>-8</sup> HBAR).<br/> For other fungible/common tokens this SHALL depend on the value of `decimals` for that token.
sint64 amount = 2;- Returns:
- The amount.
-
getIsApproval
boolean getIsApproval()* An approved allowance flag.<br/> If true then the transfer is expected to be an approved allowance. <p> If set, `accountID` SHALL be the owner that previously approved the allowance.<br/> The default value SHALL be false (unset).
bool is_approval = 3;- Returns:
- The isApproval.
-
hasPreTxAllowanceHook
boolean hasPreTxAllowanceHook()* A single call made before attempting the CryptoTransfer, to a method with logical signature allow(HookContext, ProposedTransfers)
.proto.HookCall pre_tx_allowance_hook = 4;- Returns:
- Whether the preTxAllowanceHook field is set.
-
getPreTxAllowanceHook
HookCall getPreTxAllowanceHook()* A single call made before attempting the CryptoTransfer, to a method with logical signature allow(HookContext, ProposedTransfers)
.proto.HookCall pre_tx_allowance_hook = 4;- Returns:
- The preTxAllowanceHook.
-
hasPrePostTxAllowanceHook
boolean hasPrePostTxAllowanceHook()* Two calls, the first call before attempting the CryptoTransfer, to a method with logical signature allowPre(HookContext, ProposedTransfers); and the second call after attempting the CryptoTransfer, to a method with logical signature allowPost(HookContext, ProposedTransfers).
.proto.HookCall pre_post_tx_allowance_hook = 5;- Returns:
- Whether the prePostTxAllowanceHook field is set.
-
getPrePostTxAllowanceHook
HookCall getPrePostTxAllowanceHook()* Two calls, the first call before attempting the CryptoTransfer, to a method with logical signature allowPre(HookContext, ProposedTransfers); and the second call after attempting the CryptoTransfer, to a method with logical signature allowPost(HookContext, ProposedTransfers).
.proto.HookCall pre_post_tx_allowance_hook = 5;- Returns:
- The prePostTxAllowanceHook.
-
getHookCallCase
AccountAmount.HookCallCase getHookCallCase()
-