Transaction

There are two possible types of transactions used for this data type:

  • A Bitcoin transaction is a movement of BTC from one address to another.

  • An Ethereum transaction refers to an action initiated by an externally owned account, which is an account managed by a human, not a contract. For example, if Bob sends Alice 1 ETH, Bob's account must be debited and Alice's must be credited. This state-changing action occurs within a transaction.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The block hash is a unique identifier for a block. It is a fixed-size string that is calculated by using the information in the block. The block hash is used to verify the integrity of the data in the block.

Link copied to clipboard

The block number in which the transaction is recorded.

Link copied to clipboard

Specifies whether the transaction has reached Finality.

Link copied to clipboard

The blockchain address for the contract.

Link copied to clipboard

The amount of gas used up to the specified point in the block.

Link copied to clipboard

The effective gas price.

Link copied to clipboard

Identifies whether the transaction has succeeded or failed.

Link copied to clipboard
val from: String?

The initiator of the transaction. It is either in the form a public key or a contract address.

Link copied to clipboard

The amount of gas used for the transaction.

Link copied to clipboard

The blockchain network where the transaction occurred.

Link copied to clipboard

The number of transactions in the block.

Link copied to clipboard

The signature of the transaction. The X coordinate of a point R.

Link copied to clipboard

The signature of the transaction. The Y coordinate of a point S.

Link copied to clipboard

The signature of the transaction. The Z coordinate of a point V.

Link copied to clipboard
val to: String

The identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.

Link copied to clipboard

The transaction fee.

Link copied to clipboard

The hash of a transaction. It is generated when a transaction is created.

Link copied to clipboard

The identifier of a Bitcoin transaction. It is generated when a transaction is created.

Link copied to clipboard

The index of the transaction within a blockchain.

Link copied to clipboard

The Timestamp of the transaction.

Functions

Link copied to clipboard
inline fun copy(block: Transaction.Builder.() -> Unit = {}): Transaction
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String