Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Parcel

A unit that collects transactions and requests processing to the network. A parsel signer pays for CCC processing fees.

  • The fee must be at least 10. The higher the fee, the higher the priority for the parcel to be processed.
  • It contains the network ID. This must be identical to the network ID to which the parcel is being sent to.
  • Its nonce must be identical to the nonce of the account that will sign the parcel.
  • It contains the list of transactions to process. After signing the Parcel's size must not exceed 1 MB.
  • After signing with the sign() function, it can be sent to the network.

Hierarchy

  • Parcel

Index

Constructors

constructor

Properties

action

action: Action

fee

fee: U256 | null

networkId

networkId: NetworkId

nonce

nonce: U256 | null

Methods

hash

rlpBytes

  • rlpBytes(): Buffer

setFee

  • setFee(fee: U256 | string | number): void

setNonce

  • setNonce(nonce: U256 | string | number): void

sign

toEncodeObject

  • toEncodeObject(): any[]

toJSON

  • toJSON(): object
  • Returns object

    • action: object
      • action: string
    • fee: string
    • networkId: string
    • nonce: string

Static createShard

Static fromJSON

  • fromJSON(result: any): Parcel

Static payment

Static setRegularKey

Static transactions

Generated using TypeDoc