elizaos-okto-plugin
v0.0.0-dev.41
Published
A comprehensive integration plugin for ElizaOS that provides access to Okto's various APIs and services, enabling seamless Web3 interactions.
Readme
elizaos-okto-plugin
A comprehensive integration plugin for ElizaOS that provides access to Okto's various APIs and services, enabling seamless Web3 interactions.
Features
- Portfolio Management: Retrieve user portfolio data and NFT balances.
- Wallet Management: Access user's wallets.
- Token Information: Get tokens list and details.
- Chain Support: Fetch supported blockchain networks.
- NFT Collections & Order History: Retrieve NFT collections and user order history.
- Token Transfer: Initiate token transfers.
- NFT Transfer: Initiate NFT transfers.
- EVM Raw Transaction: Execute raw Ethereum Virtual Machine (EVM) transactions.
Installation
npm install elizaos-okto-pluginConfiguration
The plugin requires several environment variables to be set:
# Okto specific settings
OKTO_ENVIRONMENT= # Optional. Defaults to "sandbox". Options: sandbox, staging, production.
OKTO_VENDOR_PRIVATE_KEY= # Required. Your vendor private key provided by Okto.
OKTO_VENDOR_SWA= # Required. Your vendor SWA provided by Okto.
# Google OAuth settings
GOOGLE_CLIENT_ID= # Required. Get from https://console.cloud.google.com/
GOOGLE_CLIENT_SECRET= # Required. Get from https://console.cloud.google.com/Setup Google OAuth
- Go to https://console.cloud.google.com/
- Create a new project.
- Create OAuth credentials.
- Retrieve the client ID and secret.
- Set the redirect URL to http://localhost:5000 (or your desired endpoint).
Usage
import OktoPlugin from "elizaos-okto-plugin";
runtime.registerPlugin(OktoPlugin);Contributing
Contributions are welcome! Please see the CONTRIBUTING.md file for more information.
License
This plugin is licensed under the MIT License. See the LICENSE file for more information.
