The Simulator category of the Range API allows users to simulate blockchain transactions on supported networks.

Simulator API

The Simulator category of the Range API allows users to simulate blockchain transactions on supported networks. By simulating a transaction, users can retrieve potential outcomes, including balance changes and gas usage, without committing the transaction to the blockchain. This is particularly useful for testing transactions before execution and predicting the effects on involved accounts.

Key Features

  • Transaction Simulation: Simulate blockchain transactions without broadcasting them to the network. This is ideal for testing and analyzing transaction outcomes before committing them.
  • Balance Changes: Predict the balance changes that would result from a simulated transaction, including any tokens transferred or fees incurred.
  • Gas Information: Retrieve detailed gas usage information, allowing you to estimate costs for transaction execution.

Use Cases

  • Transaction Testing: Test the execution of complex transactions without the risk of failure on the main network.
  • Cost Estimation: Simulate transactions to estimate the gas fees and token balances involved, helping to plan for actual network interactions.
  • Smart Contract Development: Developers can simulate the interactions of smart contracts to ensure that they function as expected before deploying them.

Security

All API endpoints in the Simulator category require an API key for access, passed in the X-API-KEY header.

Usage

The Simulator API allows you to explore the potential outcomes of transactions on supported networks like Osmosis and Neutron, offering a valuable testing tool for blockchain developers and users.

Endpoints Overview

Detailed usage instructions for simulating transactions are available in the documentation for the /v1/simulate/{network}/transaction endpoint. This includes the required parameters, how to structure the simulation request, and how to interpret the results.