Move VM pallet implements several RPC calls such as:
  • mvm_gasToWeight - converts gas to weight.
  • mvm_weightToGas - converts weight to gas.
  • mvm_estimateGasPublish - estimate gas for publishModule transaction.
  • mvm_estimateGasExecute - estimate gas for execute transaction.
You can see all available RPC methods using curl:
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "rpc_methods"}' http://localhost:9933/
As curl is not the best tool to interact with RPC, see how to call RPC using the Polkadot UI.
Last modified 2mo ago
Copy link