from web3 import Web3
w3 = Web3(Web3.HTTPProvider("https://YOUR_QUICKNODE_ENDPOINT_HERE.com"))
resp = w3.provider.make_request(
'sentio_simulateTransaction',
{"simulation":{"chainSpec":{"chainId":"1"}, "blockNumber":"20715186", "transactionIndex":"40", "from":"0x39a848317a422d94832e9de71e1ae9c8f45f84d5", "to":"0x7a250d5630b4cf539739df2c5dacb4c659f2488d", "value":"0x0", "gas":"0x493e0", "gasPrice":"0x25d59cf3a", "input":"0x5c11d795000000000000000000000000000000000000000270e0bd90ed6500a8a2d42ac000000000000000000000000000000000000000000000000003f45a0699db368e00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000008dca4b84718283b800c3bc996272727cd2df55ac0000000000000000000000000000000000000000000000000000000066e09f4600000000000000000000000000000000000000000000000000000000000000020000000000000000000000008149745670881d99700078ede5903a1a7bebe262000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}}
)
print(resp)
require 'eth'
client = Eth::Client.create "https://YOUR_QUICKNODE_ENDPOINT_HERE.com"
payload = {
"id":1,
"jsonrpc":"2.0",
"method":"sentio_simulateTransaction",
"params": {"simulation":{"chainSpec":{"chainId":"1"}, "blockNumber":"20715186", "transactionIndex":"40", "from":"0x39a848317a422d94832e9de71e1ae9c8f45f84d5", "to":"0x7a250d5630b4cf539739df2c5dacb4c659f2488d", "value":"0x0", "gas":"0x493e0", "gasPrice":"0x25d59cf3a", "input":"0x5c11d795000000000000000000000000000000000000000270e0bd90ed6500a8a2d42ac000000000000000000000000000000000000000000000000003f45a0699db368e00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000008dca4b84718283b800c3bc996272727cd2df55ac0000000000000000000000000000000000000000000000000000000066e09f4600000000000000000000000000000000000000000000000000000000000000020000000000000000000000008149745670881d99700078ede5903a1a7bebe262000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}}
}
response = client.send(payload.to_json)
puts response
const ethers = require("ethers");
(async () : {
const provider = new ethers.providers.JsonRpcProvider("https://YOUR_QUICKNODE_ENDPOINT_HERE.com");
const network = await provider.send(
"sentio_simulateTransaction",
{"simulation":{"chainSpec":{"chainId":"1"}, "blockNumber":"20715186", "transactionIndex":"40", "from":"0x39a848317a422d94832e9de71e1ae9c8f45f84d5", "to":"0x7a250d5630b4cf539739df2c5dacb4c659f2488d", "value":"0x0", "gas":"0x493e0", "gasPrice":"0x25d59cf3a", "input":"0x5c11d795000000000000000000000000000000000000000270e0bd90ed6500a8a2d42ac000000000000000000000000000000000000000000000000003f45a0699db368e00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000008dca4b84718283b800c3bc996272727cd2df55ac0000000000000000000000000000000000000000000000000000000066e09f4600000000000000000000000000000000000000000000000000000000000000020000000000000000000000008149745670881d99700078ede5903a1a7bebe262000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}}
);
console.log(network);
})();
curl https://YOUR_QUICKNODE_ENDPOINT_HERE.com \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"sentio_simulateTransaction","params": {"simulation":{"chainSpec":{"chainId":"1"}, "blockNumber":"20715186", "transactionIndex":"40", "from":"0x39a848317a422d94832e9de71e1ae9c8f45f84d5", "to":"0x7a250d5630b4cf539739df2c5dacb4c659f2488d", "value":"0x0", "gas":"0x493e0", "gasPrice":"0x25d59cf3a", "input":"0x5c11d795000000000000000000000000000000000000000270e0bd90ed6500a8a2d42ac000000000000000000000000000000000000000000000000003f45a0699db368e00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000008dca4b84718283b800c3bc996272727cd2df55ac0000000000000000000000000000000000000000000000000000000066e09f4600000000000000000000000000000000000000000000000000000000000000020000000000000000000000008149745670881d99700078ede5903a1a7bebe262000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}},"id":1,"jsonrpc":"2.0"}'