eTheRNA Chequebook API

The Chequebook API from eTheRNA — 7 operation(s) for chequebook.

GitHub OpenAPI
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).

Operations 8

GET /chequebook/address Get the address of the chequebook contract used #
GET /chequebook/balance Get the balance of the chequebook #
GET /chequebook/cashout/{peer-id} Get last cashout action for the peer #
POST /chequebook/cashout/{peer-id} Cashout the last cheque for the peer #
GET /chequebook/cheque/{peer-id} Get last cheques for the peer #
GET /chequebook/cheque Get last cheques for all peers #
POST /chequebook/deposit Deposit tokens from overlay address into chequebook #
POST /chequebook/withdraw Withdraw tokens from the chequebook to the overlay address #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/etherna:etherna-chequebook-api"
All apis
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.

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

etherna-chequebook-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Etherna Chequebook API
  version: 7.3.0
  description: 'Operations tagged Chequebook 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: Chequebook
paths:
  /chequebook/address:
    get:
      summary: Get the address of the chequebook contract used
      tags:
      - Chequebook
      responses:
        '200':
          description: Ethereum address of chequebook contract
          content:
            application/json:
              schema:
                $ref: SwarmCommon.yaml#/components/schemas/ChequebookAddress
      operationId: getChequebookAddress
      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
  /chequebook/balance:
    get:
      summary: Get the balance of the chequebook
      tags:
      - Chequebook
      responses:
        '200':
          description: Balance of the chequebook
          content:
            application/json:
              schema:
                $ref: SwarmCommon.yaml#/components/schemas/ChequebookBalance
        '500':
          $ref: SwarmCommon.yaml#/components/responses/500
        default:
          description: Default response
      operationId: getChequebookBalance
      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
  /chequebook/cashout/{peer-id}:
    get:
      summary: Get last cashout action for the peer
      parameters:
      - in: path
        name: peer-id
        schema:
          $ref: SwarmCommon.yaml#/components/schemas/SwarmAddress
        required: true
        description: Swarm address of peer
      tags:
      - Chequebook
      responses:
        '200':
          description: Cashout status
          content:
            application/json:
              schema:
                $ref: SwarmCommon.yaml#/components/schemas/SwapCashoutStatus
        '404':
          $ref: SwarmCommon.yaml#/components/responses/404
        '500':
          $ref: SwarmCommon.yaml#/components/responses/500
        default:
          description: Default response
      operationId: getChequebookCashoutByPeerId
      x-operation-id-source: derived
    post:
      summary: Cashout the last cheque for the peer
      parameters:
      - in: path
        name: peer-id
        schema:
          $ref: SwarmCommon.yaml#/components/schemas/SwarmAddress
        required: true
        description: Swarm address of peer
      - $ref: SwarmCommon.yaml#/components/parameters/GasPriceParameter
      - $ref: SwarmCommon.yaml#/components/parameters/GasLimitParameter
      tags:
      - Chequebook
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: SwarmCommon.yaml#/components/schemas/TransactionResponse
        '404':
          $ref: SwarmCommon.yaml#/components/responses/404
        '429':
          $ref: SwarmCommon.yaml#/components/responses/429
        '500':
          $ref: SwarmCommon.yaml#/components/responses/500
        default:
          description: Default response
      operationId: postChequebookCashoutByPeerId
      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
  /chequebook/cheque/{peer-id}:
    get:
      summary: Get last cheques for the peer
      parameters:
      - in: path
        name: peer-id
        schema:
          $ref: SwarmCommon.yaml#/components/schemas/SwarmAddress
        required: true
        description: Swarm address of peer
      tags:
      - Chequebook
      responses:
        '200':
          description: Last cheques
          content:
            application/json:
              schema:
                $ref: SwarmCommon.yaml#/components/schemas/ChequePeerResponse
        '404':
          $ref: SwarmCommon.yaml#/components/responses/404
        '500':
          $ref: SwarmCommon.yaml#/components/responses/500
        default:
          description: Default response
      operationId: getChequebookChequeByPeerId
      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
  /chequebook/cheque:
    get:
      summary: Get last cheques for all peers
      tags:
      - Chequebook
      responses:
        '200':
          description: Last cheques
          content:
            application/json:
              schema:
                $ref: SwarmCommon.yaml#/components/schemas/ChequeAllPeersResponse
        '404':
          $ref: SwarmCommon.yaml#/components/responses/404
        '500':
          $ref: SwarmCommon.yaml#/components/responses/500
        default:
          description: Default response
      operationId: getChequebookCheque
      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
  /chequebook/deposit:
    post:
      summary: Deposit tokens from overlay address into chequebook
      parameters:
      - in: query
        name: amount
        schema:
          type: integer
          format: int64
        required: true
        description: amount of tokens to deposit
      - $ref: SwarmCommon.yaml#/components/parameters/GasPriceParameter
      tags:
      - Chequebook
      responses:
        '201':
          description: Transaction hash of the deposit transaction
          content:
            application/json:
              schema:
                $ref: SwarmCommon.yaml#/components/schemas/TransactionResponse
        '400':
          $ref: SwarmCommon.yaml#/components/responses/404
        '500':
          $ref: SwarmCommon.yaml#/components/responses/500
        default:
          description: Default response
      operationId: postChequebookDeposit
      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
  /chequebook/withdraw:
    post:
      summary: Withdraw tokens from the chequebook to the overlay address
      parameters:
      - in: query
        name: amount
        schema:
          type: integer
          format: int64
        required: true
        description: amount of tokens to withdraw
      - $ref: SwarmCommon.yaml#/components/parameters/GasPriceParameter
      tags:
      - Chequebook
      responses:
        '201':
          description: Transaction hash of the withdraw transaction
          content:
            application/json:
              schema:
                $ref: SwarmCommon.yaml#/components/schemas/TransactionResponse
        '400':
          $ref: SwarmCommon.yaml#/components/responses/404
        '500':
          $ref: SwarmCommon.yaml#/components/responses/500
        default:
          description: Default response
      operationId: postChequebookWithdraw
      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