Skip to content

Latest commit

 

History

History
142 lines (74 loc) · 2.96 KB

TransactionReceipt.md

File metadata and controls

142 lines (74 loc) · 2.96 KB

class TransactionReceipt

The summary of a transaction's result so far. If the transaction has not reached consensus, this result will be necessarily incomplete.

Static Methods

fromBytes ( data: bytes ): TransactionReceipt

Decode a TransactionReceipt from an appropriate protobuf encode structure


Methods

toBytes (): bytes

The byte representation of the encoded protobuf type


toString (): String

Stringification of all the current values


Fields

accountId: AccountId?

An account ID

Note: Only present if this receipt is for an AccountCreateTransaction


The receipts (if any) of all child transactions spawned by the transaction with the given top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.


contractId: ContractId?

A contract ID

Note: Only present if this receipt is for an ContractCreateTransaction


duplicates: List < TransactionReceipt >

The receipts of processing all transactions with the given id, in consensus time order.


exchangeRate: ExchangeRate

Current exchange rant for Hbar to USD


fileId: FileId?

A file ID

Note: Only present if this receipt is for an FileCreateTransaction


scheduleId: ScheduleId

In the receipt of a ScheduleCreate, the id of the newly created Scheduled Entity


scheduleTransactionId: TransactionId

In the receipt of a ScheduleCreate or ScheduleSign that resolves to SUCCESS, the TransactionID that should be used to query for the receipt or record of the relevant scheduled transaction


serials: List < Int64 >

In the receipt of a TokenMint for tokens of type NON_FUNGIBLE_UNIQUE, the serial numbers of the newly created NFTs


status: Status

Status of the submitted transaction.


tokenId: TokenId?

A token ID

Note: Only present if this receipt is for an TokenCreateTransaction


topicId: TopicId?

A topic ID

Note: Only present if this receipt is for an TopicCreateTransaction


topicRunningHash: bytes

The current running hash of the topic

Note: Only present if this receipt is for an TopicMessageSubmitTransaction


topicSequenceNumber: Uint64

The current sequence number of the topic

Note: Only present if this receipt is for an TopicMessageSubmitTransaction


totalSupply: Uint64

The total supply of tokens for the current token

Note: Only present if this receipt is for an TopicMessageSubmitTransaction


transactionId: TransactionId?

The transaction's ID