Crates.io | ens-offchain-resolver-gateway |
lib.rs | ens-offchain-resolver-gateway |
version | 0.1.4 |
source | src |
created_at | 2023-06-29 17:19:58.441167 |
updated_at | 2023-06-30 21:59:12.461895 |
description | ENS Offchain Resolver Gateway |
homepage | https://github.com/jeje/ens-offchain-resolver-gateway-rs |
repository | https://github.com/jeje/ens-offchain-resolver-gateway-rs |
max_upload_size | |
id | 903505 |
size | 153,358 |
ENS gateway implementation working in a similar way to the TypeScript gateway implementation.
Precompiled ENS gateways are available in releases page.
A Docker image is also available: https://hub.docker.com/r/jeje/ens-offchain-resolver-gateway-rs
Lastly a library is provided to ease implementation of custom gateways without duplicating much code. A good sample is the default implementation provided.
ENS Offchain Gateway server answering requests from CCIP-READ protocol (aka ERC-3668)
Usage: ens-gateway [OPTIONS] --privatekey <VALUE> <--json <FILE>>
Options:
-k, --privatekey <VALUE> private key of the wallet allowed to sign offchain ENS record results [env: PRIVATE_KEY]
-t, --ttl <VALUE> TTL for signatures [env: TTL=] [default: 300]
-i, --ip <VALUE> server IP to bind to -- change it to 0.0.0.0 for all interfaces [env: LISTEN_IP=] [default: 127.0.0.1]
-p, --port <VALUE> server port to bind to [env: LISTEN_PORT=] [default: 8080]
--json <FILE> Json file to use as a database
-h, --help Print help
-V, --version Print version
PRIVATE_KEY="<your private key>" docker run --rm \
-e PRIVATE_KEY=${PRIVATE_KEY} \
-p 8080:8080 \
-v .:/tmp:ro \
jeje/ens-offchain-resolver-gateway-rs \
--json /tmp/test.eth.json