An open API service indexing awesome lists of open source software.

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

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'
```