Function libindy_sys::indy_submit_action[][src]

pub unsafe extern "C" fn indy_submit_action(
    command_handle: indy_handle_t,
    pool_handle: indy_handle_t,
    request_json: *const c_char,
    nodes: *const c_char,
    timeout: indy_i32_t,
    str: indy_str_cb
) -> indy_error_t

Send action to particular nodes of validator pool.

The list of requests can be send: POOL_RESTART GET_VALIDATOR_INFO

The request is sent to the nodes as is. It's assumed that it's already prepared.

#Params command_handle: command handle to map callback to caller context. pool_handle: pool handle (created by open_pool_ledger). request_json: Request data json. nodes: (Optional) List of node names to send the request. ["Node1", "Node2",...."NodeN"] timeout: (Optional) Time to wait respond from nodes (override the default timeout) (in sec). Pass -1 to use default timeout cb: Callback that takes command result as parameter.

#Returns Request result as json.

#Errors Common* Ledger*