Skip to main content
GET
Bandwidth Refill Quote

Bandwidth Refill Quote

Returns what one refill of add_volume bandwidth for duration costs your account: the price a rule with these settings pays per refill, fixed fee included. Nothing is created or charged. Requires the view scope. The price depends on how you call it. Called with an API key, it is the price of a rule created with that API key; from the website, the price of a rule created on the website. It is the price at the moment of the request, and it does not include activating an address that does not exist on-chain yet — the first refill adds that.

Query parameters

number
required
Bandwidth per refill. From 350 to 100,000, the same range as when creating a rule.
string
default:"1h"
Rental duration of each refill: 1h or 1d.

Response

number
The volume you asked about
string
The duration you asked about — 1h or 1d
string
Full price of one refill for your account, fixed fee included

Example

Response

Errors

A validation error comes in the framework’s format, with detail as an array: