Values.TransactionSourceThere 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.
type nonrec t = {network : QueryNetwork.t option;The blockchain network where the transaction occurred.
*)blockHash : BlockHash.t option;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.
*)transactionHash : QueryTransactionHash.t option;The hash of a transaction. It is generated when a transaction is created.
*)blockNumber : String_.t option;The block number in which the transaction is recorded.
*)transactionTimestamp : Timestamp.t option;The Timestamp of the transaction.
*)transactionIndex : Long.t option;The index of the transaction within a blockchain.
*)numberOfTransactions : Long.t option;The number of transactions in the block.
*)to_ : ChainAddress.t option;The identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
*)from : ChainAddress.t option;The initiator of the transaction. It is either in the form a public key or a contract address.
*)contractAddress : ChainAddress.t option;The blockchain address for the contract.
*)gasUsed : String_.t option;The amount of gas used for the transaction.
*)cumulativeGasUsed : String_.t option;The amount of gas used up to the specified point in the block.
*)effectiveGasPrice : String_.t option;The effective gas price.
*)signatureV : Integer.t option;The signature of the transaction. The Z coordinate of a point V.
*)signatureR : String_.t option;The signature of the transaction. The X coordinate of a point R.
*)signatureS : String_.t option;The signature of the transaction. The Y coordinate of a point S.
*)transactionFee : String_.t option;The transaction fee.
*)transactionId : String_.t option;The identifier of a Bitcoin transaction. It is generated when a transaction is created.
*)confirmationStatus : ConfirmationStatus.t option;Specifies whether the transaction has reached Finality.
*)executionStatus : ExecutionStatus.t option;Identifies whether the transaction has succeeded or failed.
*)}val make :
?network:??? ->
?blockHash:??? ->
?transactionHash:??? ->
?blockNumber:??? ->
?transactionTimestamp:??? ->
?transactionIndex:??? ->
?numberOfTransactions:??? ->
?to_:??? ->
?from:??? ->
?contractAddress:??? ->
?gasUsed:??? ->
?cumulativeGasUsed:??? ->
?effectiveGasPrice:??? ->
?signatureV:??? ->
?signatureR:??? ->
?signatureS:??? ->
?transactionFee:??? ->
?transactionId:??? ->
?confirmationStatus:??? ->
?executionStatus:??? ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Enum of string
| `Integer of Integer.t
| `Long of Long.t
| `String of BlockHash.t
| `Timestamp of Timestamp.t ])
list ]