⚠️Blast API (blastapi.io) ends Oct 31. Migrate to Dwellir and skip Alchemy's expensive compute units.
Switch Today →
Skip to main content

Transaction Simulate — Move REST API

Overview

Simulate a signed or unsigned transaction to preview effects and gas.

Endpoint

POST /v1/transactions/simulate

Movement-Specific Notes

  • Use realistic parameters to improve accuracy.

Request

Body Schema

[{ "sender": "0x...", "payload": { "type": "entry_function_payload", "function": "..." } }]

Response

Success Response (200)

[{ "gas_used": "1234", "success": true, "vm_status": "Executed successfully" }]

Code Examples

TypeScript (Aptos SDK)

import { Aptos, AptosConfig, Network } from '@aptos-labs/ts-sdk';
const cfg = new AptosConfig({ network: Network.CUSTOM, fullnode: 'https://api-movement-mainnet.n.dwellir.com/YOUR_API_KEY/v1' });
const aptos = new Aptos(cfg);
// Use aptos.simulateTransaction helpers

Python

# Use aptos_sdk simulate helpers (where available)

cURL

curl -X POST https://api-movement-mainnet.n.dwellir.com/YOUR_API_KEY/v1/transactions/simulate \
-H "Content-Type: application/json" \
-d '[{"sender":"0x...","payload":{}}]'

EVM Equivalent

eth_estimateGas for EVM gas estimation.