Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RadixAtom

Hierarchy

Index

Constructors

constructor

Properties

metaData

metaData: object

Type declaration

  • [s: string]: string

particleGroups

particleGroups: RadixParticleGroup[] = []

signatures

signatures: object

Type declaration

version

version: number = 100

Static METADATA_POW_NONCE_KEY

METADATA_POW_NONCE_KEY: string = "powNonce"

Static METADATA_TIMESTAMP_KEY

METADATA_TIMESTAMP_KEY: string = "timestamp"

Static SERIALIZER

SERIALIZER: string = ""

Accessors

serializer

  • get serializer(): string
  • set serializer(_: string): void

Methods

clearPowNonce

  • clearPowNonce(): void

containsParticle

  • containsParticle(...types: Array<object>): boolean

encodeCBOR

  • encodeCBOR(encoder: any): boolean

getAddresses

getAid

getAidString

  • getAidString(): string

getFirstParticleOfType

  • getFirstParticleOfType<T>(type: object): T

getHash

  • getHash(): Buffer

getParticleGroups

getParticles

getParticlesOfSpin

getParticlesOfType

  • getParticlesOfType<T>(type: object, spin?: RadixSpin): T[]

getShards

  • getShards(): Long[]

getSize

  • getSize(): number

getSpunParticlesOfType

getTimestamp

  • getTimestamp(): number

setPowNonce

  • setPowNonce(nonce: Long): void

setTimestamp

  • setTimestamp(timestamp: number): void

toDSON

  • toDSON(): Buffer

toJSON

  • toJSON(): object

Static fromJSON

  • fromJSON(json?: object): any

Generated using TypeDoc