Options
All
  • Public
  • Public/Protected
  • All
Menu

the bystr20 type class, it manages the formatting of the address to make sure that it always goes through in the on chain transactions

Hierarchy

  • ByStrSignable
    • ByStr20

Index

Constructors

constructor

Properties

Optional ADTname

ADTname?: string

Optional contractAddress

contractAddress?: ByStr20

type

type: string = "ByStr20"

value

value: string

Static zeroVal

zeroVal: string = "0x0000000000000000000000000000000000000000"

Methods

getType

  • getType(): string

lowerCase

  • lowerCase(): string
  • JSON RPC API requires lower case addresses for the indices of GetSmartContractSubState

    Returns string

noPrefixed

  • noPrefixed(): string
  • it returns the address without the 0x it is used for JSON RPC requests to the Zilliqa blockchain API when giving it address of the smart contract for instance to GetSmartContractState

    Returns string

setADTname

  • setADTname(ADTname: string): ByStr20

setContractAddress

toBech32

  • toBech32(): string

toHash

  • toHash(): string

toSend

  • toSend(): string

Static areEqual

Static fromPubKey

Static isValid

  • isValid(s: string): boolean

Static zeroByStr20

Generated using TypeDoc