schwab_get_account_numbers
List Schwab account numbers and their hash identifiers.
Call after completing OAuth. Returns accounts with hash values
needed for brokerage data tools. Then call
update_patron_credential(field="account_hash", value=<hash>)
to set your preferred account.
Free (no api_sats deducted) but proof-gated: the caller must
prove Schnorr-control of npub via request_npub_proof +
receive_npub_proof first, then pass the resulting token here.
Without the proof check, an attacker who knew a patron's public
npub could fetch that patron's Schwab account hashes (IDOR).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| npub | No | Required. Your Nostr public key (npub1...) for credit billing. | |
| dpop_token | No | Schnorr proof token issued by request/receive_npub_proof for capability ``get_account_numbers``. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |