getByPublickey(publickey)
// Note: an asynchronous request.
const addressInfoByPub = async () => {
const publickey = "028e8b37a6fa82da0c1370963d1680fa0901793d867ff1bce99d77ae83603e5fa5fpu";
const info = await mitum.account.getByPublickey(publickey);
console.log(info.data);
};
addressInfoByPub();
// output
[
{
_hint: 'mitum-currency-hal-v0.0.1',
_embedded: {
_hint: 'mitum-currency-account-value-v0.0.1',
hash: 'oCurmZciuXx6CBCjwPRve6nTqw2ZV7ZNzm7sMgzwDtf',
address: '0x517ffA55D06AaEc6Fa9d27B54e21ebfeb58Ff692fca',
keys: [Object],
height: 300,
contract_account_status: [Object]
},
_links: {
operations: [Object],
'operations:{offset}': [Object],
'operations:{offset,reverse}': [Object],
block: [Object],
self: [Object]
}
}
]Last updated