Return the wallet status
GET/wallet/status
Return the wallet status
Request
Header Parameters
x-wallet-id stringrequired
Defines the key of the wallet on which the request will be executed.
Responses
- 200
A JSON with general wallet info
- application/json
- Schema
- closed
- connecting
- syncing
- ready
- wallet-not-ready
- no-wallet-id
- invalid-wallet-id
Schema
any
Wallet is closed
{
"statusCode": 0,
"statusMessage": "Closed",
"network": "mainnet",
"serverUrl": "https://node2.mainnet.hathor.network/v1a/",
"serverInfo": null
}
Wallet is connecting
{
"statusCode": 1,
"statusMessage": "Connecting",
"network": "mainnet",
"serverUrl": "https://node2.mainnet.hathor.network/v1a/",
"serverInfo": null
}
Wallet is syncing
{
"statusCode": 2,
"statusMessage": "Syncing",
"network": "mainnet",
"serverUrl": "https://node2.mainnet.hathor.network/v1a/",
"serverInfo": {
"version": "0.29.0",
"network": "mainnet",
"min_weight": 14,
"min_tx_weight": 14,
"min_tx_weight_coefficient": 1.6,
"min_tx_weight_k": 100,
"token_deposit_percentage": 0.01
}
}
Wallet is ready
{
"statusCode": 3,
"statusMessage": "Ready",
"network": "mainnet",
"serverUrl": "https://node2.mainnet.hathor.network/v1a/",
"serverInfo": {
"version": "0.29.0",
"network": "mainnet",
"min_weight": 14,
"min_tx_weight": 14,
"min_tx_weight_coefficient": 1.6,
"min_tx_weight_k": 100,
"token_deposit_percentage": 0.01
}
}
Wallet is not ready yet
{
"success": false,
"message": "Wallet is not ready.",
"state": 1
}
No wallet id parameter
{
"success": false,
"message": "Parameter 'wallet-id' is required."
}
Wallet id parameter is invalid
{
"success": false,
"message": "Invalid wallet-id parameter."
}
Loading...