Module Values.TransactionSource

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.

Sourcetype nonrec t = {
  1. network : QueryNetwork.t option;
    (*

    The blockchain network where the transaction occurred.

    *)
  2. 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.

    *)
  3. transactionHash : QueryTransactionHash.t option;
    (*

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

    *)
  4. blockNumber : String_.t option;
    (*

    The block number in which the transaction is recorded.

    *)
  5. transactionTimestamp : Timestamp.t option;
    (*

    The Timestamp of the transaction.

    *)
  6. transactionIndex : Long.t option;
    (*

    The index of the transaction within a blockchain.

    *)
  7. numberOfTransactions : Long.t option;
    (*

    The number of transactions in the block.

    *)
  8. to_ : ChainAddress.t option;
    (*

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

    *)
  9. from : ChainAddress.t option;
    (*

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

    *)
  10. contractAddress : ChainAddress.t option;
    (*

    The blockchain address for the contract.

    *)
  11. gasUsed : String_.t option;
    (*

    The amount of gas used for the transaction.

    *)
  12. cumulativeGasUsed : String_.t option;
    (*

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

    *)
  13. effectiveGasPrice : String_.t option;
    (*

    The effective gas price.

    *)
  14. signatureV : Integer.t option;
    (*

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

    *)
  15. signatureR : String_.t option;
    (*

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

    *)
  16. signatureS : String_.t option;
    (*

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

    *)
  17. transactionFee : String_.t option;
    (*

    The transaction fee.

    *)
  18. transactionId : String_.t option;
    (*

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

    *)
  19. confirmationStatus : ConfirmationStatus.t option;
    (*

    Specifies whether the transaction has reached Finality.

    *)
  20. executionStatus : ExecutionStatus.t option;
    (*

    Identifies whether the transaction has succeeded or failed.

    *)
}
Sourceval make : ?network:??? -> ?blockHash:??? -> ?transactionHash:??? -> ?blockNumber:??? -> ?transactionTimestamp:??? -> ?transactionIndex:??? -> ?numberOfTransactions:??? -> ?to_:??? -> ?from:??? -> ?contractAddress:??? -> ?gasUsed:??? -> ?cumulativeGasUsed:??? -> ?effectiveGasPrice:??? -> ?signatureV:??? -> ?signatureR:??? -> ?signatureS:??? -> ?transactionFee:??? -> ?transactionId:??? -> ?confirmationStatus:??? -> ?executionStatus:??? -> unit -> t
Sourceval 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 ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t