Developer's Hub
v1.0
API Reference
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
GetBalance()
Copy Markdown
Open in ChatGPT
Open in Claude
Summary
| Route | Type | Example |
|---|---|---|
| /monitor/getbalance | POST | http://apinode.credits.com/api/monitor/getbalance |
Description
Gets the balance of a wallet.
Request
Request Structure
JSON
x
{// Parameters common for all requests// Wallet address"PublicKey": "public key in base 58 format",}Request Parameters
string: PublicKey - Wallet address (public key) in Base58
Response
JSON output depends on the request type and its success.
If there’s an error, request returns to the node basic Result:
- Success: False
- Message:
If successful, requested information is returned.
Response Structure
JSON
{"cs_balance": "decimal_value", // Balance in CS[ { “name”: “token_name”, // Name of a token “balance: “token_balance” // Token balance} ],“delegated_in”: "decimal_value",“delegated_out”: "decimal_value"}Example Code
Python
C#
C++
import requestsimport jsondef GetBalance(): url = 'http://apinode.credits.com/api/monitor/getbalance' headers = { 'Content-type': 'application/json' , 'Accept': 'application/json' , 'Content-Encoding': 'utf-8' } data = { "authKey": "" , "NetworkAlias":"Mainnet" , "PublicKey":"23Atj7oiDU8XK1Wc7rMHvFnKQM5LRpttyn4zV8rbKw83" } answer = requests.post(url, data=json.dumps(data), headers=headers) response = answer.json() print(response)GetBalance()Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on
Next to read:
GetWalletInfo()Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message