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

Download history 158/week @ 2024-12-04 185/week @ 2024-12-11 33/week @ 2024-12-18 14/week @ 2025-01-08 354/week @ 2025-01-15 10/week @ 2025-01-22 9/week @ 2025-01-29 9/week @ 2025-02-05 10/week @ 2025-02-12 17/week @ 2025-02-19 178/week @ 2025-02-26 116/week @ 2025-03-05 110/week @ 2025-03-12 66/week @ 2025-03-19

471 downloads per month

MIT license

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