Get definition
Get an address definition.

Example 1

1
const address = 'TMWNLXR42CKIP4A774BQGNVBZAPHY7GH';
2
3
client.api.getDefinition(address, function(err, result) {
4
if (err) return console.error(err);
5
console.log(result);
6
});
Copied!

Returns

1
[
2
'sig',
3
{
4
pubkey: 'AsD2GQ3+CSHfFO9CfX8+gBxmxSm9TGweKjWVie0rt/0p'
5
}
6
]
Copied!

Example 2

1
const params = {
2
address; 'TMWNLXR42CKIP4A774BQGNVBZAPHY7GH'
3
};
4
5
client.api.getDefinitionForAddress(address, function(err, result) {
6
if (err) return console.error(err);
7
console.log(result);
8
});
Copied!

Returns

1
{
2
definition_chash: "TMWNLXR42CKIP4A774BQGNVBZAPHY7GH",
3
definition: [
4
"sig",
5
{
6
pubkey: "AsD2GQ3+CSHfFO9CfX8+gBxmxSm9TGweKjWVie0rt/0p"
7
}
8
],
9
is_stable: true
10
}
Copied!

Learn more

Last modified 6mo ago