Rosetta_models.Operationtype t = {operation_identifier : Operation_identifier.t; |
related_operations : Operation_identifier.t list; |
_type : string; |
status : string option; |
account : Account_identifier.t option; |
amount : Amount.t option; |
coin_change : Coin_change.t option; |
metadata : Yojson.Safe.t option; |
}val to_yojson : t -> Yojson.Safe.tval of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_orval _ : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_orval pp :
Ppx_deriving_runtime.Format.formatter ->
t ->
Ppx_deriving_runtime.unitval show : t -> Ppx_deriving_runtime.stringval create : Operation_identifier.t -> string -> tOperations contain all balance-changing information within a transaction. They are always one-sided (only affect 1 AccountIdentifier) and can succeed or fail independently from a Transaction. Operations are used both to represent on-chain data (Data API) and to construct new transactions (Construction API), creating a standard interface for reading and writing to blockchains.