Module Values.TransactionEventSource

The container for the properties of a transaction event.

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

    The blockchain network where the transaction occurred.

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

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

    *)
  3. eventType : QueryTransactionEventType.t option;
    (*

    The type of transaction event.

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

    The wallet address initiating the transaction. It can either be a public key or a contract.

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

    The wallet address receiving the transaction. It can either be a public key or a contract.

    *)
  6. value : String_.t option;
    (*

    The value that was transacted.

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

    The blockchain address for the contract

    *)
  8. tokenId : QueryTokenId.t option;
    (*

    The unique identifier for the token involved in the transaction.

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

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

    *)
  10. voutIndex : Integer.t option;
    (*

    The position of the transaction output in the transaction output list.

    *)
  11. voutSpent : Boolean.t option;
    (*

    Specifies if the transaction output is spent or unspent. This is only returned for BITCOIN_VOUT event types. This is only returned for BITCOIN_VOUT event types.

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

    The transactionId that created the spent transaction output. This is only returned for BITCOIN_VIN event types.

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

    The transactionHash that created the spent transaction output. This is only returned for BITCOIN_VIN event types.

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

    The position of the spent transaction output in the output list of the creating transaction. This is only returned for BITCOIN_VIN event types.

    *)
  15. blockchainInstant : BlockchainInstant.t option;
  16. confirmationStatus : ConfirmationStatus.t option;
    (*

    This container specifies whether the transaction has reached Finality.

    *)
}
Sourceval make : ?network:??? -> ?transactionHash:??? -> ?eventType:??? -> ?from:??? -> ?to_:??? -> ?value:??? -> ?contractAddress:??? -> ?tokenId:??? -> ?transactionId:??? -> ?voutIndex:??? -> ?voutSpent:??? -> ?spentVoutTransactionId:??? -> ?spentVoutTransactionHash:??? -> ?spentVoutIndex:??? -> ?blockchainInstant:??? -> ?confirmationStatus:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of Boolean.t | `Enum of string | `Integer of Integer.t | `String of QueryTransactionHash.t | `Structure of (string * [> `Timestamp of Timestamp.t ]) list ]) 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