Function indyrs::ledger::build_acceptance_mechanisms_request[][src]

pub fn build_acceptance_mechanisms_request(
    submitter_did: &str,
    aml: &str,
    version: &str,
    aml_context: Option<&str>
) -> Box<dyn Future<Item = String, Error = IndyError>>

Builds a SET_TXN_AUTHR_AGRMT_AML request. Request to add a new list of acceptance mechanisms for transaction author agreement. Acceptance Mechanism is a description of the ways how the user may accept a transaction author agreement.

Arguments

  • submitter_did - Identifier (DID) of the transaction author as base58-encoded string. Actual request sender may differ if Endorser is used (look at append_request_endorser)
  • aml: a set of new acceptance mechanisms: { “<acceptance mechanism label 1>”: { acceptance mechanism description 1}, “<acceptance mechanism label 2>”: { acceptance mechanism description 2}, ... }
  • version: a version of new acceptance mechanisms. (Note: unique on the Ledger).
  • aml_context: (Optional) common context information about acceptance mechanisms (may be a URL to external resource).

Returns

Request result as json.