Suppose you want to obtain the JSON data of some specific transaction for an external application. In that case, these are some easy ways to get it.
Having the JSON data of a transaction might be helpful, especially when one has to sign with multiple keys to execute transactions.
Obtaining JSON Data of a transaction on Anchor Wallet:
You have to start the transaction to show the “Signing Request” pop up window. Then there will be a "Raw Transaction” tab. Select the Raw Transaction to see the JSON data of the transaction being performed:
Now you can use the JSON in your command line. Example:
cleos -u https://eos.greymass.com push transaction my_transaction.json
You can do this with any transaction, from normal transfers to complex smart contract executions.
Obtaining JSON Data of a transaction on bloks.io
You can obtain JSON Data from bloks.io, but it is limited to the group of transactions you can do through their website.
The first step is to go to bloks.io and login:
Select the cleos/eosc option to login:
Write the account name and select the permission you want to use to make the transactions:
Once done, bloks.io will know how to build the commands and the RAW data for your transactions.
Now, any transaction you make using bloks.io will give you the cleos command and the RAW data of the transaction :
When you confirm it, you will get the cleos command; you can copy and run it in your terminal console or select only the JSON part and use it where you need it.
You can do this normal transfers, and other operations available in bloks.io, like:
Transfers,
Vote,
REX,
MSIG
Create accounts
etc, etc.
Author: Erick Birbe
Editor: Randall Roland, Markus Hinrichs
Translation: -
Sources & References:
Further reading & tutorials: