Skip to content

Commit c9bbeeb

Browse files
committed
add alchemyPlugin
1 parent e0d771d commit c9bbeeb

10 files changed

Lines changed: 8163 additions & 0 deletions

File tree

plugins/alchemyPlugin/.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALCHEMY_API_KEY=your_alchemy_api_key
2+
VIRTUALS_API_TOKEN=your_virtuals_api_token

plugins/alchemyPlugin/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist/
2+
node_modules/
3+
coverage/

plugins/alchemyPlugin/.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
src
2+
tsconfig.json

plugins/alchemyPlugin/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Alchemy Plugin for Virtuals Protocol
2+
3+
The **Alchemy Plugin** provides a set of functions to retrieve on-chain data from the Alchemy API giving your agent the power to work with web3 data. With this plugin, you can fetch portfolio data—including transaction history, token details, NFT information, and NFT contracts—by querying wallet addresses across various supported networks.
4+
5+
## Features
6+
7+
- **Transaction History:** Retrieve historical transactions for a given EVM wallet.
8+
- **Tokens by Wallet:** Get the tokens held by a wallet along with associated metadata and prices.
9+
- **Token Balances by Wallet:** Fetch current token balances for a wallet.
10+
- **NFTs by Wallet:** Retrieve NFTs currently owned by a wallet, with optional paging and metadata.
11+
- **NFT Contracts by Wallet:** Retrieve distinct NFT contracts (collections) owned by a wallet, including metadata.
12+
13+
## Installation
14+
15+
The plugin comes in the `plugins` directory at the root of `game-node` official repo.
16+
17+
## Usage
18+
19+
An example of how to instantiate the plugin and create an agent is given in `src/example.ts` file.
20+
21+
All you need to do is run these commands at the root of `alchemyPlugin`:
22+
23+
- `npm run build`
24+
- `node dist/example.js`
25+
26+
27+
## Development
28+
29+
Feel free to modify or extend the plugin as needed. Contributions, bug reports, and feature requests are welcome!
30+
31+
1. Fork the repository.
32+
2. Create a new branch with your feature or bug fix.
33+
3. Submit a pull request with detailed descriptions of your changes.

0 commit comments

Comments
 (0)