async def get_nym(self, did: str) -> str:
LOGGER.debug('<STR_LIT>', did)<EOL>rv = json.dumps({})<EOL>get_nym_req = await ledger.build_get_nym_request(self.did, did)<EOL>resp_json = await self._submit(get_nym_req)<EOL>data_json = (json.loads(resp_json))['<STR_LIT:result>']['<STR_LIT:data>']  <EOL>if data_json:<EOL><INDENT>rv = data_json<EOL><DEDENT>LOGGER.debug('<STR_LIT>', rv)<EOL>return rv<EOL>
Get json cryptonym (including current verification key) for input (agent) DID from ledger.

Raise BadLedgerTxn on failure.

:param did: DID of cryptonym to fetch
:return: cryptonym json