eTheRNA Postage Stamps API
The Postage Stamps API from eTheRNA — 7 operation(s) for postage stamps.
The Postage Stamps API from eTheRNA — 7 operation(s) for postage stamps.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/etherna:etherna-postage-stamps-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Etherna Postage Stamps API
version: 7.3.0
description: 'Operations tagged Postage Stamps across 2 of this provider''s published API definitions: etherna-swarm-openapi.yml, etherna-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: http://{apiRoot}:{port}/v1
variables:
apiRoot:
default: localhost
description: Base address of the local bee node main API
port:
default: '1633'
description: Service port provided in bee node config
- url: http://{apiRoot}:{port}
variables:
apiRoot:
default: localhost
description: Base address of the local bee node main API
port:
default: '1633'
description: Service port provided in bee node config
tags:
- name: Postage Stamps
paths:
/stamps:
get:
summary: Get stamps for this node
tags:
- Postage Stamps
responses:
'200':
description: Returns an array of postage batches.
content:
application/json:
schema:
$ref: SwarmCommon.yaml#/components/schemas/DebugPostageBatchesResponse
'404':
$ref: SwarmCommon.yaml#/components/responses/404
default:
description: Default response
operationId: getStamps
x-operation-id-source: derived
servers:
- url: http://{apiRoot}:{port}/v1
variables:
apiRoot:
default: localhost
description: Base address of the local bee node main API
port:
default: '1633'
description: Service port provided in bee node config
- url: http://{apiRoot}:{port}
variables:
apiRoot:
default: localhost
description: Base address of the local bee node main API
port:
default: '1633'
description: Service port provided in bee node config
/stamps/{batch_id}:
parameters:
- in: path
name: batch_id
schema:
$ref: SwarmCommon.yaml#/components/schemas/BatchID
required: true
description: Swarm address of the stamp
get:
summary: Get an individual postage batch status
tags:
- Postage Stamps
responses:
'200':
description: Returns an individual postage batch state
content:
application/json:
schema:
$ref: SwarmCommon.yaml#/components/schemas/DebugPostageBatch
'404':
$ref: SwarmCommon.yaml#/components/responses/404
'400':
$ref: SwarmCommon.yaml#/components/responses/400
default:
description: Default response
operationId: getStampsByBatchId
x-operation-id-source: derived
servers:
- url: http://{apiRoot}:{port}/v1
variables:
apiRoot:
default: localhost
description: Base address of the local bee node main API
port:
default: '1633'
description: Service port provided in bee node config
- url: http://{apiRoot}:{port}
variables:
apiRoot:
default: localhost
description: Base address of the local bee node main API
port:
default: '1633'
description: Service port provided in bee node config
/stamps/{batch_id}/buckets:
parameters:
- in: path
name: batch_id
schema:
$ref: SwarmCommon.yaml#/components/schemas/BatchID
required: true
description: Swarm address of the stamp
get:
summary: Get extended bucket data of a batch
tags:
- Postage Stamps
responses:
'200':
description: Returns extended bucket data of the provided batch ID
content:
application/json:
schema:
$ref: SwarmCommon.yaml#/components/schemas/PostageStampBuckets
'404':
$ref: SwarmCommon.yaml#/components/responses/404
'400':
$ref: SwarmCommon.yaml#/components/responses/400
default:
description: Default response
operationId: getStampsByBatchIdBuckets
x-operation-id-source: derived
servers:
- url: http://{apiRoot}:{port}/v1
variables:
apiRoot:
default: localhost
description: Base address of the local bee node main API
port:
default: '1633'
description: Service port provided in bee node config
- url: http://{apiRoot}:{port}
variables:
apiRoot:
default: localhost
description: Base address of the local bee node main API
port:
default: '1633'
description: Service port provided in bee node config
/stamps/{amount}/{depth}:
post:
summary: Buy a new postage batch
description: 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!
tags:
- Postage Stamps
parameters:
- in: path
name: amount
schema:
$ref: SwarmCommon.yaml#/components/schemas/BigInt
required: true
description: Amount of BZZ added that the postage batch will have.
- in: path
name: depth
schema:
type: integer
required: true
description: 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)
- in: query
name: label
schema:
type: string
required: false
description: An optional label for this batch
- in: header
name: immutable
schema:
type: boolean
required: false
- $ref: SwarmCommon.yaml#/components/parameters/GasPriceParameter
- $ref: SwarmCommon.yaml#/components/parameters/GasLimitParameter
responses:
'201':
description: Returns the newly created postage batch ID
content:
application/json:
schema:
$ref: SwarmCommon.yaml#/components/schemas/BatchIDResponse
'400':
$ref: SwarmCommon.yaml#/components/responses/400
'429':
$ref: SwarmCommon.yaml#/components/responses/429
'500':
$ref: SwarmCommon.yaml#/components/responses/500
default:
description: Default response
operationId: postStampsByAmountByDepth
x-operation-id-source: derived
servers:
- url: http://{apiRoot}:{port}/v1
variables:
apiRoot:
default: localhost
description: Base address of the local bee node main API
port:
default: '1633'
description: Service port provided in bee node config
- url: http://{apiRoot}:{port}
variables:
apiRoot:
default: localhost
description: Base address of the local bee node main API
port:
default: '1633'
description: Service port provided in bee node config
/stamps/topup/{batch_id}/{amount}:
patch:
summary: Top up an existing postage batch
description: Be aware, this endpoint creates on-chain transactions and transfers BZZ from the node's Ethereum account and hence directly manipulates the wallet balance!
tags:
- Postage Stamps
parameters:
- in: path
name: batch_id
schema:
$ref: SwarmCommon.yaml#/components/schemas/BatchID
required: true
description: Batch ID to top up
- in: path
name: amount
schema:
type: integer
format: int64
required: true
description: Amount of BZZ per chunk to top up to an existing postage batch.
- $ref: SwarmCommon.yaml#/components/parameters/GasPriceParameter
- $ref: SwarmCommon.yaml#/components/parameters/GasLimitParameter
responses:
'202':
description: Returns the postage batch ID that was topped up
content:
application/json:
schema:
$ref: SwarmCommon.yaml#/components/schemas/BatchIDResponse
'400':
$ref: SwarmCommon.yaml#/components/responses/400
'429':
$ref: SwarmCommon.yaml#/components/responses/429
'402':
$ref: SwarmCommon.yaml#/components/responses/402
'500':
$ref: SwarmCommon.yaml#/components/responses/500
default:
description: Default response
operationId: patchStampsTopupByBatchIdByAmount
x-operation-id-source: derived
servers:
- url: http://{apiRoot}:{port}/v1
variables:
apiRoot:
default: localhost
description: Base address of the local bee node main API
port:
default: '1633'
description: Service port provided in bee node config
- url: http://{apiRoot}:{port}
variables:
apiRoot:
default: localhost
description: Base address of the local bee node main API
port:
default: '1633'
description: Service port provided in bee node config
/stamps/dilute/{batch_id}/{depth}:
patch:
summary: Dilute an existing postage batch
description: Be aware, this endpoint creates on-chain transactions and transfers BZZ from the node's Ethereum account and hence directly manipulates the wallet balance!
tags:
- Postage Stamps
parameters:
- in: path
name: batch_id
schema:
$ref: SwarmCommon.yaml#/components/schemas/BatchID
required: true
description: Batch ID to dilute
- in: path
name: depth
schema:
type: integer
required: true
description: New batch depth. Must be higher than the previous depth.
- $ref: SwarmCommon.yaml#/components/parameters/GasPriceParameter
- $ref: SwarmCommon.yaml#/components/parameters/GasLimitParameter
responses:
'202':
description: Returns the postage batch ID that was diluted.
content:
application/json:
schema:
$ref: SwarmCommon.yaml#/components/schemas/BatchIDResponse
'400':
$ref: SwarmCommon.yaml#/components/responses/400
'429':
$ref: SwarmCommon.yaml#/components/responses/429
'500':
$ref: SwarmCommon.yaml#/components/responses/500
default:
description: Default response
operationId: patchStampsDiluteByBatchIdByDepth
x-operation-id-source: derived
servers:
- url: http://{apiRoot}:{port}/v1
variables:
apiRoot:
default: localhost
description: Base address of the local bee node main API
port:
default: '1633'
description: Service port provided in bee node config
- url: http://{apiRoot}:{port}
variables:
apiRoot:
default: localhost
description: Base address of the local bee node main API
port:
default: '1633'
description: Service port provided in bee node config
/batches:
get:
summary: Get all globally available batches that were purchased by all nodes
tags:
- Postage Stamps
responses:
'200':
description: Returns an array of all available and currently valid postage batches.
content:
application/json:
schema:
$ref: SwarmCommon.yaml#/components/schemas/DebugPostageAllBatchesResponse
default:
description: Default response
operationId: getBatches
x-operation-id-source: derived
servers:
- url: http://{apiRoot}:{port}/v1
variables:
apiRoot:
default: localhost
description: Base address of the local bee node main API
port:
default: '1633'
description: Service port provided in bee node config
- url: http://{apiRoot}:{port}
variables:
apiRoot:
default: localhost
description: Base address of the local bee node main API
port:
default: '1633'
description: Service port provided in bee node config
externalDocs:
description: Browse the documentation @ the Swarm Docs
url: https://docs.ethswarm.org
x-refined-from:
- etherna-swarm-openapi.yml
- etherna-openapi.yaml