๐Ÿš€ Overview

May 11, 2025 ยท View on GitHub

0xGasless AgentKit

0xGasless AgentKit

0xGasless AgentKit lets you build AI agents that can trade, manage funds, and interact with DeFi protocols in natural language.

NPM Downloads GitHub License
Typescript Version PyPI - Python Version

Table of Contents

๐Ÿš€ Overview

0xGasless AgentKit is a powerful toolkit for building AI agents that can interact with blockchain networks and DeFi protocols. It enables gasless transactions and account abstraction on EVM chains, making it easier to create sophisticated blockchain applications.

Create agents that can:

  • Execute gasless transactions without holding native tokens
  • Transfer and trade tokens
  • Deploy smart contracts
  • Interact with DeFi protocols
  • Get wallet details and balances
  • Create and manage smart accounts

How it works

0xGasless AgentKit leverages ERC-4337 account abstraction to enable gasless transactions:

  1. Configure your agent with a wallet
  2. Use the built-in tools for blockchain interactions
  3. Execute transactions without requiring native tokens for gas
  4. Integrate with any AI framework of your choice

โœจ Key Features

  • Framework-agnostic: Common AI Agent primitives that can be used with any AI framework
  • Python and Node.js Support: Full support for both Python and TypeScript
  • Gasless Transactions: Execute transactions without holding native tokens
  • Account Abstraction: Built on ERC-4337 standard
  • Multi-Chain Support: Works across major EVM chains:
    • BSC (56)
    • Avalanche (43114)
    • Base (8453)
    • Sonic (146)
    • Moonbeam (1284)

Supported Onchain Actions:

  • Getting wallet details and balances
  • Transferring and trading tokens
  • Coming Soon:
    • Deploying ERC-20 tokens
    • Deploying ERC-721 tokens and minting NFTs
    • Buying and selling Dex Swap ERC-20 coins
    • Wrapping ETH to WETH on Base

๐Ÿ“š Examples

Check out agentkit-langchain/examples for inspiration and help getting started!

  • Chatbot Typescript: Simple example of a Node.js Chatbot that can perform complex onchain interactions, using OpenAI.

๐Ÿ—๏ธ Repository Structure

AgentKit is organized as a monorepo that contains multiple packages:

./
โ”œโ”€โ”€ agentkit-core/
โ”‚   โ””โ”€โ”€ typescript/
โ”‚       โ”œโ”€โ”€ BaseActions/
โ”‚       โ”‚   โ”œโ”€โ”€ SendTransaction.ts
โ”‚       โ”‚   โ”œโ”€โ”€ SignMessage.ts
โ”‚       โ”‚   โ”œโ”€โ”€ EncodeFunctionData.ts
โ”‚       โ”‚   โ”œโ”€โ”€ FormatHelpers.ts
โ”‚       โ”‚   โ”œโ”€โ”€ GetBalance.ts
โ”‚       โ”‚   โ”œโ”€โ”€ GetStatusFromUserop.ts
โ”‚       โ”‚   โ””โ”€โ”€ ReadContract.ts
โ”‚       โ””โ”€โ”€ Actions/
โ”œโ”€โ”€ agentkit-demo/
โ”‚   โ”œโ”€โ”€ typescript/
โ”‚   โ””โ”€โ”€ examples/

Base Actions

ActionDescriptionFile
SendTransactionExecute blockchain transactionsSendTransaction.ts
SignMessageSign messages for authenticationSignMessage.ts
EncodeFunctionDataEncode function calls for smart contractsEncodeFunctionData.ts
FormatHelpersUtility functions for data formattingFormatHelpers.ts
GetBalanceRetrieve token balancesGetBalance.ts
GetStatusFromUseropCheck transaction statusGetStatusFromUserop.ts
ReadContractRead data from smart contractsReadContract.ts

High-Level Actions

ActionDescriptionFileBase Actions Used
SmartTransferExecute gasless token transferssmartTransferAction.tsSendTransactions
CheckTransactionMonitor transaction statuscheckTransactionAction.tsCheckTransactions
GetAddressRetrieve wallet addressesgetAddressAction.tsGetAddressActions
GetBalanceCheck token balancesgetBalanceAction.tsGetBalance
GetTokenDetailsFetch token informationgetTokenDetailsAction.tsGetTokenDetails
SmartSwapPerform token swapssmartSwapAction/SwapTransactions

๐Ÿš€ Quickstarts

๐Ÿ“˜ Typescript

By use case

๐Ÿ› ๏ธ Supported Tools and Frameworks

Tools

PluginTools
Smart TransferExecute gasless token transfers
Smart SwapPerform token swaps without gas
Token CreationDeploy new tokens
Balance CheckCheck token balances
Transaction MonitorMonitor transaction status
Contract ReaderRead smart contract data

Common Use Cases

Use CaseRequired ActionsDescription
Token TransferGetAddress, GetBalance, SmartTransfer, CheckTransactionComplete flow for transferring tokens
Token CreationCreateFourmemeToken, GetTokenDetailsDeploy and verify new tokens
Token SwapGetBalance, SmartSwap, CheckTransactionSwap tokens with gasless execution
Balance CheckGetAddress, GetBalanceCheck balances for any token
Transaction MonitoringCheckTransactionMonitor transaction status

๐Ÿ’ป Contributing

AgentKit welcomes community contributions. See CONTRIBUTING.md for more information.

Some ways you can contribute:

  • Adding new actions to the core package
  • Updating existing Langchain Toolkits or adding new ones
  • Creating new AI frameworks extensions
  • Adding tests and improving documentation

๐Ÿ“– Documentation

๐Ÿ”’ Security

The AgentKit team takes security seriously. See SECURITY.md for more information.

๐Ÿ“„ License

Apache-2.0

๐Ÿค Community