Skip to content

Conversation

unniznd
Copy link

@unniznd unniznd commented Jun 9, 2025

What have I changed

Fixed the get balance API to use the token instead of the public key as params

Why have I changed

Since get balance API uses token instead of public key.

@nandit123
Copy link
Member

/describe

Copy link

Title

fix: updated get balance API to use token instead of public key as params.


User description

What have I changed

Fixed the get balance API to use the token instead of the public key as params

Why have I changed

Since get balance API uses token instead of public key.


PR Type

Bug fix


Description

  • Fixed API endpoint authentication from public key to Bearer token

  • Updated code formatting and spacing consistency

  • Corrected curl command to use proper Authorization header


Diagram Walkthrough

flowchart LR
  A["Old API"] -- "publicKey param" --> B["Authentication"]
  C["New API"] -- "Bearer token" --> B["Authentication"]
  B --> D["Balance Data"]
Loading

File Walkthrough

Relevant files
Bug fix
get-balance.md
Fix authentication method for balance API                               

how-to/get-balance.md

  • Updated curl command to use Bearer token authentication instead of
    publicKey parameter
  • Improved JavaScript code formatting with consistent spacing and quotes
  • Added proper Authorization header format for API calls
+11/-5   

@unniznd
Copy link
Author

unniznd commented Jul 23, 2025

I found that the balance is currently determined using the token, not according to the public key passed as parameters. I have therefore modified the API portion to achieve this.
Ref

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.

2 participants