getDID(contract, account)
Feature
Check did created with given account address.
Parameters
string
contract Address,
string
account address
data
of SuccessResponse
object
did information
example
const contract = "0x99e749E6e00fc6BA3E965881589D185cc5B447d4fca";
const account = "0xCEC6fB0acA1282F4eAA31371c664C3e0BB4db36Bfca";
// Note: an asynchronous request.
const getDidInfo = async () => {
const info = await mitum.authdid.getDID(contract, address)
console.log(info.data);
};
getDidInfo();
//output
{ did: 'did:mitum:0xCEC6fB0acA1282F4eAA31371c664C3e0BB4db36Bfca' }
Previouscreate(contract, sender, authType, publicKey, serviceType, serviceEndPoints, currency)NextgetDocument(contract, did)
Last updated