Module Flexmasa.Mavryk_client

Wrapper around the main "mavkit-client" application.

type client = t
val of_node : exec:Mavryk_executable.t -> Mavryk_node.t -> t

Create a client which is meant to communicate with a given node.

val no_node_client : exec:Mavryk_executable.t -> t

Create a client not connected to a node (e.g. for ledger interaction).

val base_dir : t -> state:< paths : Paths.t.. > -> Internal_pervasives.string

Get the path to the "--base-dir" option of the client.

Build Scripts

Build the arguments for a given default mavkit-client (not including the executable).

Build a mavkit-client command, the default ?wait is "none".

Run Specific Client Commands

Wait for the node to be bootstrapped.

Use RPCs to find an operation matching ~f in the node's mempool.

Use RPCs to find an operation of kind ~kind in the node's mempool.

Use RPCs to find an operation of kind ~kind in the node's chain at a given level.

val get_block_header : < application_name : Internal_pervasives.string ; console : Console.t ; paths : Paths.t ; env_config : Environment_configuration.t ; runner : Running_processes.State.t.. > -> client:t -> [ `Head | `Level of Internal_pervasives.int ] -> (Ezjsonm.value, [> Internal_pervasives.Process_result.Error.t | Internal_pervasives.System_error.t ]) Internal_pervasives.Asynchronous_result.t

Call the RPC "/chains/main/blocks/<block>/header".

Parse Account from client output of the form: * Hash: mv1LkuVrpuEYCjZqTM93ri8aKYNtqFoYeACk * Public Key: edpkuTpUWcNgn4QYcBVGDLy6rmpJ3WSTSV2bdiJFwyoDk5fSwxyV5k * Secret Key: unencrypted:edsk3RFgDiCt7tWB2oe96w1eRw72iYiiqZPLu9nnEY23MYRp2d8Kkx

Deploy the general multisig contract

sign a multisig contract

Submit a Transfer transaction using the fully-signed multisig contract

module Ledger : sig ... end
module Keyed : sig ... end