Phantasma CLI tools updated for RPC transaction decoding and Node 22
pha-decode now handles RPC carbonTxData and JSON transaction objects directly, while pha-deploy receives a Node 22 maintenance refresh.
pha-decode 0.3.2andpha-deploy 0.5.1are now published on npm as separate Phantasma CLI tooling packages.pha-decodecan now decode payload-only RPCcarbonTxDataby passing the matching--carbon-tx-type.pha-decode tx --rpc-json tx.jsonandpha-decode tx --rpc-json -accept a rawgetTransactionresult object or a JSON-RPC response, so copied RPC output can be decoded without manually rebuilding a full transaction hex string.- Direct
carbonTxDatadecoding can include optional RPC context such as payload, expiration, gas payer, gas limit, and signature count when that data is available. - Transaction input validation is stricter: the CLI rejects mixed transaction input modes and requires an explicit Carbon transaction type for payload-only data.
pha-deploy 0.5.1refreshes the CLI runtime and dependency baseline for Node.js 22 while preserving the existing contract compile, deploy, upgrade, and attach workflow.
pha-decode | pha-deploy | pha-decode source | pha-deploy source
npm update -g pha-decodenpm update -g pha-deploy