Supercharged with Python3
Confidently build your next blockchain application at record speed.
accurate blockchain data.
you already know and love.
to all popular L1s and L2s.
block reorganizations for you out-of-the-box.
With Blockpipe you just write code and let it run.
Install the package using npm or yarn:
npm install @blockpipe/react
oryarn add @blockpipe/react
Import
BlockpipeProvider
and wrap your components with it:Loading...Use
useBlockpipe
hook to access the data:Loading...
Install the package using npm or yarn:
npm install @blockpipe/client
oryarn add @blockpipe/client
Import
Client
and create a new instance with your project slug and optional settings:Loading...Fetch data from Blockpipe Endpoint API using the
client.get()
method:Loading...This method accepts an array of endpoint paths or a single path and returns a Promise that resolves to an array of results.
Install the package using pip:
pip install blockpipe
Import the
Client
class from the package and create a new instance with your project slug and optional settings:Loading...Fetch data from the Blockpipe Endpoint API:
Loading...Use the fetched data in your application:
Loading...
No worries if you don't want to use a library! You can still quickly fetch data from the Blockpipe Endpoint API with just a few lines of code. In the examples below, make sure to replace YOUR_PROJECT
, ENVIRONMENT
, and the endpoint path as needed.
🟨 JavaScript (Fetch API):
Loading...
🐍 Python (requests library):
Loading...
For the Python example, you'll need to install the requests
library if you haven't already. Run pip install requests
to do so. Happy coding!