-
Notifications
You must be signed in to change notification settings - Fork 42
getBlobbers
Piers Shepperson edited this page Jan 19, 2022
·
1 revision
Depreciated. CLI command zbox ls-blobbers
Returns the blobber table
type Blobber struct {
gorm.Model
BlobberID string `json:"id" gorm:"uniqueIndex"`
BaseURL string `json:"url"`
// geolocation
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
// terms
ReadPrice int64 `json:"read_price"`
WritePrice int64 `json:"write_price"`
MinLockDemand float64 `json:"min_lock_demand"`
MaxOfferDuration string `json:"max_offer_duration"`
ChallengeCompletionTime string `json:"challenge_completion_time"`
Capacity int64 `json:"capacity"` // total blobber capacity
Used int64 `json:"used"` // allocated capacity
LastHealthCheck int64 `json:"last_health_check"`
// stake_pool_settings
DelegateWallet string `json:"delegate_wallet"`
MinStake int64 `json:"min_stake"`
MaxStake int64 `json:"max_stake"`
NumDelegates int `json:"num_delegates"`
ServiceCharge float64 `json:"service_charge"`
WriteMarkers []WriteMarker `gorm:"foreignKey:BlobberID;references:BlobberID"`
ReadMarkers []ReadMarker `gorm:"foreignKey:BlobberID;references:BlobberID"`
}
This is potentially a lot of information to return depending on the number of blobbers. Expect this endpoint to change to handle this.
This information is currently returned in the form of a StorageNode to maintain backward compatibility.
- Home
- Introduction
- Architecture
- 0Chain Smart Contracts
- Help