Skip to content

Latest commit

 

History

History
101 lines (93 loc) · 3.75 KB

endpoint-smoke-test.md

File metadata and controls

101 lines (93 loc) · 3.75 KB

Endpoint Smoke Test

This documents the process to validate a given EOS-EVM network endpoint is online, functional, and qualified to receive public traffic.

Contents

  1. Bridge
  2. Explorer
  3. Faucet
  4. RPC API
  5. See Also

Bridge

Smoke tests for the bridge.

  1. Navigate to the bridge in your web browser and verify it loads.
  2. Verify the endpoint redirects your web browser from HTTP to HTTPS when attempting to load it unencrypted.

Explorer

Smoke tests for the explorer.

  1. Navigate to the explorer in your web browser and verify it loads.
  2. Verify the endpoint redirects your web browser from HTTP to HTTPS when attempting to load it unencrypted.

Faucet

Smoke tests for the faucet.

  1. Navigate to the faucet in your web browser and verify it loads.
  2. Verify the endpoint redirects your web browser from HTTP to HTTPS when attempting to load it unencrypted.

RPC API

Smoke tests for the RPC API.

  1. Verify the RPC API returns the head block.
    • Mainnet
      curl -fsSL 'https://api.evm.eosnetwork.com' -X POST -H 'Content-Type: application/json' --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' | jq .
      You should see something like this, where the result field will vary by incrementing once per second.
      {
        "id": 1,
        "jsonrpc": "2.0",
        "result": "0x39bdd8"
      }
    • Testnet
      curl -fsSL 'https://api.testnet.evm.eosnetwork.com' -X POST -H 'Content-Type: application/json' --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' | jq .
      You should see something like this, where the result field will vary by incrementing once per second.
      {
        "id": 1,
        "jsonrpc": "2.0",
        "result": "0x39bdd8"
      }
  2. Verify the RPC API rejects unencrypted requests.
    • Mainnet
      curl -fsSL 'http://api.evm.eosnetwork.com' -X POST -H 'Content-Type: application/json' --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' | jq .
      Currently, we expect you to get a 500 response.
      curl: (22) The requested URL returned error: 500
      
    • Testnet
      curl -fsSL 'http://api.testnet.evm.eosnetwork.com' -X POST -H 'Content-Type: application/json' --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' | jq .
      Currently, we expect you to get a 500 response.
      curl: (22) The requested URL returned error: 500
      

See Also