Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.
openapi: 3.2.0
info:
title: Etherna Settlements API
version: 7.3.0
description: 'Operations tagged Settlements 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: Settlements
paths:
/settlements/{address}:
get:
summary: Get amount of sent and received from settlements with a peer
tags:
- Settlements
parameters:
- in: path
name: address
schema:
$ref: SwarmCommon.yaml#/components/schemas/SwarmAddress
required: true
description: Swarm address of peer
responses:
'200':
description: Amount of sent or received from settlements with a peer
content:
application/json:
schema:
$ref: SwarmCommon.yaml#/components/schemas/Settlement
'400':
$ref: SwarmCommon.yaml#/components/responses/400
'500':
$ref: SwarmCommon.yaml#/components/responses/500
default:
description: Default response
operationId: getSettlementsByAddress
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
/settlements:
get:
summary: Get settlements with all known peers and total amount sent or received
tags:
- Settlements
responses:
'200':
description: Settlements with all known peers and total amount sent or received
content:
application/json:
schema:
$ref: SwarmCommon.yaml#/components/schemas/Settlements
'500':
$ref: SwarmCommon.yaml#/components/responses/500
default:
description: Default response
operationId: getSettlements
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
/timesettlements:
get:
summary: Get time based settlements with all known peers and total amount sent or…
tags:
- Settlements
responses:
'200':
description: Time based settlements with all known peers and total amount sent or received
content:
application/json:
schema:
$ref: SwarmCommon.yaml#/components/schemas/Settlements
'500':
$ref: SwarmCommon.yaml#/components/responses/500
default:
description: Default response
operationId: getTimesettlements
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