Get data of all elements of the array.

(Vladimir) #1

How to get the necessary data for each element of the array? In the example below, there are three array elements that contain many key-value pairs. I need to get the sum of the key values at the output: “amount”. If I needed to get the sum of only the third element of the array, my output would look like this: {{make_a_http_request.data__data__2__data__amount}}. And how to get the data of all elements of the array right away ??? And how to summarize the obtained value of the key “amount”?

Data
{
“__type”: “list”,
“isLastPage”: true,
“lastCursor”: “MjAxOS0wNC0wMVQxNzoyMTo1NC4wMjlaOjo1SGtDU3N3Tm5BUUhHWGRvVWNuelB2amI2bXdjaXVRRnpaU3B6TDhwM2szYTo6ZGVzYw==”,
“data”: [
{
“__type”: “transaction”,
“data”: {
“height”: 1485495,
“type”: 4,
“id”: “GsGw2NDDEnd1iejwBh22grjXbkdmi56kQiuz1AZhgM1L”,
“timestamp”: “2019-04-16T17:29:37.249Z”,
“proofs”: [
“37GbksjSmrTid5QqZ1kpSnST3uoZUac62JKQUdQvtVRaozx19kSXEu7y5Mb1DF38s4M5nJqiFvX7Ywi6VqZqFf17”
],
“version”: 2,
“fee”: 0.001,
“sender”: “3P6zgGkex73pwkpAiPvFMf68EqWtgPTFD3G”,
“senderPublicKey”: “4WzaoopyBYpu5bxj3nqjZW97ry9HLZFjjCLYX23eJmZS”,
“assetId”: “GLiXT4mkHFPph5ZMN9NY4JoY2CUrtQbc47g3TRatuyjV”,
"amount": 100,
“recipient”: “3PFUneKNwV7KwRFFTuGrcCmjkHAYZ1J4AQj”,
“feeAsset”: “WAVES”,
“attachment”: “AMuUcBapuRLLUtvCUq”
}
},
{
“__type”: “transaction”,
“data”: {
“height”: 1485485,
“type”: 4,
“id”: “9254Y55XyZ5kPAqzwDwR3aYrxxoBSgTdXmZKWNBFTNiS”,
“timestamp”: “2019-04-16T17:19:55.201Z”,
“proofs”: [
“47chPUrMqqLiReeQVYtA1Xke9e3pDpEhWpWKT8y9r3mpNUbMZG9QVvgGED7u9qjw5JKV5qwFJXzVAmKtfAQJmmbE”
],
“version”: 2,
“fee”: 0.001,
“sender”: “3P6zgGkex73pwkpAiPvFMf68EqWtgPTFD3G”,
“senderPublicKey”: “4WzaoopyBYpu5bxj3nqjZW97ry9HLZFjjCLYX23eJmZS”,
“assetId”: “GLiXT4mkHFPph5ZMN9NY4JoY2CUrtQbc47g3TRatuyjV”,
"amount": 100,
“recipient”: “3PFUneKNwV7KwRFFTuGrcCmjkHAYZ1J4AQj”,
“feeAsset”: “WAVES”,
“attachment”: “AMuUcBapuRLLUtvCUq”
}
},
{
“__type”: “transaction”,
“data”: {
“height”: 1463595,
“type”: 4,
“id”: “5HkCSswNnAQHGXdoUcnzPvjb6mwciuQFzZSpzL8p3k3a”,
“timestamp”: “2019-04-01T17:21:54.029Z”,
“proofs”: [
“2P5ZofovMgAXnJe9xcfn3CbdVqLLSvszbb4WrAv3KpdgUHHZ6KDimzUnRSMUkqAfxtvYsjYVi4J2YWF2wT8qDFHs”
],
“version”: 2,
“fee”: 0.001,
“sender”: “3P6zgGkex73pwkpAiPvFMf68EqWtgPTFD3G”,
“senderPublicKey”: “4WzaoopyBYpu5bxj3nqjZW97ry9HLZFjjCLYX23eJmZS”,
“assetId”: “GLiXT4mkHFPph5ZMN9NY4JoY2CUrtQbc47g3TRatuyjV”,
"amount": 1000,
“recipient”: “3PFUneKNwV7KwRFFTuGrcCmjkHAYZ1J4AQj”,
“feeAsset”: “WAVES”,
“attachment”: “”
}
}
]
}