Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SignedTransaction

A Transaction signed by a private key. It is possible to request the CodeChain network to process this tx with the sendSignedTransaction function.

Transactions signed with a regular key has the same effect as those signed with the original key. The original key is the key of the account that registered the regular key.

If any of the following is true, the Transaction will not be processed:

  • The Transaction's processing fee is less than 10.
  • A network ID is not identical.
  • A seq is not identical to the signer's seq.

Hierarchy

  • SignedTransaction

Index

Constructors

constructor

  • new SignedTransaction(unsigned: Transaction, signature: string, blockNumber?: undefined | number, blockHash?: H256, transactionIndex?: undefined | number): SignedTransaction
  • Parameters

    • unsigned: Transaction

      A Transaction.

    • signature: string

      An ECDSA signature which is a 65 byte hexadecimal string.

    • Optional blockNumber: undefined | number

      The block number of the block that contains the tx.

    • Optional blockHash: H256

      The hash of the block that contains the tx.

    • Optional transactionIndex: undefined | number

      The index(location) of the tx within the block.

    Returns SignedTransaction

Properties

blockHash

blockHash: H256 | null

blockNumber

blockNumber: number | null

transactionIndex

transactionIndex: number | null

unsigned

unsigned: Transaction

Methods

getAsset

getSignerAccountId

  • getSignerAccountId(): H160

getSignerAddress

  • getSignerAddress(params: object): PlatformAddress

getSignerPublic

  • getSignerPublic(): H512

hash

  • hash(): H256

rlpBytes

  • rlpBytes(): Buffer

signature

  • signature(): string

toEncodeObject

  • toEncodeObject(): any[]

toJSON

Generated using TypeDoc