Skip to main content

BPL API

A simple Python API for the Blockpool blockchain

This is a easy-to-use Python API for interacting with a Blockpool blockchain. This API provides a Python wrapper for the majority of the API endpoints for BPL-Node

Features

Accounts Endpoint

  • Retrieve an account
  • Retrieve the balance of an account
  • Retrieve the public key of an account
  • Retrieve the delegate registration fee
  • Retrieve the voted delegate of an account

Blocks Endpoint

  • Retrieve for a block
  • List all blocks
  • Retrieve the epoch of the blockchain
  • Retrieve the height of the blockchain
  • Retrieve the nethash of the blockchain
  • Retrieve a fee
  • List all fees of the blockchain
  • Retrieve the milestone of the blockchain
  • Retrieve the reward of the blockchain
  • Retrieve the supply of the blockchain
  • Retrieve the status of the blockchain

Delegates Endpoint

  • Retrieve a delegate
  • Retrieve the total count of delegates
  • Retrieve the delegate registration fee
  • Retrieve the total forged of a delegate
  • List all voters of a delegate
  • List all delegates
  • Search all delegates
  • List the next forgers
  • Retrieve the forging status of a delegate

Loader Endpoint

  • Retrieve the status of the connected node
  • Retrieve the synchronisation status of the connected node
  • Retrieve the configuration of the connected node

Multisignature Endpoint

  • Retrieve the pending multisignature transactions of an account
  • Retrieve a multisignature account

Peers Endpoint

  • Retrieve a peer
  • List all peers
  • Retrieve the core version

Signatures Endpoint

  • Retrieve the signature registration fee

Transaction Endpoint

  • Retrieve a transaction
  • List all transactions
  • Retrieve an unconfirmed transaction
  • List all unconfirmed transactions
  • Send a transaction

Endpoint Entity

  • GET
  • POST
  • PUT
  • DELETE

Installation

pip install bpl-api

Note: not working as of 2018-07-26

Usage

There are 8 API endpoints in bpl-api:

  • accounts
  • blocks
  • delegates
  • loader
  • multisignatures
  • peers
  • signatures
  • transactions

Each endpoint can be accessed using the Client interface, for example:

from bpl_api import Client

accounts_endpoint = Client("s01.mc.blockpool.io:9030").api("accounts")

See the documented code for how each endpoint may be used.

Security or Errors

If you discover a security vulnerability or error within this package, please email me or message me on the BPL discord.

Credits

Metadata

Release files for bpl-api 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bpl-api 0.1.0
File Size Uploaded Provenance Actions
bpl-api-0.1.0.tar.gz 5.2 kB Without provenance Details for bpl-api-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bpl-api 0.1.0
File Interpreter ABI Platform Actions
bpl_api-0.1.0-py3-none-any.whl Python 3 none any Details for bpl_api-0.1.0-py3-none-any.whl

Total release size: 14.2 kB

Release files / bpl-api-0.1.0.tar.gz

Download URL bpl-api-0.1.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
572db6c466076f9ea3a86788d679ce9957555eff3d3ae9c24cc3503bd0145a84
BLAKE2b-256 checksum
How to use checksums
77dbe01a451208e5a58e211be940d6e63c06ed3c434e26bf726af48f04835c97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.2

Release files / bpl_api-0.1.0-py3-none-any.whl

Download URL bpl_api-0.1.0-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ba5ad9f33a600d86e85cc6f19ab32eaa45ef2d3f0d6f9e3711cb74fd7579ac9
BLAKE2b-256 checksum
How to use checksums
2030c6cd7e790501f5ed883ee64e6d5f10beb1b310a4418c5072f04319e23905
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.2

Security for bpl-api 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page