POST/api/v1/transaction_simulation
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 freeSimulate 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
| name | in | type | description | |
|---|---|---|---|---|
chain_id | body | str | required | Hex chain ID ('0x1', '0x38', '0x2105') or friendly name ('ethereum', 'bsc', 'base'). example: 0x1 |
from | body | str | required | Sender address for simulation. example: 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 |
to | body | str | required | Target contract or recipient address. example: 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 |
data | body | str | required | 0x-prefixed hex calldata. example: 0xa9059cbb000000000000000000000000000000000000000000000000000000000000dead00000000000000000000000000000000000000000000000000000000000f4240 |
value | body | str | optional | Hex ETH/native value sent with the transaction (default '0x0'). default: 0x0example: 0x0 |
Response
type: object
pagination: none
sample: {
"code": "int",
"message": "str",
"result": "object"
}