@elizacn/plugin-polkadot
v0.0.0-alpha.5
Published
This is a plugin for using Eliza to interact with the Polkadot network. Defaults to the Polkadot mainnet, but can be customized to use other networks by changing the RPC in the `.env` file at `POLKADOT_RPC_URL`.
Downloads
15
Readme
@elizaos/plugin-polkadot - Plugin for Polkadot
This is a plugin for using Eliza to interact with the Polkadot network. Defaults
to the Polkadot mainnet, but can be customized to use other networks by changing
the RPC in the .env file at POLKADOT_RPC_URL.
Actions
transfer: This action enables the transfer of DOT tokens from the agent's wallet (as defined by the keyring generated from
POLKADOT_SEED) to another wallet. To use, just mention the transfer of DOT tokens to a Polkadot account.name:
SEND_POLKADOTMessage sample:
Send 100 DOT to 5GWbvXjefEvXXETtKQH7YBsUaPc379KAQATW1eqeJT26cbsK
Usage & Testing
Detailed testing steps
In
.envyou should set the value forPOLKADOT_ADDRESS(this is the public address for the agent account - learn how to get one here) andPOLKADOT_SEED(seed phrase for the same account).Transfer DOT
- To test the transfer function, you need tokens in your Polkadot account. You can acquire DOT tokens from various exchanges or use the Polkadot Faucet for testnet tokens.
- Run the agent and prompt it with: "send DOT to
" - e.g.
send 1 DOT to 5GWbvXjefEvXXETtKQH7YBsUaPc379KAQATW1eqeJT26cbsK - Assuming everything goes smoothly, the agent returns with the Tx Hash and Block Hash. The tx hash can be checked on the Polkadot block explorer at https://polkadot.subscan.io/
Resources
- Polkadot Documentation
- Set up a Polkadot Account -
Learn how to get your
POLKADOT_SEED - Find more Network Information like RPC endpoints
- Learn more about Polkadot
