Get history
Get the history of one or multiple addresses.

Example - address

1
const params = {
2
witnesses: await client.getCachedWitnesses(),
3
addresses: [
4
'ULQA63NGEZACP4N7ZMBUBISH6ZTCUS2Q'
5
]
6
};
7
client.api.getHistory(params, function(err, result) {
8
if (err) return console.error(err);
9
console.log(result);
10
});
Copied!

Example - requested joints

1
const params = {
2
witnesses: await client.getCachedWitnesses(),
3
requested_joints: [
4
'QjJsukONZ57VBVtLk/0ak1jMYNW0vw7q0So95KBJH2k=',
5
'H1RSMS/7sBM77rYNiN1rWtbVJthg5BTRIf6ode9vaiE='
6
]
7
};
8
client.api.getHistory(params, function(err, result) {
9
if (err) return console.error(err);
10
console.log(result);
11
});
Copied!

Returns

1
{
2
unstable_mc_joints: [
3
{
4
unit: {Object}
5
},
6
{
7
unit: {Object}
8
},
9
...
10
],
11
witness_change_and_definition_joints: [
12
{
13
unit: {Object},
14
ball: 'CxK1luSnAk5+MaGyaE9wl26JdwAkSPFDqWJdYs9gRng='
15
}
16
],
17
joints: [
18
{
19
unit: {Object},
20
ball: 'HCEsVPYN9g7tGOVWlixTlA7Cg4fXsd1VDQSgUzHZljI='
21
},
22
{
23
unit: {Object},
24
ball: '7Zk9IQja19XZyJY0MPZZxAhIjV5Uydr+zUvoQXvGBKs='
25
},
26
...
27
],
28
proofchain_balls: [
29
{
30
unit: 'rVuepU0c43PKbqM2BgnpOLaBCGdaxG0w6WBpSjaCHgA=',
31
ball: 'zTN1OJcGfibm2hxitGnQRx0HSzhfhycFIXsaL7gnUNY=',
32
parent_balls: [Array]
33
},
34
{
35
unit: 'Mn8nOpIQvhQvPjlnDBbtYwUbRolrt40Igr8txWch0s0=',
36
ball: 'Ocgs5zd0mWeqWNm/+gT0wqpfnd9+mj5BaaABndamw0E=',
37
parent_balls: [Array]
38
},
39
...
40
],
41
aa_responses: [
42
{
43
mci: 5570689,
44
trigger_address: "ULQA63NGEZACP4N7ZMBUBISH6ZTCUS2Q",
45
aa_address: "NINAQ4KWRURQDX3O7G3KE6IFJKIA4Q25",
46
trigger_unit: "QjJsukONZ57VBVtLk/0ak1jMYNW0vw7q0So95KBJH2k=",
47
bounced: 0,
48
response_unit: "H1RSMS/7sBM77rYNiN1rWtbVJthg5BTRIf6ode9vaiE=",
49
response: "{\"responseVars\":{\"type\":\"swap\",\"asset1_amount\":6149564711}}",
50
timestamp: 1595783576,
51
creation_date: "2020-07-26 17:23:08"
52
}
53
]
54
}
Copied!
Last modified 7mo ago