Call preview

Scrypto Call Preview

post

Preview a scrypto function or method call against the latest network state. Returns the result of the scrypto function or method call.

Body
networkstringRequired

The logical name of the network

Example: {{network}}
argumentsstring[]Required

Argument list

Responses
200
Result of the scrypto function call
application/json
post
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"
  ]
}
{
  "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"
}