Open gitcoindev opened 1 year ago
QA: accessing deployed GitHub actions Anvil instance https://deutsche-lm-freeze-spain.trycloudflare.com/, mining two blocks and getting the eth_blockNumber:
$ curl --data '{"method":"eth_blockNumber","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST https://deutsche-lm-freeze-spain.trycloudflare.com
{"jsonrpc":"2.0","id":1,"result":"0x0"}
$ curl --data '{"method":"evm_mine","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST https://deutsche-lm-freeze-spain.trycloudflare.com
{"jsonrpc":"2.0","id":1,"result":"0x0"}
$ curl --data '{"method":"evm_mine","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST https://deutsche-lm-freeze-spain.trycloudflare.com
{"jsonrpc":"2.0","id":1,"result":"0x0"}
$ curl --data '{"method":"eth_blockNumber","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST https://deutsche-lm-freeze-spain.trycloudflare.com
{"jsonrpc":"2.0","id":1,"result":"0x2"}
Started cloudflared tunnel.
Cloudflared tunnel shutdown.
Cloudflared tunnel started.
QA: accessing deployed GitHub actions Anvil instance ona custom domain, mining two blocks and getting the eth_blockNumber:
$ curl --data '{"method":"eth_blockNumber","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST https://anvil.domain.xyz
{"jsonrpc":"2.0","id":1,"result":"0x0"}10:43:56 ~$
$ curl --data '{"method":"evm_mine","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST https://anvil.domain.xyz
{"jsonrpc":"2.0","id":1,"result":"0x0"}10:44:19 ~$
$ curl --data '{"method":"evm_mine","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST https://anvil.domain.xyz
{"jsonrpc":"2.0","id":1,"result":"0x0"}10:44:21 ~$
$ curl --data '{"method":"eth_blockNumber","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST https://anvil.domain.xyz
{"jsonrpc":"2.0","id":1,"result":"0x2"}10:44:41 ~$
Cloudflared tunnel shutdown.
After tunnel shutdown, trying to access Anvil returns error code: 1033
:
$ curl --data '{"method":"eth_blockNumber","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST https://anvil.domain.xyz
error code: 1033
https://deutsche-lm-freeze-spain.trycloudflare.com