polkadot-js / tools

Various cli tools for Polkadot and Substrate chains, including basic node monitoring, making API queries via a cli app and other command-line tools
Apache License 2.0
278 stars 69 forks source link

Submitting hex encoded extrinsic with api-cli #509

Open PierreBesson opened 10 months ago

PierreBesson commented 10 months ago

When using api-cli or signer-cli, it is quite cumbersome to craft a transaction which has complex parameters and some transaction appear to simply not be supported (eg. https://github.com/polkadot-js/tools/issues/329#issuecomment-1019451058).

However recently, polkadot-js UI offers a way to pass a transaction call by its hex representation (eg: https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.ibp.network%2Fpolkadot#/extrinsics/decode/0x00001074657374) and it would be very useful to be able to pass this hex string to the CLI to execute the transaction.

Make it easy to craft a transaction from the UI and then execute it via the CLI eg. in a bash script.