Preview a scrypto function or method call against the latest network state. Returns the result of the scrypto function or method call.
The logical name of the network
{{network}}
An optional specification of a historical ledger state at which to execute the request. The "historical state" feature (see the db.historical_substate_values.enable flag) must be enabled on the Node, and the requested point in history must be recent enough (in accordance with the Node's configured state_hash_tree.state_version_history_length).
db.historical_substate_values.enable
state_hash_tree.state_version_history_length
Argument list
POST /transaction/call-preview HTTP/1.1 Host: xrd.nownodes.io Content-Type: application/json Accept: */* Content-Length: 231 { "target": { "type": "method", "component_address": "component_loc1qftacppvmr9ezmekxqpq58en0nk954x0a7jv2zz0hc7qfxlgx4", "method_name": "lock_fee" }, "arguments": [ "a120000000000010632d5ec66b050000000000000000000000000000000000000000000000" ] }
Result of the scrypto function call
{ "at_ledger_state": { "state_version": 1, "header_summary": { "epoch_round": { "epoch": 1, "round": 1 }, "ledger_hashes": { "state_tree_hash": "text", "transaction_tree_hash": "text", "receipt_tree_hash": "text" }, "proposer_timestamp": { "unix_timestamp_ms": 1, "date_time": "text" } } }, "status": "Succeeded", "output": { "hex": "text", "programmatic_json": null }, "error_message": "text" }