{"id":25882823,"url":"https://github.com/near-agent/elizaos-plugin-multichain","last_synced_at":"2026-05-06T14:38:09.067Z","repository":{"id":278410225,"uuid":"935431977","full_name":"near-agent/elizaos-plugin-multichain","owner":"near-agent","description":"Eliza plugin for multichain operations","archived":false,"fork":false,"pushed_at":"2025-02-23T05:14:34.000Z","size":71,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T16:19:38.316Z","etag":null,"topics":["ai","bitcoin","chain-signatures","cosmos","crypto","elizaos-plugins","ethereum","evm","multichain","near","near-intents"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/near-agent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-19T12:41:30.000Z","updated_at":"2025-02-27T07:54:19.000Z","dependencies_parsed_at":"2025-02-23T06:22:23.000Z","dependency_job_id":null,"html_url":"https://github.com/near-agent/elizaos-plugin-multichain","commit_stats":null,"previous_names":["think-in-universe/plugin-multichain","near-agent/elizaos-plugin-multichain"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/near-agent/elizaos-plugin-multichain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/near-agent%2Felizaos-plugin-multichain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/near-agent%2Felizaos-plugin-multichain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/near-agent%2Felizaos-plugin-multichain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/near-agent%2Felizaos-plugin-multichain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/near-agent","download_url":"https://codeload.github.com/near-agent/elizaos-plugin-multichain/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/near-agent%2Felizaos-plugin-multichain/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32698724,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T08:33:17.875Z","status":"ssl_error","status_checked_at":"2026-05-06T08:33:17.221Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","bitcoin","chain-signatures","cosmos","crypto","elizaos-plugins","ethereum","evm","multichain","near","near-intents"],"created_at":"2025-03-02T16:19:14.381Z","updated_at":"2026-05-06T14:38:09.023Z","avatar_url":"https://github.com/near-agent.png","language":"TypeScript","funding_links":[],"categories":["🧩 Plugins"],"sub_categories":["⛓️ Blockchain \u0026 DeFi"],"readme":"# @elizaos/plugin-multichain\n\nCross-chain integration plugin for Eliza OS that enables seamless token transfers and swaps across multiple blockchain networks using Chain Signatures and NEAR Intents technologies.\n\n## Overview\n\nThis plugin serves as a unified interface for cross-chain interactions, allowing seamless token transfers and swaps across major blockchain networks. It leverages Chain Signatures and NEAR Intents for secure multi-chain transactions and cross-chain token swap.\n\n## Features\n\n- Cross-chain token transfers\n- Multi-chain token swaps\n- Support for major blockchain networks:\n  - Bitcoin\n  - Ethereum and EVM chains:\n    - Polygon\n    - BNB Chain\n    - Avalanche\n    - Arbitrum\n    - Optimism\n  - Cosmos ecosystem (coming soon)\n- Chain Signatures integration\n- NEAR Intents for optimized execution\n- Portfolio tracking across chains (coming soon)\n- Comprehensive error handling\n\n## Installation\n\n```bash\npnpm install @elizaos/plugin-multichain\n```\n\n## Configuration\n\nThe plugin requires environment variables for each supported chain:\n\n```env\n# NEAR Configuration (for Chain Signatures and Intents)\nNEAR_WALLET_SECRET_KEY=your-near-private-key\nNEAR_ADDRESS=your-account.near\nNEAR_NETWORK=mainnet\nNEAR_RPC_URL=https://rpc.mainnet.near.org\n\n# Ethereum Configuration\nETH_RPC_URL=your-eth-rpc-url\n\n# EVM Chain Configurations\nPOLYGON_RPC_URL=your-polygon-rpc-url\nBSC_RPC_URL=your-bsc-rpc-url\nAVAX_RPC_URL=your-avax-rpc-url\nARBITRUM_RPC_URL=your-arbitrum-rpc-url\nOPTIMISM_RPC_URL=your-optimism-rpc-url\n\n# Global Settings\nDEFAULT_SLIPPAGE=0.01  # 1% slippage tolerance\n```\n\n## Usage\n\n### Multi-Chain Transfer\n\n```typescript\nimport { multichainPlugin } from \"@elizaos/plugin-multichain\";\n\n// Transfer tokens across chains\nconst result = await eliza.execute({\n    action: \"MULTI_CHAIN_TRANSFER\",\n    content: {\n        chain: \"BTC\",\n        networkId: \"testnet\",\n        token: null,  // Native BTC\n        amount: \"0.1\",\n        recipient: \"tb1qmw3xw3y8jtm4054w02kfz58tmf6pcse02twrh8\"\n    },\n});\n```\n\n### Cross-Chain Swap\n\n```typescript\nconst result = await eliza.execute({\n    action: \"CROSS_CHAIN_SWAP\",\n    content: {\n        sourceChain: \"ETH\",\n        targetChain: \"COSMOS\",\n        inputToken: \"ETH\",\n        outputToken: \"ATOM\",\n        amount: \"1.0\",\n        recipient: \"cosmos1...\"\n    },\n});\n```\n\n## API Reference\n\n### Actions\n\n#### `MULTI_CHAIN_TRANSFER`\n\nTransfers tokens on multiple chains with a single account\n\n```typescript\n{\n  action: 'MULTI_CHAIN_TRANSFER',\n  content: {\n    chain: string,           // The blockchain (e.g., \"BTC\", \"ETH\", \"COSMOS\")\n    networkId: string,       // The network of the blockchain (e.g. \"mainnet\", \"testnet\")\n    token: string,           // Token to transfer\n    amount: string,          // Amount to transfer\n    recipient: string        // Recipient address on target chain\n  }\n}\n```\n\n#### `CROSS_CHAIN_SWAP`\n\nExecutes a token swap across different chains.\n\n```typescript\n{\n  action: 'CROSS_CHAIN_SWAP',\n  content: {\n    sourceChain: string,     // Source blockchain\n    targetChain: string,     // Target blockchain\n    inputToken: string,      // Input token symbol\n    outputToken: string,     // Output token symbol\n    amount: string,          // Amount to swap\n    recipient: string,       // Recipient address\n    slippage?: number        // Optional: slippage tolerance\n  }\n}\n```\n\n### Providers\n\n#### MultiChain Provider\n\nProvides cross-chain portfolio tracking and network status.\n\n```typescript\nconst portfolioInfo = await eliza.getProvider(\"multichain\");\n// Returns consolidated portfolio including:\n// - Balances across all chains\n// - USD values\n// - Network status\n```\n\n## Troubleshooting\n\n### Common Issues\n\n1. **Cross-Chain Transaction Failures**\n    - Verify sufficient gas/fees on source chain\n    - Check Bitcoin UTXO availability\n    - Confirm bridge/protocol liquidity\n    - Monitor transaction status on both chains\n\n2. **Network Issues**\n    - Verify RPC endpoints\n    - Check network congestion\n    - Monitor bridge status\n    - Ensure chain signatures are valid\n\n3. **Swap Issues**\n    - Verify token pair liquidity\n    - Check price impact\n    - Monitor slippage\n    - Confirm route availability\n\n## Security Best Practices\n\n1. **Key Management**\n    - Secure storage of private keys\n    - Regular key rotation\n    - Multi-signature support\n    - Activity monitoring\n\n2. **Transaction Safety**\n    - Input validation\n    - Amount limits\n    - Address verification\n    - Transaction simulation\n\n3. **Network Security**\n    - Secure RPC endpoints\n    - Fallback providers\n    - Rate limiting\n    - Chain signature verification\n\n## Testing\n\n```bash\npnpm test\n```\n\nDevelopment mode:\n\n```bash\npnpm test:watch\n```\n\n## Dependencies\n\n- multichain-tools: ^4.0.0\n- near-api-js: ^5.0.1\n- bignumber.js: ^9.1.2\n- node-cache: ^5.1.2\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for contribution guidelines.\n\n## Credits\n\nThis plugin integrates with multiple blockchain networks and their respective technologies:\n\n- Bitcoin Network\n- Ethereum and EVM-compatible chains\n- NEAR Protocol (Chain Signatures and NEAR Intents)\n\nSpecial thanks to:\n- The NEAR Protocol team for developing the NEAR blockchain and Chain Signatures\n- The Aurora team for developing the NEAR Intents\n- The Eliza community for their contributions and feedback.\n\n## License\n\nThis plugin is part of the Eliza project. See the main project repository for license information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnear-agent%2Felizaos-plugin-multichain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnear-agent%2Felizaos-plugin-multichain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnear-agent%2Felizaos-plugin-multichain/lists"}