Class AccountId

  • All Implemented Interfaces:
    Codec
    Direct Known Subclasses:
    AccountId.AccountIdOf, AuthorityId

    public class AccountId
    extends U8aFixed
    A wrapper around an AccountId/PublicKey representation. Since we are dealing with underlying PublicKeys (32 bytes in length), we extend from U8aFixed which is just a Uint8Array wrapper with a fixed length.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  AccountId.AccountIdOf
      The Substrate AccountIdOf representation as a AccountId.
    • Field Summary

      • Fields inherited from class org.polkadot.types.codec.U8a

        raw
    • Constructor Summary

      Constructors 
      Constructor Description
      AccountId​(java.lang.Object value)  
    • Method Summary

      Modifier and Type Method Description
      boolean eq​(java.lang.Object other)
      Compares the value of the input to see if there is a match
      java.lang.Object toJson()
      Converts the Object to JSON, typically used for RPC transfers
      java.lang.String toString()
      Returns the string representation of the value
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.polkadot.types.Codec

        toU8a
    • Constructor Detail

      • AccountId

        public AccountId​(java.lang.Object value)
    • Method Detail

      • eq

        public boolean eq​(java.lang.Object other)
        Compares the value of the input to see if there is a match
        Specified by:
        eq in interface Codec
        Overrides:
        eq in class U8a
      • toJson

        public java.lang.Object toJson()
        Converts the Object to JSON, typically used for RPC transfers
        Specified by:
        toJson in interface Codec
        Overrides:
        toJson in class U8a
      • toString

        public java.lang.String toString()
        Returns the string representation of the value
        Overrides:
        toString in class U8a