curl --request GET \
--url https://app.d-sports.org/api/v1/engage/games/locker-singularity/ledger \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.d-sports.org/api/v1/engage/games/locker-singularity/ledger"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.d-sports.org/api/v1/engage/games/locker-singularity/ledger', 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://app.d-sports.org/api/v1/engage/games/locker-singularity/ledger",
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://app.d-sports.org/api/v1/engage/games/locker-singularity/ledger"
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://app.d-sports.org/api/v1/engage/games/locker-singularity/ledger")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.d-sports.org/api/v1/engage/games/locker-singularity/ledger")
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{
"ledger": {
"buzz": "<string>",
"lifetimeBuzz": "<string>",
"cumulativeBuzz": "<string>",
"playbooks": 123,
"generators": [
{
"generatorId": "rookie-card",
"owned": 123
}
],
"milestonesClaimed": [
"<string>"
],
"upgrades": [
"<string>"
],
"rings": 123,
"totalRings": 123,
"prestigeCount": 123,
"multiplier": 123,
"prestigeUnlocked": true,
"version": 123,
"lastSeenAt": "2023-11-07T05:31:56Z"
},
"accruedBuzz": "<string>",
"cappedHours": 123,
"lastSeenAt": "2023-11-07T05:31:56Z"
}Read the caller's locker-singularity idle ledger
First-ever read creates the ledger row. Otherwise credits offline accrual from the server lastSeenAt only (8h cap at 50% efficiency; client timestamps are never accepted) and returns . Toy currencies only: zero writes to DSC balances, Rep, PointsHistory, pack inventory, or marketplace state (d-sports-api#682). The locker-singularity Game row ships as LIVE: the catalog marks it playable=true. Ledger routes serve COMING_SOON rows normally; an absent Game row returns 404 GAME_UNKNOWN with the ledger untouched. Optional X-Client-Version is checked against minClientVersion; below-minimum returns 403 GAME_UPDATE_REQUIRED. Native mirror: locker-singularity spec on the native soft-idle-mini-game branch.
curl --request GET \
--url https://app.d-sports.org/api/v1/engage/games/locker-singularity/ledger \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.d-sports.org/api/v1/engage/games/locker-singularity/ledger"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.d-sports.org/api/v1/engage/games/locker-singularity/ledger', 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://app.d-sports.org/api/v1/engage/games/locker-singularity/ledger",
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://app.d-sports.org/api/v1/engage/games/locker-singularity/ledger"
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://app.d-sports.org/api/v1/engage/games/locker-singularity/ledger")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.d-sports.org/api/v1/engage/games/locker-singularity/ledger")
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{
"ledger": {
"buzz": "<string>",
"lifetimeBuzz": "<string>",
"cumulativeBuzz": "<string>",
"playbooks": 123,
"generators": [
{
"generatorId": "rookie-card",
"owned": 123
}
],
"milestonesClaimed": [
"<string>"
],
"upgrades": [
"<string>"
],
"rings": 123,
"totalRings": 123,
"prestigeCount": 123,
"multiplier": 123,
"prestigeUnlocked": true,
"version": 123,
"lastSeenAt": "2023-11-07T05:31:56Z"
},
"accruedBuzz": "<string>",
"cappedHours": 123,
"lastSeenAt": "2023-11-07T05:31:56Z"
}Authorizations
Clerk session token. Use Authorization: Bearer .
Headers
Native client semver. Below minClientVersion returns 403 GAME_UPDATE_REQUIRED.
Response
{ ledger, accruedBuzz, cappedHours, lastSeenAt }
locker-singularity idle ledger wire state. Buzz counters are BigInt serialized as decimal strings. Additive-only wire evolution (d-sports-api#682).
Show child attributes
Show child attributes
BigInt serialized as decimal string.
Was this page helpful?
