[−][src]Function indyrs::ledger::append_txn_author_agreement_meta_to_request
pub fn append_txn_author_agreement_meta_to_request(
request_json: &str,
text: Option<&str>,
version: Option<&str>,
hash: Option<&str>,
acc_mech_type: &str,
time_of_acceptance: u64
) -> Box<dyn Future<Item = String, Error = IndyError>>
Append transaction author agreement metadata to a request. This function should be called before signing and sending a request if there is any transaction author agreement set on the Ledger.
This function may calculate hash by itself or consume it as a parameter. If all text, version and hash parameters are specified, a check integrity of them will be done.
Arguments
request_json
: original request data json.text
andversion
: (optional) raw data about TAA from ledger. These parameters should be passed together. These parameters are required if hash parameter is omitted.hash
: (optional) hash on text and version. This parameter is required if text and version parameters are omitted.acc_mech_type
: mechanism how user has accepted the TAAtime_of_acceptance
: UTC timestamp when user has accepted the TAA
Returns
Updated request result as json.