Get joint
Request data of a specific unit.

Example

1
const unit = 'k37Xlns198EHCtubX5X0kqbrnC9XYVTa0aFpR78gidM=';
2
3
client.api.getJoint(unit, function(err, result) {
4
if (err) return console.error(err);
5
console.log(result);
6
});
Copied!
Try on JSFiddle.

Returns

1
{
2
joint: {
3
unit: {
4
unit: 'k37Xlns198EHCtubX5X0kqbrnC9XYVTa0aFpR78gidM=',
5
version: '1.0',
6
alt: '1',
7
witness_list_unit: 'oj8yEksX9Ubq7lLc+p6F2uyHUuynugeVq4+ikT67X6E=',
8
last_ball_unit: '9tIFlniHyoVJEp0i+WHMTZqnnR1UqgAhrIWFRkgE8m0=',
9
last_ball: 'qxl8Rq1IjVUICgbm9A1+d+ZC3pG75HoDEFTchdL6scg=',
10
headers_commission: 344,
11
payload_commission: 123,
12
main_chain_index: 2870558,
13
timestamp: 1529756195,
14
parent_units: [
15
'0V3X7wyTl/17YX83YbjFgyJ2LRNxbgT5jXQOdLvZR2A=',
16
'HJoe07dHWj5fH5s7PMgwbtryM/o14YERshGVz4cP1BQ='
17
],
18
authors: [
19
{
20
address: 'S7N5FE42F6ONPNDQLCF64E2MGFYKQR2I',
21
authentifiers: {
22
r: 'nNx6QBfwIQkZydLEDXs/di0U5wqFaw4L15OCGICFGkwDgDh3KK+ks5hxFoUhSLxiZZIeNt1gIjmpKFv+bIiDtQ=='
23
}
24
}
25
],
26
messages: [
27
{
28
app: 'payment',
29
payload_hash: 'g0eNA+42F6Zxx650BLNxUKAwx3R3HJ/pC1tjxXVg8Lg=',
30
payload_location: 'inline',
31
payload: {
32
inputs: [
33
{
34
type: 'witnessing',
35
from_main_chain_index: 580671,
36
to_main_chain_index: 580684
37
}
38
],
39
outputs: [
40
{
41
address: 'S7N5FE42F6ONPNDQLCF64E2MGFYKQR2I',
42
amount: 79
43
}
44
]
45
}
46
}
47
]
48
},
49
ball: 'XRz6FcvpNLjrzXkCeQGIM/ekqQTrmB/kBEpn1grsrI0='
50
}
51
}
Copied!

Learn more

Last modified 6mo ago
Copy link