Mina_base.Coinbase
module Fee_transfer = Coinbase_fee_transfer
module Stable : sig ... end
type t = private Stable.Latest.t = {
receiver : Mina_base_import.Public_key.Compressed.t; |
amount : Currency.Amount.t; |
fee_transfer : Fee_transfer.t option; |
}
val to_yojson : t -> Yojson.Safe.t
val of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or
val hash_fold_t :
Ppx_hash_lib.Std.Hash.state ->
t ->
Ppx_hash_lib.Std.Hash.state
val hash : t -> Ppx_hash_lib.Std.Hash.hash_value
include Codable.Base58_check_intf with type t := t
val to_base58_check : t -> string
explicit Base58Check encoding
include Codable.Base58_check_base_intf with type t := t
val of_base58_check : string -> t Base.Or_error.t
Base58Check decoding
val of_base58_check_exn : string -> t
Base58Check decoding
val receiver_pk : t -> Mina_base_import.Public_key.Compressed.t
val receiver : t -> Account_id.t
val fee_payer_pk : t -> Mina_base_import.Public_key.Compressed.t
val amount : t -> Currency.Amount.t
val fee_transfer : t -> Fee_transfer.t option
val accounts_accessed : t -> Account_id.t list
val create :
amount:Currency.Amount.t ->
receiver:Mina_base_import.Public_key.Compressed.t ->
fee_transfer:Fee_transfer.t option ->
t Core_kernel.Or_error.t
val expected_supply_increase : t -> Currency.Amount.t Core_kernel.Or_error.t
val fee_excess : t -> Fee_excess.t Core_kernel.Or_error.t
module Gen : sig ... end