A Chainlink adapter for the bchd
gRPC API.
BCHD_GRPC_URL
- the URL to thebchd
gRPC server (default:bchd.greyh.at:8335
)BCHD_CERT_PATH
- the path to the TLS client certificate for thebchd
gRPC server (leave blank for servers with CA-signed certificates)BCHD_SERVER_OVERRIDE
- for testing purposes only, can be used to override virtual host name in requests
The bchd
gRPC adapter exposes the following capabilities:
Get info about the mempool.
proc
-mempoolInfo
Get info about all of the transactions currently in the memory pool.
proc
-mempool
fullTrx
- if provided value converts tofalse
, the response will only contain transaction hashes, otherwise, it will contain full transactions
Get info about the blockchain including most recent block hash and height.
proc
-blockchainInfo
This adapter will throw errors in the following scenarios:
- It is not possible to create a TLS certificate using the path provided in the
BCHD_CERT_PATH
environment variable. - It is not possible to parse the URL provided in the
BCHD_GRPC_URL
environment variable. - It is not possible to connect to the
bchd
gRPC server.
go test
go build -o cl-bchd-grpc
Zip the binary
zip cl-bchd-grpc.zip cl-bchd-grpc
Then upload to AWS Lambda and use cl-bchd-grpc
as the handler.