Bee API (7.2.0)
Download OpenAPI specification:Download
A list of the currently provided Interfaces to interact with the swarm, implementing file operations and sending messages
Create grantee list
Authorizations:
header Parameters
swarm-postage-batch-id required | object (SwarmPostageBatchId) ID of Postage Batch that is used to upload data with |
swarm-tag | object (SwarmTagParameter) Associate upload with an existing Tag UID |
swarm-pin | object (SwarmPinParameter) Represents if the uploaded data should be also locally pinned on the node. |
swarm-deferred-upload | object (SwarmDeferredUpload) Determines if the uploaded data should be sent to the network immediately or in a deferred fashion. By default the upload will be direct. |
swarm-act-history-address | object (SwarmActHistoryAddress) ACT history reference address |
Request Body schema: application/jsonrequired
grantees | Array of strings (PublicKey) [^[A-Fa-f0-9]{66}$] |
Responses
Request samples
- Payload
{- "grantees": [
- "02ab7473879005929d10ce7d4f626412dad9fe56b0a6622038931d26bd79abf0a4"
]
}
Response samples
- 201
- 400
- 500
{- "ref": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f2d2810619d29b5dbefd5d74abce25d58b81b251baddb9c3871cf0d6967deaae2",
- "historyref": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f2d2810619d29b5dbefd5d74abce25d58b81b251baddb9c3871cf0d6967deaae2"
}
Get grantee list
Authorizations:
path Parameters
reference required | string (SwarmEncryptedReference) ^[A-Fa-f0-9]{128}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f2d2810619d29b5dbefd5d74abce25d58b81b251baddb9c3871cf0d6967deaae2 Grantee list reference |
Responses
Response samples
- 200
- 404
- 500
[- "02ab7473879005929d10ce7d4f626412dad9fe56b0a6622038931d26bd79abf0a4"
]
Update grantee list
Add or remove grantees from an existing grantee list
Authorizations:
path Parameters
reference required | string (SwarmEncryptedReference) ^[A-Fa-f0-9]{128}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f2d2810619d29b5dbefd5d74abce25d58b81b251baddb9c3871cf0d6967deaae2 Grantee list reference |
header Parameters
swarm-act-history-address required | object (SwarmActHistoryAddress) ACT history reference address |
swarm-postage-batch-id required | object (SwarmPostageBatchId) ID of Postage Batch that is used to upload data with |
swarm-tag | object (SwarmTagParameter) Associate upload with an existing Tag UID |
swarm-pin | object (SwarmPinParameter) Represents if the uploaded data should be also locally pinned on the node. |
swarm-deferred-upload | object (SwarmDeferredUpload) Determines if the uploaded data should be sent to the network immediately or in a deferred fashion. By default the upload will be direct. |
Request Body schema: application/jsonrequired
add | Array of strings (PublicKey) [^[A-Fa-f0-9]{66}$] List of grantees to add |
revoke | Array of strings (PublicKey) [^[A-Fa-f0-9]{66}$] List of grantees to revoke future access from |
Responses
Request samples
- Payload
{- "add": [
- "02ab7473879005929d10ce7d4f626412dad9fe56b0a6622038931d26bd79abf0a4"
], - "revoke": [
- "02ab7473879005929d10ce7d4f626412dad9fe56b0a6622038931d26bd79abf0a4"
]
}
Response samples
- 200
- 400
- 500
{- "ref": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f2d2810619d29b5dbefd5d74abce25d58b81b251baddb9c3871cf0d6967deaae2",
- "historyref": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f2d2810619d29b5dbefd5d74abce25d58b81b251baddb9c3871cf0d6967deaae2"
}
Upload data
Authorizations:
header Parameters
swarm-postage-batch-id required | object (SwarmPostageBatchId) ID of Postage Batch that is used to upload data with |
swarm-tag | object (SwarmTagParameter) Associate upload with an existing Tag UID |
swarm-pin | object (SwarmPinParameter) Represents if the uploaded data should be also locally pinned on the node. |
swarm-deferred-upload | object (SwarmDeferredUpload) Determines if the uploaded data should be sent to the network immediately or in a deferred fashion. By default the upload will be direct. |
swarm-encrypt | object (SwarmEncryptParameter) Represents the encrypting state of the file |
swarm-redundancy-level | object (SwarmRedundancyLevelParameter) Add redundancy to the data being uploaded so that downloaders can download it with better UX. 0 value is default and does not add any redundancy to the file. |
Request Body schema: application/octet-stream
Responses
Response samples
- 201
- 400
- 402
- 500
{- "reference": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f"
}
Get referenced data
Authorizations:
path Parameters
required | SwarmAddress (string) or SwarmEncryptedReference (string) or DomainName (string) (SwarmReference) Swarm address reference to content |
header Parameters
swarm-cache | boolean Default: true Determines if the download data should be cached on the node. By default the download will be cached |
swarm-redundancy-strategy | integer Enum: 0 1 2 3 Specify the retrieve strategy on redundant data. The numbers stand for NONE, DATA, PROX and RACE, respectively. Strategy NONE means no prefetching takes place. Strategy DATA means only data chunks are prefetched. Strategy PROX means only chunks that are close to the node are prefetched. Strategy RACE means all chunks are prefetched: n data chunks and k parity chunks. The first n chunks to arrive are used to reconstruct the file. Multiple strategies can be used in a fallback cascade if the swarm redundancy fallback mode is set to true. The default strategy is NONE, DATA, falling back to PROX, falling back to RACE |
swarm-redundancy-fallback-mode | boolean Specify if the retrieve strategies (chunk prefetching on redundant data) are used in a fallback cascade. The default is true. |
swarm-redundancy-level | integer Enum: 0 1 2 3 4 Add redundancy to the data being uploaded so that downloaders can download it with better UX. 0 value is default and does not add any redundancy to the file. |
swarm-chunk-retrieval-timeout | string (Duration) Example: 5.0018ms Specify the timeout for chunk retrieval. The default is 30 seconds. |
swarm-act-timestamp | integer <int64> ACT history Unix timestamp |
swarm-act-publisher | string (PublicKey) ^[A-Fa-f0-9]{66}$ Example: 02ab7473879005929d10ce7d4f626412dad9fe56b0a6622038931d26bd79abf0a4 ACT content publisher's public key |
swarm-act-history-address | string (SwarmAddress) ^[A-Fa-f0-9]{64}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f ACT history reference address |
Responses
Response samples
- 400
{- "code": 0,
- "message": "string",
- "reasons": [
- "string"
]
}
Requests the headers containing the content type and length for the reference
Authorizations:
path Parameters
address required | string (SwarmAddress) ^[A-Fa-f0-9]{64}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f Swarm address of chunk |
header Parameters
swarm-act-timestamp | integer <int64> ACT history Unix timestamp |
swarm-act-publisher | string (PublicKey) ^[A-Fa-f0-9]{66}$ Example: 02ab7473879005929d10ce7d4f626412dad9fe56b0a6622038931d26bd79abf0a4 ACT content publisher's public key |
swarm-act-history-address | string (SwarmAddress) ^[A-Fa-f0-9]{64}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f ACT history reference address |
Responses
Response samples
- 400
- 404
{- "code": 0,
- "message": "string",
- "reasons": [
- "string"
]
}
Upload chunk
Authorizations:
header Parameters
swarm-tag | integer (Uid) Associate upload with an existing Tag UID |
swarm-postage-batch-id | object (SwarmPostageBatchId) ID of Postage Batch that is used to upload data with |
swarm-postage-stamp | string (HexString) ^([A-Fa-f0-9]+)$ Example: cf880b8eeac5093fa27b0825906c600685 Postage stamp for the corresponding chunk in the request.
|
swarm-act | boolean Default: false Determines if the uploaded data should be treated as ACT content |
swarm-act-history-address | string (SwarmAddress) ^[A-Fa-f0-9]{64}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f ACT history reference address |
Request Body schema: application/octet-stream
Chunk binary data that has to have at least 8 bytes.
Responses
Response samples
- 201
- 400
- 402
- 500
{- "reference": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f"
}
Upload stream of chunks
Returns a WebSocket connection on which stream of chunks can be uploaded. Each chunk sent is acknowledged using a binary response 0
which serves as confirmation of upload of single chunk. Chunks should be packaged as binary messages for uploading. If a tag is specified, the chunks will be streamed into local storage and then be uploaded to the network once the stream is closed. If a tag is not specified, the chunks will bypass local storage and be directly uploaded to the network through the stream as they arrive.
Authorizations:
header Parameters
swarm-postage-batch-id required | string (SwarmAddress) ^[A-Fa-f0-9]{64}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f ID of Postage Batch that is used to upload data with |
swarm-tag | integer (Uid) Associate upload with an existing Tag UID |
Responses
Response samples
- 400
{- "code": 0,
- "message": "string",
- "reasons": [
- "string"
]
}
Get chunk
Authorizations:
path Parameters
required | SwarmAddress (string) or SwarmEncryptedReference (string) or DomainName (string) (SwarmReference) Swarm address of chunk |
header Parameters
swarm-cache | object (SwarmCache) Determines if the download data should be cached on the node. By default the download will be cached |
swarm-act-timestamp | integer <int64> ACT history Unix timestamp |
swarm-act-publisher | string (PublicKey) ^[A-Fa-f0-9]{66}$ Example: 02ab7473879005929d10ce7d4f626412dad9fe56b0a6622038931d26bd79abf0a4 ACT content publisher's public key |
swarm-act-history-address | string (SwarmAddress) ^[A-Fa-f0-9]{64}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f ACT history reference address |
Responses
Response samples
- 400
- 404
- 500
{- "code": 0,
- "message": "string",
- "reasons": [
- "string"
]
}
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 |
header Parameters
swarm-act-timestamp | integer <int64> ACT history Unix timestamp |
swarm-act-publisher | string (PublicKey) ^[A-Fa-f0-9]{66}$ Example: 02ab7473879005929d10ce7d4f626412dad9fe56b0a6622038931d26bd79abf0a4 ACT content publisher's public key |
swarm-act-history-address | string (SwarmAddress) ^[A-Fa-f0-9]{64}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f ACT history reference address |
Responses
Response samples
- 400
- 404
{- "code": 0,
- "message": "string",
- "reasons": [
- "string"
]
}
Upload file or a collection of files
In order to upload a collection, user can send a multipart request with all the files populated in the form data with appropriate headers.
User can also upload a tar file along with the swarm-collection header. This will upload the tar file after extracting the entire directory structure.
If the swarm-collection header is absent, all requests (including tar files) are considered as single file uploads.
A multipart request is treated as a collection regardless of whether the swarm-collection header is present. This means in order to serve single files uploaded as a multipart request, the swarm-index-document header should be used with the name of the file.
Authorizations:
query Parameters
name | string (FileName) Filename when uploading single file |
header Parameters
swarm-postage-batch-id required | string (SwarmAddress) ^[A-Fa-f0-9]{64}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f ID of Postage Batch that is used to upload data with |
swarm-tag | integer (Uid) Associate upload with an existing Tag UID |
swarm-pin | boolean Represents if the uploaded data should be also locally pinned on the node. |
swarm-encrypt | boolean Represents the encrypting state of the file |
Content-Type | string The specified content-type is preserved for download of the asset |
swarm-collection | boolean Upload file/files as a collection |
swarm-index-document | string Example: index.html Default file to be referenced on path, if exists under that path |
swarm-error-document | string Example: error.html Configure custom error document to be returned when a specified path can not be found in collection |
swarm-deferred-upload | boolean Default: false Determines if the uploaded data should be sent to the network immediately or in a deferred fashion. By default the upload will be direct. |
swarm-redundancy-level | integer Enum: 0 1 2 3 4 Add redundancy to the data being uploaded so that downloaders can download it with better UX. 0 value is default and does not add any redundancy to the file. |
swarm-act | boolean Default: false Determines if the uploaded data should be treated as ACT content |
swarm-act-history-address | string (SwarmAddress) ^[A-Fa-f0-9]{64}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f ACT history reference address |
Request Body schema:
file | Array of strings <binary> [ items <binary > ] |
Responses
Response samples
- 201
- 400
- 402
- 500
{- "reference": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f"
}
Get file or index document from a collection of files
Authorizations:
path Parameters
required | SwarmAddress (string) or SwarmEncryptedReference (string) or DomainName (string) (SwarmReference) Swarm address of content |
header Parameters
swarm-cache | boolean Default: true Determines if the download data should be cached on the node. By default the download will be cached |
swarm-redundancy-strategy | integer Enum: 0 1 2 3 Specify the retrieve strategy on redundant data. The numbers stand for NONE, DATA, PROX and RACE, respectively. Strategy NONE means no prefetching takes place. Strategy DATA means only data chunks are prefetched. Strategy PROX means only chunks that are close to the node are prefetched. Strategy RACE means all chunks are prefetched: n data chunks and k parity chunks. The first n chunks to arrive are used to reconstruct the file. Multiple strategies can be used in a fallback cascade if the swarm redundancy fallback mode is set to true. The default strategy is NONE, DATA, falling back to PROX, falling back to RACE |
swarm-redundancy-fallback-mode | boolean Specify if the retrieve strategies (chunk prefetching on redundant data) are used in a fallback cascade. The default is true. |
swarm-redundancy-level | integer Enum: 0 1 2 3 4 Add redundancy to the data being uploaded so that downloaders can download it with better UX. 0 value is default and does not add any redundancy to the file. |
swarm-chunk-retrieval-timeout | string (Duration) Example: 5.0018ms Specify the timeout for chunk retrieval. The default is 30 seconds. |
swarm-act-timestamp | integer <int64> ACT history Unix timestamp |
swarm-act-publisher | string (PublicKey) ^[A-Fa-f0-9]{66}$ Example: 02ab7473879005929d10ce7d4f626412dad9fe56b0a6622038931d26bd79abf0a4 ACT content publisher's public key |
swarm-act-history-address | string (SwarmAddress) ^[A-Fa-f0-9]{64}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f ACT history reference address |
Responses
Response samples
- 400
- 404
- 500
{- "code": 0,
- "message": "string",
- "reasons": [
- "string"
]
}
Get the headers containing the content type and length for the reference
Authorizations:
path Parameters
address required | string (SwarmAddress) ^[A-Fa-f0-9]{64}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f Swarm address of chunk |
header Parameters
swarm-act-timestamp | integer <int64> ACT history Unix timestamp |
swarm-act-publisher | string (PublicKey) ^[A-Fa-f0-9]{66}$ Example: 02ab7473879005929d10ce7d4f626412dad9fe56b0a6622038931d26bd79abf0a4 ACT content publisher's public key |
swarm-act-history-address | string (SwarmAddress) ^[A-Fa-f0-9]{64}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f ACT history reference address |
Responses
Response samples
- 400
- 404
{- "code": 0,
- "message": "string",
- "reasons": [
- "string"
]
}
Get referenced file from a collection of files
Authorizations:
path Parameters
required | SwarmAddress (string) or SwarmEncryptedReference (string) or DomainName (string) (SwarmReference) Swarm address of content |
path required | string Path to the file in the collection. |
header Parameters
swarm-redundancy-strategy | integer Enum: 0 1 2 3 Specify the retrieve strategy on redundant data. The numbers stand for NONE, DATA, PROX and RACE, respectively. Strategy NONE means no prefetching takes place. Strategy DATA means only data chunks are prefetched. Strategy PROX means only chunks that are close to the node are prefetched. Strategy RACE means all chunks are prefetched: n data chunks and k parity chunks. The first n chunks to arrive are used to reconstruct the file. Multiple strategies can be used in a fallback cascade if the swarm redundancy fallback mode is set to true. The default strategy is NONE, DATA, falling back to PROX, falling back to RACE |
swarm-redundancy-fallback-mode | boolean Specify if the retrieve strategies (chunk prefetching on redundant data) are used in a fallback cascade. The default is true. |
swarm-chunk-retrieval-timeout | string (Duration) Example: 5.0018ms Specify the timeout for chunk retrieval. The default is 30 seconds. |
Responses
Response samples
- 400
- 404
- 500
{- "code": 0,
- "message": "string",
- "reasons": [
- "string"
]
}
Get pinning status of the root hash with the given reference
Authorizations:
path Parameters
required | SwarmAddress (string) or SwarmEncryptedReference (string) (SwarmOnlyReference) Swarm reference of the root hash |
Responses
Response samples
- 200
- 400
- 404
- 500
"36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f"
Validate pinned chunks integerity
Authorizations:
query Parameters
SwarmAddress (string) or SwarmEncryptedReference (string) (SwarmOnlyReference) The number of items to skip before starting to collect the result set. |
Responses
Response samples
- 200
- 500
{- "reference": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f",
- "total": 0,
- "missing": 0,
- "invalid": 0
}
Send to recipient or target with Postal Service for Swarm
Authorizations:
path Parameters
topic required | string (PssTopic) Topic name |
targets required | string (PssTargets) ^[0-9a-fA-F]{1,6}(,[0-9a-fA-F]{1,6})*$ Target message address prefix. If multiple targets are specified, only one would be matched. |
query Parameters
recipient | string (PssRecipient) Recipient publickey |
header Parameters
swarm-postage-batch-id required | string (SwarmAddress) ^[A-Fa-f0-9]{64}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f ID of Postage Batch that is used to upload data with |
Responses
Response samples
- 400
- 402
- 500
{- "code": 0,
- "message": "string",
- "reasons": [
- "string"
]
}
Subscribe to GSOC payloads
Authorizations:
path Parameters
required | SwarmAddress (string) or SwarmEncryptedReference (string) or DomainName (string) (SwarmReference) Single Owner Chunk address (which may have multiple payloads) |
Responses
Response samples
- 500
{- "code": 0,
- "message": "string",
- "reasons": [
- "string"
]
}
Subscribe to GSOC payloads
Authorizations:
path Parameters
required | SwarmAddress (string) or SwarmEncryptedReference (string) or DomainName (string) (SwarmReference) Single Owner Chunk address (which may have multiple payloads) |
Responses
Response samples
- 500
{- "code": 0,
- "message": "string",
- "reasons": [
- "string"
]
}
Subscribe to GSOC payloads
Authorizations:
path Parameters
required | SwarmAddress (string) or SwarmEncryptedReference (string) or DomainName (string) (SwarmReference) Single Owner Chunk address (which may have multiple payloads) |
Responses
Response samples
- 500
{- "code": 0,
- "message": "string",
- "reasons": [
- "string"
]
}
Upload single owner chunk
Authorizations:
path Parameters
owner required | string (EthereumAddress) ^[A-Fa-f0-9]{40}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906 Owner |
id required | string (HexString) ^([A-Fa-f0-9]+)$ Example: cf880b8eeac5093fa27b0825906c600685 Id |
query Parameters
sig required | string (HexString) ^([A-Fa-f0-9]+)$ Example: sig=cf880b8eeac5093fa27b0825906c600685 Signature |
header Parameters
swarm-postage-batch-id required | object (SwarmPostageBatchId) ID of Postage Batch that is used to upload data with |
swarm-postage-stamp | string (HexString) ^([A-Fa-f0-9]+)$ Example: cf880b8eeac5093fa27b0825906c600685 Postage stamp for the corresponding chunk in the request.
|
swarm-act | boolean Default: false Determines if the uploaded data should be treated as ACT content |
swarm-act-history-address | string (SwarmAddress) ^[A-Fa-f0-9]{64}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f ACT history reference address |
Request Body schema: application/octet-streamrequired
The SOC binary data is composed of the span (8 bytes) and the at most 4KB payload.
Responses
Response samples
- 201
- 400
- 401
- 402
- 500
{- "reference": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f"
}
Resolve Single Owner Chunk data
Authorizations:
path Parameters
owner required | string (EthereumAddress) ^[A-Fa-f0-9]{40}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906 Ethereum address of the Owner of the SOC |
id required | string (HexString) ^([A-Fa-f0-9]+)$ Example: cf880b8eeac5093fa27b0825906c600685 Arbitrary identifier of the related data |
header Parameters
swarm-only-root-chunk | boolean Returns only the root chunk of the content |
swarm-cache | boolean Default: true Determines if the download data should be cached on the node. By default the download will be cached |
swarm-redundancy-strategy | integer Enum: 0 1 2 3 Specify the retrieve strategy on redundant data. The numbers stand for NONE, DATA, PROX and RACE, respectively. Strategy NONE means no prefetching takes place. Strategy DATA means only data chunks are prefetched. Strategy PROX means only chunks that are close to the node are prefetched. Strategy RACE means all chunks are prefetched: n data chunks and k parity chunks. The first n chunks to arrive are used to reconstruct the file. Multiple strategies can be used in a fallback cascade if the swarm redundancy fallback mode is set to true. The default strategy is NONE, DATA, falling back to PROX, falling back to RACE |
swarm-redundancy-fallback-mode | boolean Specify if the retrieve strategies (chunk prefetching on redundant data) are used in a fallback cascade. The default is true. |
swarm-chunk-retrieval-timeout | string (Duration) Example: 5.0018ms Specify the timeout for chunk retrieval. The default is 30 seconds. |
Responses
Response samples
- 400
- 401
- 500
{- "code": 0,
- "message": "string",
- "reasons": [
- "string"
]
}
Create an initial feed root manifest
Authorizations:
path Parameters
owner required | string (EthereumAddress) ^[A-Fa-f0-9]{40}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906 Owner |
topic required | string (HexString) ^([A-Fa-f0-9]+)$ Example: cf880b8eeac5093fa27b0825906c600685 Topic |
query Parameters
type | string (FeedType) ^(sequence|epoch)$ Feed indexing scheme (default: sequence) |
header Parameters
swarm-postage-batch-id required | string (SwarmAddress) ^[A-Fa-f0-9]{64}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f ID of Postage Batch that is used to upload data with |
swarm-pin | boolean Represents if the uploaded data should be also locally pinned on the node. |
swarm-act | boolean Default: false Determines if the uploaded data should be treated as ACT content |
swarm-act-history-address | string (SwarmAddress) ^[A-Fa-f0-9]{64}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f ACT history reference address |
Responses
Response samples
- 201
- 400
- 401
- 402
- 500
{- "reference": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f"
}
Find feed update
Authorizations:
path Parameters
owner required | string (EthereumAddress) ^[A-Fa-f0-9]{40}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906 Owner |
topic required | string (HexString) ^([A-Fa-f0-9]+)$ Example: cf880b8eeac5093fa27b0825906c600685 Topic |
query Parameters
at | integer Timestamp of the update (default: now) |
after | integer Start index (default: 0) |
type | string (FeedType) ^(sequence|epoch)$ Feed indexing scheme (default: sequence) |
header Parameters
swarm-only-root-chunk | boolean Returns only the root chunk of the content |
swarm-cache | boolean Default: true Determines if the download data should be cached on the node. By default the download will be cached |
swarm-redundancy-strategy | integer Enum: 0 1 2 3 Specify the retrieve strategy on redundant data. The numbers stand for NONE, DATA, PROX and RACE, respectively. Strategy NONE means no prefetching takes place. Strategy DATA means only data chunks are prefetched. Strategy PROX means only chunks that are close to the node are prefetched. Strategy RACE means all chunks are prefetched: n data chunks and k parity chunks. The first n chunks to arrive are used to reconstruct the file. Multiple strategies can be used in a fallback cascade if the swarm redundancy fallback mode is set to true. The default strategy is NONE, DATA, falling back to PROX, falling back to RACE |
swarm-redundancy-fallback-mode | boolean Specify if the retrieve strategies (chunk prefetching on redundant data) are used in a fallback cascade. The default is true. |
swarm-chunk-retrieval-timeout | string (Duration) Example: 5.0018ms Specify the timeout for chunk retrieval. The default is 30 seconds. |
Responses
Response samples
- 400
- 401
- 500
{- "code": 0,
- "message": "string",
- "reasons": [
- "string"
]
}
Check if content is available
Authorizations:
path Parameters
required | SwarmAddress (string) or SwarmEncryptedReference (string) or DomainName (string) (SwarmReference) Root hash of content (can be of any type: collection, file, chunk) |
Responses
Response samples
- 200
- 404
- 500
{- "isRetrievable": true
}
Re-upload content for specified root hash
Authorizations:
path Parameters
required | SwarmAddress (string) or SwarmEncryptedReference (string) or DomainName (string) (SwarmReference) Re-uploads content for specified root hash (can be of any type: collection, file, chunk, etc.) |
header Parameters
swarm-postage-batch-id | object (SwarmPostageBatchId) Postage batch to use for re-upload. If none is provided and the file was uploaded on the same node before, it will reuse the same batch. If not found, it will return error. If a new batch is provided, the chunks are stamped again with the new batch. |
Responses
Response samples
- 400
- 404
- 500
{- "code": 0,
- "message": "string",
- "reasons": [
- "string"
]
}
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"
}
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"
}
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 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"
}
Create postage stamp signature against given chunk address
Authorizations:
header Parameters
swarm-postage-batch-id required | object (SwarmPostageBatchId) ID of Postage Batch that is used to upload data with |
Responses
Response samples
- 201
- 400
- 402
- 500
{- "issuer": "36b7efd913ca4cf880b8eeac5093fa27b0825906",
- "index": "1a2b3c4d5e6f7a8b",
- "timestamp": "1a2b3c4d5e6f7a8b",
- "signature": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e"
}
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
}
Get 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
}
]
}
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
- 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 |
gas-price | integer (GasPrice) Gas price for transaction |
gas-limit | integer (GasLimit) [ 0 .. 18446744073709552000 ] Gas limit for transaction |
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. |
header Parameters
gas-price | integer (GasPrice) Gas price for transaction |
gas-limit | integer (GasLimit) [ 0 .. 18446744073709552000 ] Gas limit for transaction |
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. |
header Parameters
gas-price | integer (GasPrice) Gas price for transaction |
gas-limit | integer (GasLimit) [ 0 .. 18446744073709552000 ] Gas limit for transaction |
Responses
Response samples
- 202
- 400
- 429
- 500
{- "batchID": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f",
- "txHash": "0x780cb6a37d1946978087896e1e489c37e30fe3e329510fff8d97360f73529f5a"
}
Get all globally available batches that were purchased by all nodes.
Authorizations:
Responses
Response samples
- 200
{- "batches": [
- {
- "batchID": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f",
- "value": "1000000000000000000",
- "start": 0,
- "depth": 0,
- "bucketDepth": 0,
- "immutableFlag": true,
- "batchTTL": 0,
- "owner": "36b7efd913ca4cf880b8eeac5093fa27b0825906",
- "storageRadius": 0
}
]
}
Get reserve commitment hash with sample proofs
Authorizations:
path Parameters
depth required | integer >= 0 Default: 0 The storage depth. |
anchor1 required | string (HexString) ^([A-Fa-f0-9]+)$ Example: cf880b8eeac5093fa27b0825906c600685 The first anchor. |
anchor2 required | string (HexString) ^([A-Fa-f0-9]+)$ Example: cf880b8eeac5093fa27b0825906c600685 The second anchor. |
Responses
Response samples
- 200
- 500
{- "durationSeconds": 30.5,
- "hash": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f",
- "proofs": {
- "proof1": {
- "chunkSpan": 0,
- "postageProof": {
- "index": "string",
- "postageId": "string",
- "signature": "string",
- "timeStamp": "string"
}, - "proofSegments": [
- "string"
], - "proofSegments2": [
- "string"
], - "proofSegments3": [
- "string"
], - "proveSegment": "string",
- "proveSegment2": "string",
- "socProof": [
- {
- "chunkAddr": "string",
- "identifier": "string",
- "signature": "string",
- "signer": "string"
}
]
}, - "proof2": {
- "chunkSpan": 0,
- "postageProof": {
- "index": "string",
- "postageId": "string",
- "signature": "string",
- "timeStamp": "string"
}, - "proofSegments": [
- "string"
], - "proofSegments2": [
- "string"
], - "proofSegments3": [
- "string"
], - "proveSegment": "string",
- "proveSegment2": "string",
- "socProof": [
- {
- "chunkAddr": "string",
- "identifier": "string",
- "signature": "string",
- "signer": "string"
}
]
}, - "proofLast": {
- "chunkSpan": 0,
- "postageProof": {
- "index": "string",
- "postageId": "string",
- "signature": "string",
- "timeStamp": "string"
}, - "proofSegments": [
- "string"
], - "proofSegments2": [
- "string"
], - "proofSegments3": [
- "string"
], - "proveSegment": "string",
- "proveSegment2": "string",
- "socProof": [
- {
- "chunkAddr": "string",
- "identifier": "string",
- "signature": "string",
- "signer": "string"
}
]
}
}
}
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,
- "lastSampleDurationSeconds": 0,
- "block": 0,
- "reward": "1000000000000000000",
- "fees": "1000000000000000000"
}
Response samples
- 200
- 500
{- "bzzBalance": "1000000000000000000",
- "nativeTokenBalance": "1000000000000000000",
- "chainID": 0,
- "chequebookContractAddress": "36b7efd913ca4cf880b8eeac5093fa27b0825906",
- "walletAddress": "36b7efd913ca4cf880b8eeac5093fa27b0825906"
}
Allows withdrawals of BZZ or xDAI to provided (whitelisted) address
Authorizations:
path Parameters
coin required | string (SwarmAddress) ^[A-Fa-f0-9]{64}$ Example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f |
query Parameters
amount required | string (BigInt) Example: amount=1000000000000000000 Numeric string that represents integer which might exceed |
address required | string (EthereumAddress) ^[A-Fa-f0-9]{40}$ Example: address=36b7efd913ca4cf880b8eeac5093fa27b0825906 |
Responses
Response samples
- 200
- 400
- 500
{- "transactionHash": "0x780cb6a37d1946978087896e1e489c37e30fe3e329510fff8d97360f73529f5a"
}
Withdraws all past staked amount back to the wallet.
Be aware, the endpoint call only be called when the contract is paused and is in the process of being migrated to a new contract.
Authorizations:
Responses
Response samples
- 500
{- "code": 0,
- "message": "string",
- "reasons": [
- "string"
]
}
Withdraw the extra withdrawable staked amount.
This endpoint withdraws any amount that is possible to withdraw as surplus.
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"
]
}
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 required | 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"
]
}
Withdraws all past staked amount back to the wallet.
Be aware, this endpoint can only be called when the contract is paused and is in the process of being migrated to a new contract.
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
{- "overlay": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f",
- "beeMode": "light",
- "proximity": 0,
- "reserveSize": 0,
- "reserveSizeWithinRadius": 0,
- "pullsyncRate": 0,
- "storageRadius": 0,
- "connectedPeers": 0,
- "neighborhoodSize": 0,
- "requestFailed": true,
- "BatchCommitment": 0,
- "isReachable": true,
- "lastSyncedBlock": 0,
- "committedDepth": 0
}
Response samples
- 200
- 400
{- "stamps": [
- {
- "overlay": "36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f",
- "beeMode": "light",
- "proximity": 0,
- "reserveSize": 0,
- "reserveSizeWithinRadius": 0,
- "pullsyncRate": 0,
- "storageRadius": 0,
- "connectedPeers": 0,
- "neighborhoodSize": 0,
- "requestFailed": true,
- "BatchCommitment": 0,
- "isReachable": true,
- "lastSyncedBlock": 0,
- "committedDepth": 0
}
]
}