curl --request GET \
--url 'https://api.sprinter.tech/credit/v2/accounts/0xUSER/assets/usdc/operator/auto-topup/config?receiver=0xRECEIVER'
import requests
response = requests.get(
"https://api.sprinter.tech/credit/v2/accounts/0xUSER/assets/usdc/operator/auto-topup/config",
params={"receiver": "0xRECEIVER"}
)
print(response.json())
const response = await fetch(
"https://api.sprinter.tech/credit/v2/accounts/0xUSER/assets/usdc/operator/auto-topup/config?receiver=0xRECEIVER"
);
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/auto-topup/config?receiver=0xRECEIVER")
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}
{
"config": {
"threshold": "500000000",
"targetBalance": "1000000000",
"healthFactor": "10000"
}
}
Credit Advanced
Get Auto Top-Up Config
Returns the current auto top-up configuration for a given receiver.
GET
/
credit
/
v2
/
accounts
/
{account}
/
assets
/
{asset}
/
operator
/
auto-topup
/
config
curl --request GET \
--url 'https://api.sprinter.tech/credit/v2/accounts/0xUSER/assets/usdc/operator/auto-topup/config?receiver=0xRECEIVER'
import requests
response = requests.get(
"https://api.sprinter.tech/credit/v2/accounts/0xUSER/assets/usdc/operator/auto-topup/config",
params={"receiver": "0xRECEIVER"}
)
print(response.json())
const response = await fetch(
"https://api.sprinter.tech/credit/v2/accounts/0xUSER/assets/usdc/operator/auto-topup/config?receiver=0xRECEIVER"
);
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/auto-topup/config?receiver=0xRECEIVER")
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}
{
"config": {
"threshold": "500000000",
"targetBalance": "1000000000",
"healthFactor": "10000"
}
}
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/auto-topup/config?receiver=0xRECEIVER'
import requests
response = requests.get(
"https://api.sprinter.tech/credit/v2/accounts/0xUSER/assets/usdc/operator/auto-topup/config",
params={"receiver": "0xRECEIVER"}
)
print(response.json())
const response = await fetch(
"https://api.sprinter.tech/credit/v2/accounts/0xUSER/assets/usdc/operator/auto-topup/config?receiver=0xRECEIVER"
);
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/auto-topup/config?receiver=0xRECEIVER")
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}
{
"config": {
"threshold": "500000000",
"targetBalance": "1000000000",
"healthFactor": "10000"
}
}
Machine-readable API spec: OpenAPI JSON | Swagger UI
⌘I