I'm querying an api that gives me the last 10 payment events (unfortunately I can't cut this down). I want to chart or graph the payments over time, without duplicating payments that appear in more than one query.
Each api reply has json like this. I've cut it down 3 events per api response to make things easier here. Note there's only 4 unique payments across both example json responses below, as tracked by txnHash. ts is unix time.
Is this possible?
sample 1
[
{"pt":"pplns",
"ts":1519043779,
"amount":316,
"txnHash":"5e8a3f",
"mixin":12
},
{"pt":"pplns",
"ts":1519041972,
"amount":510,
"txnHash":"a1808c",
"mixin":12
},
{"pt":"pplns",
"ts":1519038361,
"amount":108,
"txnHash":"e6c116",
"mixin":12
}
[
sample 2
[
{"pt":"pplns",
"ts":1519046691,
"amount":200,
"txnHash":"586752",
"mixin":12
},
{"pt":"pplns",
"ts":1519043779,
"amount":316,
"txnHash":"5e8a3f",
"mixin":12
},
{"pt":"pplns",
"ts":1519041972,
"amount":510,
"txnHash":"a1808c",
"mixin":12
}
[
... View more