https://github.com/application-research/delta-sp-selection
SP Selection using Storage.Market
https://github.com/application-research/delta-sp-selection
Last synced: 25 days ago
JSON representation
SP Selection using Storage.Market
- Host: GitHub
- URL: https://github.com/application-research/delta-sp-selection
- Owner: application-research
- Created: 2023-03-28T17:19:46.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-01T13:44:37.000Z (about 3 years ago)
- Last Synced: 2025-01-25T04:11:10.391Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 101 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Delta Storage Provider Selection
Simple filecoin storage provider selection.
- file size (min and max piece size)
- verified FIL (soon)
- geo location (soon)
- success rate throttle (soon)
## Running the app
```
go build -o simple-sp-selection
./simple-sp-selection
```
## Test the APIs
### Get a random SP within a given piece size range
```
curl --location 'http://localhost:8080/api/providers?size_bytes=256'
```
### Get a random SP within a given piece size range and IP address
```
curl --location 'http://localhost:8080/api/providers?size_bytes=256&source_ip=108.89.91.150'
```
## Test the live version
```
curl --location --request GET 'https://sp-select.delta.store/api/providers?size_bytes=256'
curl --location --request GET 'https://sp-select.delta.store/api/providers?size_bytes=256&source_ip=108.89.91.150'
```