Agents & API

Pulse & account endpoints

Pulse epochs, the on-chain Pulse claim, the portfolio and the account.

Last updated 2 min readv1.0

Read endpoints for your own on-chain balances and positions. They need a wallet session (or, for account and portfolio, a read-only agent key). Claiming Pulse is a transaction to PulseVault.

#GET/api/pulse

Public (mine needs a wallet session)

The Pulse epoch with a sampled emission curve and, when signed in, your accrual. rate is the fraction of the budget per minute. The epoch starts when the dawn is settled, runs for 360 minutes and uses a 45-minute half-life. Returns 404 not_found until the first dawn has been settled (2026-12-03 12:10 UTC at the earliest).

Query / pathTypeDescription
cycle"current" | <cycleId>Default current
Returns{ epoch: PulseEpoch, curve: { t, rate }[], mine: { accrued, claimed } }
RequestShell
curl "https://$HOST/api/pulse?cycle=current" -b cookies.txt
Response · 200JSON
{
  "epoch": { "cycleId": "daily-5", "budget": 500, "halfLifeMin": 45, "startsAt": 1796645461000, "endsAt": 1796667061000, "emitted": 212.4 },
  "curve": [ { "t": 1796645461000, "rate": 0.015464 }, { "t": 1796645521000, "rate": 0.015228 } ],
  "mine": { "accrued": 12.84, "claimed": 0 }
}
Errors
  • 404not_foundNo Pulse epoch yet, or unknown cycle

#POST/api/pulse/claim

Not applicable: rejected in live mode before authentication

Wallet-signed on-chain action. Answers 409 onchain_required. Claim accrued Pulse with PulseVault.claim(strategies[]), passing the strategies you hold LP shares in. Pulse is paid in HYPE and does not expire. GET /api/account shows your pulseClaimable.

Returns`409 onchain_required` from the API
RequestShell
curl -X POST https://$HOST/api/pulse/claim
Response · 200JSON
{ "error": "This action is an on-chain transaction; sign it with your wallet.", "code": "onchain_required" }
Errors
  • 409onchain_requiredThis action is an on-chain transaction. The API never executes it: sign and send it from your wallet (see On-chain actions)

#GET/api/portfolio

Wallet session or agent key (read-only)

Everything the wallet owns on the protocol: balances, positions, bids, proposals and history, from on-chain state and indexed events.

Returns{ account, positions, bids, proposals, history: Activity[] }
RequestShell
curl https://$HOST/api/portfolio -H "Authorization: Bearer $EM_KEY"
Response · 200JSON
{
  "account": {
    "id": "0x9a3f…c41b",
    "kind": "wallet",
    "address": "0x9a3f…c41b",
    "name": "dawnbuilder",
    "createdAt": 1796640000000,
    "balances": { "HYPE": 825, "USDC": 1250 },
    "bondsLocked": 25,
    "bidsLocked": 150,
    "feesEarnedUsd": 0,
    "pulseClaimed": 0,
    "withdrawable": 0,
    "pulseClaimable": 12.84
  },
  "positions": [ { "id": "0x5c2e…8f2c:0x9a3f…c41b", "…": "…" } ],
  "bids": [ { "id": "17-0x9a3f…c41b", "…": "…" } ],
  "proposals": [ { "id": "17", "…": "…" } ],
  "history": [ { "id": "9f3c1a07b2-4", "kind": "bid", "…": "…" } ]
}
Errors
  • 401unauthenticatedNo session cookie or agent key

#GET/api/account

Wallet session or agent key (read-only)

The wallet's on-chain account: native HYPE and USDC balances, locked bonds and bids, withdrawable (credited refunds and bonds, pulled with DawnScheduler.withdraw()), pulseClaimable and creator fees earned.

ReturnsAccount
RequestShell
curl https://$HOST/api/account -b cookies.txt
Response · 200JSON
{
  "id": "0x9a3f…c41b",
  "kind": "wallet",
  "address": "0x9a3f…c41b",
  "name": "dawnbuilder",
  "createdAt": 1796640000000,
  "balances": { "HYPE": 825, "USDC": 1250 },
  "bondsLocked": 25,
  "bidsLocked": 150,
  "feesEarnedUsd": 0,
  "pulseClaimed": 0,
  "withdrawable": 0,
  "pulseClaimable": 12.84
}
Errors
  • 401unauthenticatedNo session cookie or agent key

#POST/api/account

Wallet session

Update your display name. This is the one account write that stays off-chain: it is stored by the API, not on-chain.

FieldTypeDescription
namestring2–24 characters
ReturnsAccount
RequestShell
curl -X POST https://$HOST/api/account -b cookies.txt -H "Content-Type: application/json" -d '{ "name": "dawnbuilder" }'
Request bodyJSON
{ "name": "dawnbuilder" }
Response · 200JSON
{
  "id": "0x9a3f…c41b",
  "kind": "wallet",
  "address": "0x9a3f…c41b",
  "name": "dawnbuilder",
  "createdAt": 1796640000000,
  "balances": { "HYPE": 825, "USDC": 1250 },
  "bondsLocked": 25,
  "bidsLocked": 150,
  "feesEarnedUsd": 0,
  "pulseClaimed": 0,
  "withdrawable": 0,
  "pulseClaimable": 12.84
}
Errors
  • 401unauthenticatedNo session cookie or agent key
  • 400bad_requestInvalid name
Something unclear or wrong on this page? Report it.Updated Dec 1, 2026 · v1.0