Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RadixTransactionBuilder

Hierarchy

  • RadixTransactionBuilder

Index

Properties

Private BNZERO

BNZERO: BN = new BN(0)

Private DCZERO

DCZERO: Decimal = new Decimal(0)

Private participants

participants: TSMap<string, RadixAccount> = new TSMap()

Private particleGroups

particleGroups: RadixParticleGroup[] = []

Methods

addEncryptedMessage

addMessageParticle

addTransfer

  • addTransfer(from: RadixAccount, to: RadixAccount, tokenReference: string | RRI, decimalQuantity: number | string | Decimal, message?: string): this

addUnencryptedMessage

addUniqueParticle

  • addUniqueParticle(account: RadixAccount, unique: string): this

buildAtom

burnTokens

  • burnTokens(ownerAccount: RadixAccount, tokenReference: string | RRI, decimalQuantity: string | number | Decimal): this
  • Create an atom to burn a specified amount of tokens The token must be multi-issuance

    Parameters

    • ownerAccount: RadixAccount

      must be the owner and the holder of the tokens to be burned

    • tokenReference: string | RRI
    • decimalQuantity: string | number | Decimal

    Returns this

createToken

  • createToken(owner: RadixAccount, name: string, symbol: string, description: string, granularity: number | string | Decimal, decimalQuantity: number | string | Decimal, iconUrl: string, permissions: RadixTokenPermissions): this

createTokenMultiIssuance

  • createTokenMultiIssuance(owner: RadixAccount, name: string, symbol: string, description: string, granularity?: string | number | Decimal, amount: string | number | Decimal, iconUrl: string): this

createTokenSingleIssuance

  • createTokenSingleIssuance(owner: RadixAccount, name: string, symbol: string, description: string, granularity?: string | number | Decimal, amount: string | number | Decimal, iconUrl: string): this

Private getSubUnitsQuantity

  • getSubUnitsQuantity(decimalQuantity: Decimal.Value): BN

mintTokens

  • mintTokens(ownerAccount: RadixAccount, tokenReference: string | RRI, decimalQuantity: string | number | Decimal): this

signAndSubmit

Static createBurnAtom

Static createMintAtom

Static createPayloadAtom

Static createRadixMessageAtom

Static createTransferAtom

Static signAndSubmitAtom

Generated using TypeDoc