[][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 - Identifier (DID) of the transaction author as base58-encoded string. Actual request sender may differ if Endorser is used (look at append_request_endorser)
  • text: a content of the TTA.
  • version: a version of the TTA (unique UTF-8 string).

Returns

Request result as json.