[−][src]Function indyrs::ledger::build_get_acceptance_mechanisms_request
pub fn build_get_acceptance_mechanisms_request(
submitter_did: Option<&str>,
timestamp: Option<i64>,
version: Option<&str>
) -> Box<dyn Future<Item = String, Error = IndyError>>
Builds a GET_TXN_AUTHR_AGRMT_AML request. Request to get a list of acceptance mechanisms from the ledger valid for specified time or the latest one.
Arguments
submitter_did
- (Optional) DID of the read request sender (if not provided then default Libindy DID will be used).timestamp
: (Optional) time to get an active acceptance mechanisms.version
: (Optional) version of acceptance mechanisms.
NOTE: timestamp and version cannot be specified together.
Returns
Request result as json.