Provide a link to a Gist or Github repository that demonstrates a script to calculate pending payouts by sending HTTP requests to a local Sidecar instance.
Clone polkadot repo and run local kusama node as seen below.
Run with Kusama
./target/release/polkadot --chain=kusama
Clone sidecar repo and run local sidecar instance as seen below.
As I ran it with Docker, then we need to update .env.docker
with this added SAS_SUBSTRATE_WS_URL=wss://kusama-rpc.polkadot.io
to it. This is because we will use the Kusama network.
Follow this section on how to build and run Sidecar with Docker.
Follow the dart_script README.md on how to run the script.