11 releases
new 0.3.9 | Mar 27, 2025 |
---|---|
0.3.8 | Mar 18, 2025 |
0.3.6 | Feb 26, 2025 |
0.3.5 | Jan 21, 2025 |
0.2.6 | Nov 28, 2024 |
#3 in #uniswap
471 downloads per month
180KB
5.5K
SLoC
Pangea Client
pangea-client
is a set of libraries for different languages to interface with Pangea API.
When using rust
the data is delivered in Arrow or JSON, developers are required to provide their own types.
Getting started
Access to the API via pangea-client
requires credentials, please apply for access first.
Once credentials are issued, they will need to be set in the environment variables.
The easiest way to use these credentials is to create a .env
file in the project root folder and populate it like so:
PANGEA_USERNAME=xxxxx
PANGEA_PASSWORD=xxxxx
Examples
Checkout the github repository separately for example code.
Setup
Before proceeding, make sure to have cargo
installed globally.
After node is installed, cd
to the directory where you cloned the repo (rust
sub-folder for megarepo).
Running the Examples
To run any file in the examples
folder, use the template
cargo run --example ${EXAMPLE_FILE_NAME}
Like so:
cargo run --example arrow-blocks
cargo run --example jsonstream-blocks
cargo run --example jsonstream-status
...
When adding a new example, it is sufficient to place it in the examples
folder, and use the same template as above to run it.
Dependencies
~42–59MB
~1M SLoC