POST/api/v1/transaction_simulation

Claude ↗ChatGPT ↗
Auth X-Hub-Key from API_HUB_KEYExecute POST /run/goplus/api/v1/transaction_simulationCache executed live on every call — a read-only POST answer is never cachedCost free · weight 0 · standard rate classSource billing free

Simulate an EVM transaction (Ethereum 0x1, BSC 0x38, Base 0x2105) and return balance changes, allowance changes, emitted logs, and risk flags.

Try this endpoint

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sX POST "https://openapihub.dev/run/goplus/api/v1/transaction_simulation" \
  -H "X-Hub-Key: $API_HUB_KEY" -H "Content-Type: application/json" \
  -d '{"chain_id": "0x1", "from": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", "to": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "data": "0xa9059cbb000000000000000000000000000000000000000000000000000000000000dead00000000000000000000000000000000000000000000000000000000000f4240", "value": "0x0"}'

Parameters

nameintypedescription
chain_idbodystrrequiredHex chain ID ('0x1', '0x38', '0x2105') or friendly name ('ethereum', 'bsc', 'base').
example: 0x1
frombodystrrequiredSender address for simulation.
example: 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
tobodystrrequiredTarget contract or recipient address.
example: 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
databodystrrequired0x-prefixed hex calldata.
example: 0xa9059cbb000000000000000000000000000000000000000000000000000000000000dead00000000000000000000000000000000000000000000000000000000000f4240
valuebodystroptionalHex ETH/native value sent with the transaction (default '0x0').
default: 0x0
example: 0x0

Response

type: object
pagination: none
sample: {
  "code": "int",
  "message": "str",
  "result": "object"
}