[−][src]Function indyrs::ledger::build_get_txn_author_agreement_request
pub fn build_get_txn_author_agreement_request(
submitter_did: Option<&str>,
data: Option<&str>
) -> Box<dyn Future<Item = String, Error = IndyError>>
Builds a GET_TXN_AUTHR_AGRMT request. Request to get a specific Transaction Author Agreement from the ledger.
Arguments
submitter_did
- (Optional) DID of the read request sender (if not provided then default Libindy DID will be used).data
: (Optional) specifies a condition for getting specific TAA. Contains 3 mutually exclusive optional fields: { hash: Optional- hash of requested TAA, version: Optional - version of requested TAA. timestamp: Optional - ledger will return TAA valid at requested timestamp. } Null data or empty JSON are acceptable here. In this case, ledger will return the latest version of TAA.
Returns
Request result as json.