5.5 Volume Simulator API
The Volume Simulator API allows you to simulate trading volume on a smart contract or token to test bot behavior, on-chain reactions, or liquidity strategies. This is particularly useful for stress-testing Volume Bots, evaluating front-running/back-running scenarios, or preparing contract behavior for high-traffic conditions.
Endpoint: POST /v1/simulator/volume
Request Example (curl):
curl -X POST https://api.layerz.io/v1/simulator/volume \
-H "Authorization: Bearer YOUR_API_KEY_HERE" \
-H "Content-Type: application/json" \
-d '{
"contractAddress": "0x1234567890abcdef1234567890abcdef12345678",
"network": "ethereum",
"tradeCount": 50,
"minAmount": 0.1,
"maxAmount": 5,
"intervalSeconds": 10
}'
Parameter
Value
contractAddress:
The smart contract to simulate volume against.
network:
The target network (e.g., ethereum, bsc, polygon).
tradeCount:
Total number of simulated trades.
minAmount / maxAmount:
Range of trade sizes.
intervalSeconds:
Delay between simulated trades.
Last updated