REST
All Mnemonic APIs in addition to gRPC/Protobuf implement standard REST endpoints.
Endpoints
The REST API endpoints are provided below:
Ethereum
ethereum-rest.api.mnemonichq.com
Polygon
polygon-rest.api.mnemonichq.com
Authentication
Authenticated requests must include a valid API key.
Note: In beta only one API key is issued per customer. The key can be rotated if necessary.
REST HTTP clients need to pass a header key X-API-Key
with the corresponding API key value with each request.
curlpythongo
curl https://ethereum-rest.api.mnemonichq.com/<endpoint> \
-H "X-API-Key: YOUR_API_KEY_HERE" \'
import requests # requires `pip install requests`
result = requests.get(
'https://ethereum-rest.api.mnemonichq.com/<endpoint>',
headers={'x-api-key': 'YOUR_API_KEY_HERE'}
).json()
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
reqUrl := "https://ethereum-rest.api.mnemonichq.com"
req, _ := http.NewRequest("GET", reqUrl, nil)
req.Header.Add("X-API-Key", "YOUR_API_KEY_HERE")
}