curl --request GET \
--url 'https://api.sprinter.tech/credit/v2/accounts/0xUSER/assets/usdc/operator'
import requests
response = requests.get("https://api.sprinter.tech/credit/v2/accounts/0xUSER/assets/usdc/operator")
print(response.json())
const response = await fetch(
"https://api.sprinter.tech/credit/v2/accounts/0xUSER/assets/usdc/operator"
);
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
resp, _ := http.Get("https://api.sprinter.tech/credit/v2/accounts/0xUSER/assets/usdc/operator")
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}
{
"data": {
"operator": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD18",
"receivers": [
"0xAbCdEf1234567890AbCdEf1234567890AbCdEf12",
"0x9876543210FeDcBa9876543210FeDcBa98765432"
]
}
}
Credit Info
Operator Status
Returns the current operator address and list of whitelisted credit receivers.
GET
/
credit
/
v2
/
accounts
/
{account}
/
assets
/
{asset}
/
operator
curl --request GET \
--url 'https://api.sprinter.tech/credit/v2/accounts/0xUSER/assets/usdc/operator'
import requests
response = requests.get("https://api.sprinter.tech/credit/v2/accounts/0xUSER/assets/usdc/operator")
print(response.json())
const response = await fetch(
"https://api.sprinter.tech/credit/v2/accounts/0xUSER/assets/usdc/operator"
);
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
resp, _ := http.Get("https://api.sprinter.tech/credit/v2/accounts/0xUSER/assets/usdc/operator")
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}
{
"data": {
"operator": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD18",
"receivers": [
"0xAbCdEf1234567890AbCdEf1234567890AbCdEf12",
"0x9876543210FeDcBa9876543210FeDcBa98765432"
]
}
}
The
asset parameter is the credit asset symbol — currently supported values are usdc and eure.curl --request GET \
--url 'https://api.sprinter.tech/credit/v2/accounts/0xUSER/assets/usdc/operator'
import requests
response = requests.get("https://api.sprinter.tech/credit/v2/accounts/0xUSER/assets/usdc/operator")
print(response.json())
const response = await fetch(
"https://api.sprinter.tech/credit/v2/accounts/0xUSER/assets/usdc/operator"
);
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
resp, _ := http.Get("https://api.sprinter.tech/credit/v2/accounts/0xUSER/assets/usdc/operator")
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}
{
"data": {
"operator": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD18",
"receivers": [
"0xAbCdEf1234567890AbCdEf1234567890AbCdEf12",
"0x9876543210FeDcBa9876543210FeDcBa98765432"
]
}
}
Machine-readable API spec: OpenAPI JSON | Swagger UI
⌘I