List networks
curl --request GET \
--url https://api.enterprise.sandbox.uphold.com/core/networks \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.enterprise.sandbox.uphold.com/core/networks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.enterprise.sandbox.uphold.com/core/networks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.enterprise.sandbox.uphold.com/core/networks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.enterprise.sandbox.uphold.com/core/networks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.enterprise.sandbox.uphold.com/core/networks")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enterprise.sandbox.uphold.com/core/networks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"networks": [
{
"code": "bitcoin",
"name": "Bitcoin",
"type": "crypto",
"logo": "https://cdn.uphold.com/assets/BTC.svg",
"exampleAddress": "tb1qgu0gacn9pqpnvlqclvdwyz4gfgxz8pptfz4emt",
"explorer": {
"addressUrl": "https://mempool.space/testnet/tx/<hash>",
"txUrl": "https://mempool.space/testnet/address/<hash>"
}
},
{
"code": "xrp-ledger",
"name": "XRP Ledger",
"type": "crypto",
"logo": "https://cdn.uphold.com/assets/XRP.svg",
"exampleAddress": "rPjTZfLP3Qxwwd2xvXSALJzEFmmf7bEYgh",
"reference": {
"type": "destination-tag"
},
"explorer": {
"addressUrl": "https://testnet.xrpl.org/accounts/<hash>,",
"txUrl": "https://testnet.xrpl.org/transactions/<hash>"
}
},
{
"code": "visa",
"name": "VISA",
"type": "card"
},
{
"code": "mastercard",
"name": "Mastercard",
"type": "card"
},
{
"code": "ach",
"name": "Automated Clearing House",
"type": "bank"
},
{
"code": "fps",
"name": "Faster Payment System",
"reference": {
"type": "payment-reference"
},
"type": "bank"
},
{
"code": "paypal",
"name": "PayPal",
"type": "apm"
}
]
}Assets
List networks
List networks supported by the platform.
GET
/
core
/
networks
List networks
curl --request GET \
--url https://api.enterprise.sandbox.uphold.com/core/networks \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.enterprise.sandbox.uphold.com/core/networks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.enterprise.sandbox.uphold.com/core/networks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.enterprise.sandbox.uphold.com/core/networks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.enterprise.sandbox.uphold.com/core/networks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.enterprise.sandbox.uphold.com/core/networks")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enterprise.sandbox.uphold.com/core/networks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"networks": [
{
"code": "bitcoin",
"name": "Bitcoin",
"type": "crypto",
"logo": "https://cdn.uphold.com/assets/BTC.svg",
"exampleAddress": "tb1qgu0gacn9pqpnvlqclvdwyz4gfgxz8pptfz4emt",
"explorer": {
"addressUrl": "https://mempool.space/testnet/tx/<hash>",
"txUrl": "https://mempool.space/testnet/address/<hash>"
}
},
{
"code": "xrp-ledger",
"name": "XRP Ledger",
"type": "crypto",
"logo": "https://cdn.uphold.com/assets/XRP.svg",
"exampleAddress": "rPjTZfLP3Qxwwd2xvXSALJzEFmmf7bEYgh",
"reference": {
"type": "destination-tag"
},
"explorer": {
"addressUrl": "https://testnet.xrpl.org/accounts/<hash>,",
"txUrl": "https://testnet.xrpl.org/transactions/<hash>"
}
},
{
"code": "visa",
"name": "VISA",
"type": "card"
},
{
"code": "mastercard",
"name": "Mastercard",
"type": "card"
},
{
"code": "ach",
"name": "Automated Clearing House",
"type": "bank"
},
{
"code": "fps",
"name": "Faster Payment System",
"reference": {
"type": "payment-reference"
},
"type": "bank"
},
{
"code": "paypal",
"name": "PayPal",
"type": "apm"
}
]
}Authorizations
OAuth 2.0 authentication.
Query Parameters
Filter networks by type.
Maximum array length:
25The type of the network.
Available options:
crypto, card, bank, apm Minimum string length:
1Response
200 - application/json
Networks retrieved.
networks
(Crypto · object | Card · object | Bank · object | Alternative payment method · object)[]
required
- Crypto
- Card
- Bank
- Alternative payment method
Show child attributes
Show child attributes
Was this page helpful?
⌘I