Bee Debug API (4.1.0)
Download OpenAPI specification:Download
A list of the currently provided debug interfaces to interact with the bee node
Response samples
- 200
- 500
{- "overlay": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f",
- "underlay": [
- "/ip4/127.0.0.1/tcp/1634/p2p/16Uiu2HAmTm17toLDaPYzRyjKn27iCB76yjKnJ5DjQXneFmifFvaX"
], - "ethereum": "36b7efd913ca4cf880b8eeac5093fa27b0825906",
- "publicKey": "02ab7473879005929d10ce7d4f626412dad9fe56b0a6622038931d26bd79abf0a4",
- "pssPublicKey": "02ab7473879005929d10ce7d4f626412dad9fe56b0a6622038931d26bd79abf0a4"
}
Response samples
- 200
{- "baseAddr": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f",
- "population": 0,
- "connected": 0,
- "timestamp": "string",
- "nnLowWatermark": 0,
- "depth": 0,
- "reachability": "Unknown",
- "networkAvailability": "Unknown",
- "bins": {
- "property1": {
- "population": 0,
- "connected": 0,
- "disconnectedPeers": [
- {
- "address": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f",
- "metrics": {
- "lastSeenTimestamp": 0,
- "sessionConnectionRetry": 0,
- "connectionTotalDuration": 0,
- "sessionConnectionDuration": 0,
- "sessionConnectionDirection": "string",
- "latencyEWMA": 0,
- "reachability": "string",
- "healthy": true
}
}
], - "connectedPeers": [
- {
- "address": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f",
- "metrics": {
- "lastSeenTimestamp": 0,
- "sessionConnectionRetry": 0,
- "connectionTotalDuration": 0,
- "sessionConnectionDuration": 0,
- "sessionConnectionDirection": "string",
- "latencyEWMA": 0,
- "reachability": "string",
- "healthy": true
}
}
]
}, - "property2": {
- "population": 0,
- "connected": 0,
- "disconnectedPeers": [
- {
- "address": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f",
- "metrics": {
- "lastSeenTimestamp": 0,
- "sessionConnectionRetry": 0,
- "connectionTotalDuration": 0,
- "sessionConnectionDuration": 0,
- "sessionConnectionDirection": "string",
- "latencyEWMA": 0,
- "reachability": "string",
- "healthy": true
}
}
], - "connectedPeers": [
- {
- "address": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f",
- "metrics": {
- "lastSeenTimestamp": 0,
- "sessionConnectionRetry": 0,
- "connectionTotalDuration": 0,
- "sessionConnectionDuration": 0,
- "sessionConnectionDirection": "string",
- "latencyEWMA": 0,
- "reachability": "string",
- "healthy": true
}
}
]
}
}
}
Set P2P welcome message
Authorizations:
Request Body schema: application/json
welcomeMessage | string |
Responses
Request samples
- Payload
{- "welcomeMessage": "string"
}
Response samples
- 200
- 400
- 500
{- "status": "ok",
- "version": "string",
- "apiVersion": "0.0.0",
- "debugApiVersion": "0.0.0"
}
Response samples
- 200
- 500
{- "peerData": {
- "property1": {
- "balance": "1000000000000000000",
- "thresholdReceived": "1000000000000000000",
- "thresholdGiven": "1000000000000000000",
- "surplusBalance": "1000000000000000000",
- "reservedBalance": "1000000000000000000",
- "shadowReservedBalance": "1000000000000000000",
- "ghostBalance": "1000000000000000000"
}, - "property2": {
- "balance": "1000000000000000000",
- "thresholdReceived": "1000000000000000000",
- "thresholdGiven": "1000000000000000000",
- "surplusBalance": "1000000000000000000",
- "reservedBalance": "1000000000000000000",
- "shadowReservedBalance": "1000000000000000000",
- "ghostBalance": "1000000000000000000"
}
}
}
Get the balances with a specific peer including prepaid services
Authorizations:
path Parameters
address required | string (SwarmAddress) ^[A-Fa-f0-9]{64}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f Swarm address of peer |
Responses
Response samples
- 200
- 400
- 500
{- "peer": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f",
- "balance": "1000000000000000000"
}
Get the past due consumption balance with a specific peer
Authorizations:
path Parameters
address required | string (SwarmAddress) ^[A-Fa-f0-9]{64}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f Swarm address of peer |
Responses
Response samples
- 200
- 400
- 500
{- "peer": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f",
- "balance": "1000000000000000000"
}
Get last cashout action for the peer
Authorizations:
path Parameters
peer-id required | string (SwarmAddress) ^[A-Fa-f0-9]{64}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f Swarm address of peer |
Responses
Response samples
- 200
- 404
- 500
{- "peer": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f",
- "lastCashedCheque": {
- "beneficiary": "36b7efd913ca4cf880b8eeac5093fa27b0825906",
- "chequebook": "36b7efd913ca4cf880b8eeac5093fa27b0825906",
- "payout": "1000000000000000000"
}, - "transactionHash": "0x780cb6a37d1946978087896e1e489c37e30fe3e329510fff8d97360f73529f5a",
- "result": {
- "recipient": "36b7efd913ca4cf880b8eeac5093fa27b0825906",
- "lastPayout": "1000000000000000000",
- "bounced": true
}, - "uncashedAmount": "1000000000000000000"
}
Cashout the last cheque for the peer
Authorizations:
path Parameters
peer-id required | string (SwarmAddress) ^[A-Fa-f0-9]{64}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f Swarm address of peer |
header Parameters
gas-price | integer (GasPrice) Gas price for transaction |
gas-limit | integer (GasLimit) [ 0 .. 18446744073709552000 ] Gas limit for transaction |
Responses
Response samples
- 201
- 404
- 429
- 500
{- "transactionHash": "0x780cb6a37d1946978087896e1e489c37e30fe3e329510fff8d97360f73529f5a"
}
Get last cheques for the peer
Authorizations:
path Parameters
peer-id required | string (SwarmAddress) ^[A-Fa-f0-9]{64}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f Swarm address of peer |
Responses
Response samples
- 200
- 404
- 500
{- "peer": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f",
- "lastreceived": {
- "beneficiary": "36b7efd913ca4cf880b8eeac5093fa27b0825906",
- "chequebook": "36b7efd913ca4cf880b8eeac5093fa27b0825906",
- "payout": "1000000000000000000"
}, - "lastsent": {
- "beneficiary": "36b7efd913ca4cf880b8eeac5093fa27b0825906",
- "chequebook": "36b7efd913ca4cf880b8eeac5093fa27b0825906",
- "payout": "1000000000000000000"
}
}
Response samples
- 200
- 404
- 500
{- "lastcheques": [
- {
- "peer": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f",
- "lastreceived": {
- "beneficiary": "36b7efd913ca4cf880b8eeac5093fa27b0825906",
- "chequebook": "36b7efd913ca4cf880b8eeac5093fa27b0825906",
- "payout": "1000000000000000000"
}, - "lastsent": {
- "beneficiary": "36b7efd913ca4cf880b8eeac5093fa27b0825906",
- "chequebook": "36b7efd913ca4cf880b8eeac5093fa27b0825906",
- "payout": "1000000000000000000"
}
}
]
}
Deposit tokens from overlay address into chequebook
Authorizations:
query Parameters
amount required | integer amount of tokens to deposit |
header Parameters
gas-price | integer (GasPrice) Gas price for transaction |
Responses
Response samples
- 201
- 400
- 500
{- "transactionHash": "0x780cb6a37d1946978087896e1e489c37e30fe3e329510fff8d97360f73529f5a"
}
Withdraw tokens from the chequebook to the overlay address
Authorizations:
query Parameters
amount required | integer amount of tokens to withdraw |
header Parameters
gas-price | integer (GasPrice) Gas price for transaction |
Responses
Response samples
- 201
- 400
- 500
{- "transactionHash": "0x780cb6a37d1946978087896e1e489c37e30fe3e329510fff8d97360f73529f5a"
}
Check if chunk at address exists locally
Authorizations:
path Parameters
address required | string (SwarmAddress) ^[A-Fa-f0-9]{64}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f Swarm address of chunk |
Responses
Response samples
- 200
- 400
- 404
{- "message": "string",
- "code": 0
}
Get amount of sent and received from settlements with a peer
Authorizations:
path Parameters
address required | string (SwarmAddress) ^[A-Fa-f0-9]{64}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f Swarm address of peer |
Responses
Response samples
- 200
- 400
- 500
{- "peer": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f",
- "received": 0,
- "sent": 0
}
Response samples
- 200
- 500
{- "totalReceived": 0,
- "totalSent": 0,
- "settlements": [
- {
- "peer": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f",
- "received": 0,
- "sent": 0
}
]
}
Get time based settlements with all known peers and total amount sent or received
Authorizations:
Responses
Response samples
- 200
- 500
{- "totalReceived": 0,
- "totalSent": 0,
- "settlements": [
- {
- "peer": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f",
- "received": 0,
- "sent": 0
}
]
}
Response samples
- 200
- 400
- 500
{- "minimumGasFunds": "1000000000000000000",
- "hasSufficientFunds": true,
- "isFrozen": true,
- "isFullySynced": true,
- "isHealthy": true,
- "phase": "string",
- "round": 0,
- "lastWonRound": 0,
- "lastPlayedRound": 0,
- "lastFrozenRound": 0,
- "lastSelectedRound": 0,
- "lastSampleDuration": "5.0018ms",
- "block": 0,
- "reward": "1000000000000000000",
- "fees": "1000000000000000000"
}
Response samples
- 200
- 500
{- "bzzBalance": "1000000000000000000",
- "nativeTokenBalance": "1000000000000000000",
- "chainID": 0,
- "chequebookContractAddress": "36b7efd913ca4cf880b8eeac5093fa27b0825906",
- "walletAddress": "36b7efd913ca4cf880b8eeac5093fa27b0825906"
}
Response samples
- 200
- 500
{- "pendingTransactions": [
- {
- "transactionHash": "0x780cb6a37d1946978087896e1e489c37e30fe3e329510fff8d97360f73529f5a",
- "to": "36b7efd913ca4cf880b8eeac5093fa27b0825906",
- "nonce": 0,
- "gasPrice": "1000000000000000000",
- "gasLimit": 0,
- "gasTipCap": "1000000000000000000",
- "gasTipBoost": 0,
- "gasFeeCap": "1000000000000000000",
- "data": "string",
- "created": "2020-06-11T11:26:42.6969797+02:00",
- "description": "string",
- "value": "1000000000000000000"
}
]
}
Get information about a sent transaction
Authorizations:
path Parameters
txHash required | string (TransactionHash) ^0x[A-Fa-f0-9]{64}$ Example: 0x780cb6a37d1946978087896e1e489c37e30fe3e329510fff8d97360f73529f5a Hash of the transaction |
Responses
Response samples
- 200
- 404
- 500
{- "transactionHash": "0x780cb6a37d1946978087896e1e489c37e30fe3e329510fff8d97360f73529f5a",
- "to": "36b7efd913ca4cf880b8eeac5093fa27b0825906",
- "nonce": 0,
- "gasPrice": "1000000000000000000",
- "gasLimit": 0,
- "gasTipCap": "1000000000000000000",
- "gasTipBoost": 0,
- "gasFeeCap": "1000000000000000000",
- "data": "string",
- "created": "2020-06-11T11:26:42.6969797+02:00",
- "description": "string",
- "value": "1000000000000000000"
}
Rebroadcast existing transaction
Authorizations:
path Parameters
txHash required | string (TransactionHash) ^0x[A-Fa-f0-9]{64}$ Example: 0x780cb6a37d1946978087896e1e489c37e30fe3e329510fff8d97360f73529f5a Hash of the transaction |
Responses
Response samples
- 200
- 404
- 500
{- "transactionHash": "0x780cb6a37d1946978087896e1e489c37e30fe3e329510fff8d97360f73529f5a"
}
Cancel existing transaction
Authorizations:
path Parameters
txHash required | string (TransactionHash) ^0x[A-Fa-f0-9]{64}$ Example: 0x780cb6a37d1946978087896e1e489c37e30fe3e329510fff8d97360f73529f5a Hash of the transaction |
header Parameters
gas-price | integer (GasPrice) Gas price for transaction |
Responses
Response samples
- 200
- 404
- 500
{- "transactionHash": "0x780cb6a37d1946978087896e1e489c37e30fe3e329510fff8d97360f73529f5a"
}
Response samples
- 200
- 404
{- "stamps": [
- {
- "batchID": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f",
- "utilization": 0,
- "usable": true,
- "label": "string",
- "depth": 0,
- "amount": "1000000000000000000",
- "bucketDepth": 0,
- "blockNumber": 0,
- "immutableFlag": true,
- "exists": true,
- "batchTTL": 0
}
]
}
Get an individual postage batch status
Authorizations:
path Parameters
batch_id required | string (BatchID) ^[A-Fa-f0-9]{64}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f Swarm address of the stamp |
Responses
Response samples
- 200
- 400
- 404
{- "batchID": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f",
- "utilization": 0,
- "usable": true,
- "label": "string",
- "depth": 0,
- "amount": "1000000000000000000",
- "bucketDepth": 0,
- "blockNumber": 0,
- "immutableFlag": true,
- "exists": true,
- "batchTTL": 0
}
Get extended bucket data of a batch
Authorizations:
path Parameters
batch_id required | string (BatchID) ^[A-Fa-f0-9]{64}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f Swarm address of the stamp |
Responses
Response samples
- 200
- 400
- 404
{- "depth": 0,
- "bucketDepth": 0,
- "bucketUpperBound": 0,
- "buckets": [
- {
- "bucketID": 0,
- "collisions": 0
}
]
}
Buy a new postage batch.
Be aware, this endpoint creates an on-chain transactions and transfers BZZ from the node's Ethereum account and hence directly manipulates the wallet balance!
Authorizations:
path Parameters
amount required | string (BigInt) Example: 1000000000000000000 Amount of BZZ added that the postage batch will have. |
depth required | integer Batch depth which specifies how many chunks can be signed with the batch. It is a logarithm. Must be higher than default bucket depth (16) |
query Parameters
label | string An optional label for this batch |
header Parameters
immutable | boolean |
Responses
Response samples
- 201
- 400
- 429
- 500
{- "batchID": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f",
- "txHash": "0x780cb6a37d1946978087896e1e489c37e30fe3e329510fff8d97360f73529f5a"
}
Top up an existing postage batch.
Be aware, this endpoint creates on-chain transactions and transfers BZZ from the node's Ethereum account and hence directly manipulates the wallet balance!
Authorizations:
path Parameters
batch_id required | string (BatchID) ^[A-Fa-f0-9]{64}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f Batch ID to top up |
amount required | integer Amount of BZZ per chunk to top up to an existing postage batch. |
Responses
Response samples
- 202
- 400
- 402
- 429
- 500
{- "batchID": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f",
- "txHash": "0x780cb6a37d1946978087896e1e489c37e30fe3e329510fff8d97360f73529f5a"
}
Dilute an existing postage batch.
Be aware, this endpoint creates on-chain transactions and transfers BZZ from the node's Ethereum account and hence directly manipulates the wallet balance!
Authorizations:
path Parameters
batch_id required | string (BatchID) ^[A-Fa-f0-9]{64}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f Batch ID to dilute |
depth required | integer New batch depth. Must be higher than the previous depth. |
Responses
Response samples
- 202
- 400
- 429
- 500
{- "batchID": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f",
- "txHash": "0x780cb6a37d1946978087896e1e489c37e30fe3e329510fff8d97360f73529f5a"
}
Response samples
- 200
{- "batches": [
- {
- "batchID": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f",
- "value": "1000000000000000000",
- "start": 0,
- "depth": 0,
- "bucketDepth": 0,
- "immutableFlag": true,
- "batchTTL": 0,
- "owner": "36b7efd913ca4cf880b8eeac5093fa27b0825906",
- "storageRadius": 0
}
]
}
Deposit some amount for staking.
Be aware, this endpoint creates an on-chain transactions and transfers BZZ from the node's Ethereum account and hence directly manipulates the wallet balance.
Authorizations:
path Parameters
amount | string Amount of BZZ added that will be deposited for staking. |
header Parameters
gas-price | integer (GasPrice) Gas price for transaction |
gas-limit | integer (GasLimit) [ 0 .. 18446744073709552000 ] Gas limit for transaction |
Responses
Response samples
- 400
- 500
{- "code": 0,
- "message": "string",
- "reasons": [
- "string"
]
}
Withdraw all staked amount.
Be aware, this endpoint creates an on-chain transactions and transfers BZZ from the node's Ethereum account and hence directly manipulates the wallet balance.
Authorizations:
header Parameters
gas-price | integer (GasPrice) Gas price for transaction |
gas-limit | integer (GasLimit) [ 0 .. 18446744073709552000 ] Gas limit for transaction |
Responses
Response samples
- 400
- 500
{- "code": 0,
- "message": "string",
- "reasons": [
- "string"
]
}
Response samples
- 200
- 400
{- "tree": {
- "property1": {
- "/": { },
- "+": "warning|one/name[0][]>>824634860360"
}, - "property2": {
- "/": { },
- "+": "warning|one/name[0][]>>824634860360"
}
}, - "loggers": [
- {
- "logger": "string",
- "verbosity": "string",
- "subsystem": "string",
- "id": "string"
}
]
}
Get all available loggers that match the specified expression.
Authorizations:
path Parameters
exp required | string (LoggerExp) ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[... Example: b25lL25hbWU= Regular expression or a subsystem that matches the logger(s). |
Responses
Response samples
- 200
- 400
{- "tree": {
- "property1": {
- "/": { },
- "+": "warning|one/name[0][]>>824634860360"
}, - "property2": {
- "/": { },
- "+": "warning|one/name[0][]>>824634860360"
}
}, - "loggers": [
- {
- "logger": "string",
- "verbosity": "string",
- "subsystem": "string",
- "id": "string"
}
]
}
Set logger(s) verbosity level.
Authorizations:
path Parameters
exp required | string (LoggerExp) ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[... Example: b25lL25hbWU= Regular expression or a subsystem that matches the logger(s). |
Responses
Response samples
- 400
{- "code": 0,
- "message": "string",
- "reasons": [
- "string"
]
}
Response samples
- 200
- 400
{- "peer": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f",
- "beeMode": "light",
- "proximity": 0,
- "reserveSize": 0,
- "pullsyncRate": 0,
- "storageRadius": 0,
- "connectedPeers": 0,
- "neighborhoodSize": 0,
- "requestFailed": true,
- "BatchCommitment": 0,
- "isReachable": true
}
Response samples
- 200
- 400
{- "stamps": [
- {
- "peer": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f",
- "beeMode": "light",
- "proximity": 0,
- "reserveSize": 0,
- "pullsyncRate": 0,
- "storageRadius": 0,
- "connectedPeers": 0,
- "neighborhoodSize": 0,
- "requestFailed": true,
- "BatchCommitment": 0,
- "isReachable": true
}
]
}