muddlebee / polkadot-mempool-explorer

Mempool Explorer allow users to monitor pending transactions on Polkadot.
Apache License 2.0
1 stars 0 forks source link

feat(dashboard): display proper transfer amount #4

Closed muddlebee closed 1 year ago

muddlebee commented 1 year ago

Show proper transfer amount sent from sender to receiver

image

muddlebee commented 1 year ago

fetch balance from the below API response

 {
                        "method": "balances",
                        "section": "Transfer",
                        "data": {
                            "from": "14Kazg6SFiUCH7FNhvBhvr4WNfAXVtKKKhtBQ1pvXzF1dQhv",
                            "to": "1RSCaE5Hy49RCGPoR4BxEiMhjA2ENGRYEJ2dAFLTNBsoHSq",
                            "amount": "49,870,000,000"
                        }
                    },
muddlebee commented 1 year ago

source to make change

services/polkadot/index.js