obyte.js
0.1.19
Search
K
Links

Get definition

Get an address definition.

Example 1

const address = 'TMWNLXR42CKIP4A774BQGNVBZAPHY7GH';
client.api.getDefinition(address, function(err, result) {
if (err) return console.error(err);
console.log(result);
});

Returns

[
'sig',
{
pubkey: 'AsD2GQ3+CSHfFO9CfX8+gBxmxSm9TGweKjWVie0rt/0p'
}
]

Example 2

const params = {
address; 'TMWNLXR42CKIP4A774BQGNVBZAPHY7GH'
};
client.api.getDefinitionForAddress(address, function(err, result) {
if (err) return console.error(err);
console.log(result);
});

Returns

{
definition_chash: "TMWNLXR42CKIP4A774BQGNVBZAPHY7GH",
definition: [
"sig",
{
pubkey: "AsD2GQ3+CSHfFO9CfX8+gBxmxSm9TGweKjWVie0rt/0p"
}
],
is_stable: true
}

Learn more