[][src]Function indyrs::ledger::build_txn_author_agreement_request

pub fn build_txn_author_agreement_request(
    submitter_did: &str,
    text: &str,
    version: &str
) -> Box<dyn Future<Item = String, Error = IndyError>>

Builds a TXN_AUTHR_AGRMT request. Request to add a new version of Transaction Author Agreement to the ledger.

Arguments

  • submitter_did: DID of the request sender.
  • text: a content of the TTA.
  • version: a version of the TTA (unique UTF-8 string).

Returns

Request result as json.