Convert
Description The subcommands can be required to pack and unpack transactions as well as to convert data from JSON format to digital code and vice versa.
Subcommands
Pack Action Data — From JSON action data to packed form.
Pack Transaction — From plain signed JSON to packed form.
Unpack Action Data — From packed to JSON action data form.
Unpack Transaction — From packed to plain signed JSON form.
Pack Action Data
Description
The subcommand converts action data from JSON format to packed form.
Positional Parameters
(string) account
— The name of the account that hosts the contract (required).(string) name
— The name of the function that's called by this action (required).(string) unpacked_action_data
— The action data expressed as JSON (required).
Options
No options required for this subcommand.
Command
Examples
Pack Transaction
Description
The subcommand converts a transaction from plain signed JSON to packed form.
Positional Parameters
(string) transaction
— The plain signed JSON (required).
Options
--pack-action-data
— Pack all action data within transaction, needs interaction withnodeos
.
Command
Examples
Unpack Action Data
Description
The subcommand converts action data from packed to JSON format.
Positional Parameters
(string) account
— The name of the account that hosts the contract (required).(string) name
— The name of the function that's called by this action (required).(string) packed_action_data
— The action data expressed as packed hex string (required).
Options
No options required for this subcommand.
Command
Examples
Unpack Transaction
Description
The subcommand converts a transaction from packed to plain signed JSON form.
Positional Parameters
(string) transaction
— The packed transaction JSON (string containing packed_trx and optionally compression fields) (required).
Options
--unpack-action-data
— Unpack all action data within transaction, needs interaction withnodeos
.
Command
Examples
Last updated