dyne / restroom-mw

🛠 Easy REST API builder executing Zencode
https://restroom.dyne.org
GNU Affero General Public License v3.0
3 stars 11 forks source link

Read array of ethereum balances #184

Closed andrea-dintino closed 2 years ago

andrea-dintino commented 2 years ago

We would need a statement like:

Given I read the ethereum balance for array 'ethereum_address_array'

that takes input like:

{
    "ethereum_address_array": [
        "8388f6a2a4940c3fe14d640ddf151aa771f03b81",
        "fcb3156532549730e7b118cb99a736776551f0e4",
        "6ef80725bc7eaf1e227f82dbc6c8e1f73156a438"
    ]
}

and returns an string dictionary like:

{ "8388f6a2a4940c3fe14d640ddf151aa771f03b81": {"tokens": "1000"}, "fcb3156532549730e7b118cb99a736776551f0e4": {"tokens": "1001"}, "6ef80725bc7eaf1e227f82dbc6c8e1f73156a438": {"tokens": "1002"} }