{"id":25245877,"url":"https://github.com/lit-protocol/agentwallet-python","last_synced_at":"2026-02-13T20:03:59.517Z","repository":{"id":276014416,"uuid":"927914094","full_name":"LIT-Protocol/agentWallet-python","owner":"LIT-Protocol","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-06T18:47:48.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-01T09:02:11.031Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/LIT-Protocol.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,"zenodo":null}},"created_at":"2025-02-05T18:47:02.000Z","updated_at":"2025-02-06T18:47:51.000Z","dependencies_parsed_at":"2025-02-05T20:43:38.741Z","dependency_job_id":"d75543d9-c2d6-4fea-9f57-164f945cc0e2","html_url":"https://github.com/LIT-Protocol/agentWallet-python","commit_stats":null,"previous_names":["lit-protocol/agentwallet-python"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LIT-Protocol/agentWallet-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2FagentWallet-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2FagentWallet-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2FagentWallet-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2FagentWallet-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LIT-Protocol","download_url":"https://codeload.github.com/LIT-Protocol/agentWallet-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2FagentWallet-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29416040,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2025-02-12T02:03:15.932Z","updated_at":"2026-02-13T20:03:59.500Z","avatar_url":"https://github.com/LIT-Protocol.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lit Protocol Agent Wallet Python SDK\n\nA Python SDK for interacting with Lit Protocol's Agent Wallet and executing ERC20 transfers. This SDK provides a wrapper around Lit Protocol's tools and Agent Wallet functionality.\n\n## Prerequisites\n\n- Python 3.7+\n- Node.js and npm\n- `@lit-protocol/agent-wallet` npm package\n- Required Python packages (install via pip):\n  - web3\n  - eth-utils\n  - eth-typing\n  - python-dotenv\n  - lit-python-sdk\n\n## Installation\n\n1. First, install the required Node.js package:\n```bash\nnpm install @lit-protocol/agent-wallet\n```\nInstall the Python dependencies:\n\n```bash\npip install web3 eth-utils eth-typing python-dotenv lit-python-sdk\n```\nSet up your environment variables:\nCreate a .env file in your project root and add:\n\n```bash\nLIT_PRIVATE_KEY=your_lit_private_key_here\n```\nFeatures\n\nERC20 token transfers using Lit Protocol\nTool management (listing, searching, and retrieving tool information)\nSession signature management\nAddress validation\nNetwork-specific tool queries\n\nUsage Examples\nBasic Tool Management\npythonCopyfrom agent_wallet_python.client import AgentWalletClient\n\n# Initialize the client\nclient = AgentWalletClient()\n\n# List available tools\n```bash\ntool_names = client.get_available_tool_names()\nprint(f\"Available tools: {', '.join(tool_names)}\")\n```\n# Get specific tool\n```bash\ntool = client.get_tool_by_name(\"ERC20Transfer\", network=\"datil-dev\")\nERC20 Token Transfer\npythonCopyfrom lit_erc20_transfer import LitERC20Transfer\n```\n# Initialize transfer client\n```bash\ntransfer_client = LitERC20Transfer(network=\"datil-dev\")\ntransfer_client.connect()\n```\n# Execute transfer\nresult = transfer_client.execute_transfer(\n    pkp_eth_address=\"0xYourPKPAddress\",\n    token_address=\"0xTokenAddress\",\n    recipient_address=\"0xRecipientAddress\",\n    amount=\"1.0\",\n    rpc_url=\"https://your-rpc-url\",\n    chain_id=84532\n)\nAPI Reference\nLitERC20Transfer\nMethods\n\nconnect(): Initialize and connect to Lit Protocol\nexecute_transfer(pkp_eth_address, token_address, recipient_address, amount, rpc_url, chain_id, decimals=18): Execute an ERC20 token transfer\nget_session_signatures(): Get session signatures for Lit Protocol\nvalidate_address(address): Validate Ethereum addresses\nvalidate_amount(amount): Validate transfer amounts\n\nAgentWalletClient\nMethods\n\nlist_all_tools(): Get all available tools across networks\nlist_tools_by_network(network): Get tools filtered by network\nget_tool_by_ipfs_cid(cid): Get a tool by its IPFS CID\nget_tool_by_name(name, network=None): Get a tool by its name\nget_available_tool_names(): Get a list of all available tool names\n\nError Handling\nThe SDK includes comprehensive error handling for:\n\nInvalid addresses\nInvalid amounts\nNetwork connection issues\nTool retrieval failures\nSession signature errors\n\nNetwork Support\nThe SDK supports multiple networks:\n\ndatil\ndatil-dev\ndatil-test\n\nSecurity Considerations\n\nAlways keep your LIT_PRIVATE_KEY secure and never commit it to version control\nValidate all addresses and amounts before executing transfers\nUse appropriate session expiration times\nImplement proper error handling in production environments\n\nContributing\nContributions are welcome! Please submit pull requests with any improvements or bug fixes.\nLicense\n[MIT]\nCopy\nYou can now copy this entire code block and use it as your README.md file. The formatting will be preserved exactly as shown.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flit-protocol%2Fagentwallet-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flit-protocol%2Fagentwallet-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flit-protocol%2Fagentwallet-python/lists"}