dero_get_gas_estimate
Estimate compute and storage gas costs for DERO transactions, contract deployments, or contract invocations before submitting to the network. Use this pre-flight check to size fees accurately.
Instructions
Estimate gas (compute + storage) for transfers, SC deploys, or SC invokes via DERO.GetGasEstimate. This is a PRE-FLIGHT check; nothing is submitted.
When to call: BEFORE any wallet-side transfer/scinvoke (using external wallet tooling) to size fees, OR when explaining deploy costs to a user. PREFER citing dero_docs_search("gas estimate" or "fees") so the user understands how compute vs storage gas are charged.
Input Requirements (CRITICAL):
At least ONE of
transfers,sc, orsc_rpcMUST be provided.scis the DVM-BASIC contract source string when estimating a deploy.sc_rpcis an array of{ name, datatype, value }invocation arguments (entrypoint + SC_ID + caller-provided params).signeris OPTIONAL but PREFERRED; pass thedero1.../deto1...address that would sign the eventual tx.
Output: { gascompute, gasstorage, status }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| transfers | No | Optional transfer list | |
| sc | No | SC source to deploy | |
| sc_rpc | No | SC invocation arguments (entrypoint, SC_ID, etc.) | |
| signer | No | Signer address used for estimation |