List registered networks and their availability
GET
/v1/networks
package main
import ( "fmt" "net/http" "io")
func main() {
url := "https://api.feitpay.com/v1/networks?locale=en"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
}const url = 'https://api.feitpay.com/v1/networks?locale=en';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.feitpay.com/v1/networks?locale=en'Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”locale
string
Language of reference text (plan names and features, network caveats, disclaimers). Without it the best supported language of Accept-Language is used, else English. Codes, ids and amounts are never translated.
Responses
Section titled “Responses”All registered networks, including disabled ones.
Media typeapplication/json
object
object
required
string
data
required
Array<object>
object
id
required
string
object
required
string
name
required
string
family
required
string
chain_id
required
string | null
environment
required
string
status
required
string
observation_source
required
string
required_confirmations
required
integer
block_time_seconds
required
integer
explorer_tx_url_template
required
string | null
caveats
required
In the request’s language (locale query parameter or Accept-Language), English where untranslated.
Array<string>
Example
{ "object": "list", "data": [ { "id": "bitcoin:mainnet", "object": "network", "family": "utxo", "environment": "test", "status": "enabled", "observation_source": "simulator" } ]}Authenticated but not permitted. Any route may also answer request_blocked when abuse protection has blocked the client IP for a while.
Media typeapplication/json
object
error
required
object
type
required
string
code
required
Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.
string
message
required
Human-readable explanation in English.
string
param
string
request_id
required
string
Example
{ "error": { "type": "invalid_request_error" }}