Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danforbes/cl-scorechain-eth-adapter
Chainlink adapter for the Scorechain Ethereum API
https://github.com/danforbes/cl-scorechain-eth-adapter
Last synced: 20 days ago
JSON representation
Chainlink adapter for the Scorechain Ethereum API
- Host: GitHub
- URL: https://github.com/danforbes/cl-scorechain-eth-adapter
- Owner: danforbes
- License: mit
- Created: 2019-09-26T21:37:32.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-22T06:19:30.000Z (about 5 years ago)
- Last Synced: 2024-10-18T08:38:10.053Z (about 1 month ago)
- Language: Go
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chainlink Scorechain Ethereum Adapter
Chainlink adapter for the [Scorechain Ethereum API](https://ethereum.scorechain.com/api_doc/).
## Environment Variables
* `SC_ETH_TOKEN` - token for the Scorechain Ethereum API
* `SC_ETH_URL` - the URL for the Scorechain Ethereum API## Usage
The Scorechain Ethereum Adapter exposes the following capabilities:
### [Get Status](https://ethereum.scorechain.com/api_doc/#/blockchain%20data/getSystemStatus)
Get the status of the Scorechain Ethereum API.
#### Params
* `endpoint` - `get-status`
### [Get Transaction](https://ethereum.scorechain.com/api_doc/#/blockchain%20data/getTransaction)
Get a transaction from the Scorechain Ethereum API.
#### Params
* `endpoint` - `get-trx`
* `hash` - hash of the desired transaction `string`### [Get Scoring](https://ethereum.scorechain.com/api_doc/#/scoring/getAddressScoring)
Get scoring of incoming or outgoing funds of an address from the Scorechain Ethereum API.
#### Params
* `endpoint` - `get-scoring`
* `address` - address to be scored `string`
* `direction` - direction of the scoring `{incoming|outgoing}`
* `depth` - depth of the analysis `[1-10]` (default: `3`)## Test
```
go test
```## Build
```
go build -o ./build/cl-sc-eth
```## Lambda
Zip the binary
```
zip cl-sc-eth.zip ./build/cl-sc-eth
```Then upload to AWS Lambda and use `cl-sc-eth` as the handler.