xJonathanLEI / starkli

Starkli (/ˈstɑːrklaɪ/), a ⚡ blazing ⚡ fast ⚡ CLI tool for Starknet powered by 🦀 starknet-rs 🦀
https://book.starkli.rs
Apache License 2.0
155 stars 43 forks source link

Feature request: send raw tx #58

Open amanusk opened 6 months ago

amanusk commented 6 months ago

As a complementary feature to #57, it would be great to have the option to broadcast a raw tx by only providing a network/RPC provider. Useful if you want to modify data created by --raw-tx manually, and then only use starkli as a convenient interface to broadcast the raw JSON data (e.g. by supplying a file or a string)

xJonathanLEI commented 6 months ago

This feature makes a lot of sense once #57 is implemented. However, regarding the modify data created by `--raw-tx` manually part I'm not so sure.. If you manually modify data, the signature would change right? Then you cannot really broadcast it anymore.

amanusk commented 6 months ago

Good point, in our usecase we indeed modified both data and signature. I still think this is useful to have this option as an easy way to send (or resend) raw txs