Skip to content

Updates common structures#560

Closed
smk762 wants to merge 8 commits intodevfrom
kdf/update/common-structures
Closed

Updates common structures#560
smk762 wants to merge 8 commits intodevfrom
kdf/update/common-structures

Conversation

@smk762
Copy link
Contributor

@smk762 smk762 commented Jul 30, 2025

  • Fixes NewAddressInfo and adds some examples.
  • Remove unused/duplicated object (AccountAddressInfo)

Much work has already been done towards improving the common structures in #511

To reduce future merge conflicts (and the size of that PR!) I'll migrate those changes into this branch.

Documentation Bot and others added 8 commits July 30, 2025 19:12
- Fix balance field description in NewAddressInfo common structure
- Update task::get_new_address::status response examples with correct balance format
- Update task::scan_for_new_addresses::status response examples with correct balance format
- Add examples showing both single-token and multi-token platform responses
- Balance field is a map/object with token tickers as keys, not a simple BalanceInfo object

The balance structure should be:
{
  "[TOKEN_TICKER]": {
    "spendable": "amount",
    "unspendable": "amount"
  }
}

Addresses issue where documentation showed incorrect balance format that didn't match actual API responses.
…cture-dev

fix: correct NewAddressInfo balance structure in dev branch API documentation
@smk762
Copy link
Contributor Author

smk762 commented Aug 6, 2025

closing in favor of #563

@smk762 smk762 closed this Aug 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant