-
Notifications
You must be signed in to change notification settings - Fork 27
[Question] Create Smart Contract call transaction offline and submit it later #367
Comments
Hey 👋 I am actually not personally familiar with transactions for contracts, but if they are standard transactions (extrinsics), you can encode the transaction, which turns it into a SCALE encoded hex string. You can store that hex string in a DB, and you can store it at various stages of construction and should still be able to decode it with polkadot-js and/or the utils from this lib to sign etc. Additionally, polkadot-js is pretty flexible when it comes into reading data so in many cases it can also read in a JSON representation of the transaction. The final transaction is broadcasted as a hex string so you could easily store that in a DB as well and broadcast it as is. |
Hi. Have you implemented the offline creation contract call? |
Hello, @azhu003
|
Above - online call.
|
@azhu003 |
@evgeny-s thanks😁 |
Hey, guys.
Thanks for this useful lib.
Is it a possibility to create a Smart Contract call offline, wrap it to string let's say, share a transaction string (for example put it to DB), and later unwrap and submit it to the Blockchain?
Thanks!
The text was updated successfully, but these errors were encountered: