We need to implement the /get_balance endpoint in the Vault backend. This endpoint is responsible for retrieving the current USD balance of an account.
Details
Method: GET
Path: /get_balance
Summary: Get the current USD balance of an account.
Request Parameters:
address: The Ethereum address for which the balance is to be retrieved.
Response:
Status Code: 200
Description: Balance of the account.
Content Type: application/json
Body:
{
"balance": "0x1234567890abcdef"
}
Notes:
The balance is returned as a hexadecimal string representing the USD balance of the account.
Description
We need to implement the
/get_balance
endpoint in the Vault backend. This endpoint is responsible for retrieving the current USD balance of an account.Details
Request Parameters:
Response:
Notes:
The balance is returned as a hexadecimal string representing the USD balance of the account.
Example
Tasks:
/get_balance
endpoint.