Code Monkey home page Code Monkey logo

chainstate-cli's Introduction

chainstate-cli

Interact with the Polkadot/Kusama blockchain via SubstrateInterface

CLI

Argument Default Requires Value Description
--url wss://rpc.ibp.network/polkadot RPC url
--ref_caller None ✔️ Referendum Index
--gov1 False Set for gov1 chains
--call_data False Get encoded call data
--proxies None Get all proxies
--output None ✔️ Save output to ./data

ref_caller

Get the Call Data of an ongoing referendum

.\chainstate.py --url wss://rpc.ibp.network/polkadot --ref_caller 707 --call_data
.\chainstate.py --url wss://rpc.ibp.network/polkadot --ref_caller 707 --call_data --output polkadot-ref-707-call-data.json

0x130503000100a10f0000020432050b0000275c0b12130000051f585f930903000101002f944a1d1c5688dd06bc0335fb0bb058fa7fb2805a4247047dbbbc6c15121bc900
Show the call that is being made

.\chainstate.py --url wss://rpc.ibp.network/kusama --ref_caller 391
.\chainstate.py --url wss://rpc.ibp.network/kusama --ref_caller 391 --output kusama-ref-391-call.json

{
    "call_index": "0x1208",
    "call_function": "void_spend",
    "call_module": "Treasury",
    "call_args": [
        {
            "name": "index",
            "type": "SpendIndex",
            "value": 3
        }
    ],
    "call_hash": "0xe83b5bd477e5c79e3f799310ae83788a955169f7900d65cbf5e1f406d793dae1"
}

proxies

Get all proxies from chains determines in --url

.\chainstate.py --url wss://rpc.ibp.network/polkadot --proxies
.\chainstate.py --url wss://rpc.ibp.network/kusama --proxies
.\chainstate.py --url wss://hydradx-rpc.dwellir.com --proxies
.\chainstate.py --url wss://sys.ibp.network/statemint --proxies
.\chainstate.py --url wss://acala-rpc.dwellir.com --proxies

chainstate-cli's People

Contributors

nadro-j avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.