Interface TokenBalanceOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
All Known Implementing Classes:
TokenBalance, TokenBalance.Builder

@Generated public interface TokenBalanceOrBuilder extends com.google.protobuf.MessageLiteOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    * A number of transferable units of the identified token.
    int
    * A number of "decimals" precision.
    * A token identifier.
    boolean
    * A token identifier.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • hasTokenId

      boolean hasTokenId()
       *
       A token identifier.
       
      .proto.TokenID tokenId = 1;
      Returns:
      Whether the tokenId field is set.
    • getTokenId

      TokenID getTokenId()
       *
       A token identifier.
       
      .proto.TokenID tokenId = 1;
      Returns:
      The tokenId.
    • getBalance

      long getBalance()
       *
       A number of transferable units of the identified token.
       <p>
       For fungible/common tokens this SHALL be the balance, in units of
       10<sup>`-decimals`</sup> whole tokens.<br/>
       For non-fungible/unique tokens, this SHALL be the number of
       individual unique tokens in this balance.
       
      uint64 balance = 2;
      Returns:
      The balance.
    • getDecimals

      int getDecimals()
       *
       A number of "decimals" precision.
       <p>
       This MUST match the `decimals` value for the token identified by the
       `tokenId` field.
       
      uint32 decimals = 3;
      Returns:
      The decimals.