all-about-apikey/alchemy
Muhammad Daffa 7372a52709 Fix repository structure and add todolist 2022-07-23 20:53:29 +07:00
..
README.md Fix repository structure and add todolist 2022-07-23 20:53:29 +07:00

README.md

Alchemy

Description

Ethereum Node-as-a-Service Provider

Example Request

  • Curl
curl -XPOST "https://eth-mainnet.alchemyapi.io/v2/{{token}}" -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":0}'
  • Raw
POST /v2/{{token}} HTTP/1.1
Host: eth-mainnet.alchemyapi.io
Content-Type: application/x-www-form-urlencoded
Content-Length: 63

{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":0}

Response

  • Success
{
    "jsonrpc": "2.0",
    "id": 0,
    "result": "0x000000"
}
  • Error
{
    "jsonrpc": "2.0",
    "id": 0,
    "error": {
        "code": -32000,
        "message": "Must be authenticated!"
    }
}

Regex

[a-zA-Z0-9-]{32}

Example API key

ACf3vvsAUFQ6V4q2ODDDiCf3vvsAsA-a