0

假设这是我的地址0x6295ee1b4f6dd65047762f924ecd367c17eabf8f

我想将此类数据的数组聚合为具有集合additionssubtractions的值。

所以如果to记录的属性是0x6295ee1b4f6dd65047762f924ecd367c17eabf8f我希望它被聚合到additions如果它是不同的哈希然后subtractions

{
    "hash": "0x9fc76417374aa880d4449a1f7f31ec597f00b1f6f3dd2d66f4c9c6c445836d8b",
    "nonce": 2,
    "blockHash": "0xef95f2f1ed3ca60b048b4bf67cde2195961e0bba6f70bcbea9a2c4e133e34b46",
    "blockNumber": 3,
    "transactionIndex": 0,
    "from": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
    "to": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f",
    "value": '123450000000000000',
    "gas": 314159,
    "gasPrice": '2000000000000',
    "input": "0x57cb2fc4"
}

result{contractAddress: {to: [value]}}

JSONATA 中的这个查询给了我我想要的东西,但它根据我希望这些哈希值的哈希值聚合值additions subtractions。我可以以某种方式重命名属性吗?

  {
    "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b": [
      "361616651246208458",
      "230143449286412907",
      "195512033691243328"
    ],
    "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f": [
      "90000000900000000"
    ]
  },
4

0 回答 0