Inspiration π
The drive behind DeFi Builder was ignited by our 3 years past experiences in the Blockchain field and the vast potential of DeFi and the intricacies entailed in its inception. We recognized the need for a more accessible and simplified process for creating DeFi applications, which can be daunting due to the intricate web of smart contracts and the expertise required in blockchain technology. Our goal was to democratize the creation of DeFi projects, making it feasible for smaller teams with innovative ideas to enter the space without being hindered by technical barriers or prohibitive costs. πΈ
What it does π οΈ
DeFi Builder is a codeless platform that empowers users to effortlessly build and deploy decentralized finance applications. For the NEAR hackathon, we introduced an innovative feature: the AI Smart Contract Generator. Utilizing the latest AI technology, which has been trained and fine-tuned on NEAR Rust smart contracts, JavaScript smart contracts, and AURORA EVM smart contracts, NEARAI can generate a variety of smart contracts tailored to the user's specific requests.π€ The platform's design focuses on automating complex processes like smart contract deployment, while offering integration across various blockchain networks, thus streamlining the journey from concept to market-ready DeFi project. π
Features β¨
- π€ AI Smart Contract Generator: Utilize AI to generate a variety of smart contracts based on user requests, trained on NEAR Rust, JS, and AURORA EVM smart contracts.
- π οΈ DeFi Tool Suite: Access tools for creating custom ERC-20 tokens, NEP-141 tokens, NFTs (NEP-171), DEXs, farming strategies, NFT staking, launchpads, and XCC wrapper.
- π Blockchain Integration: Enjoy seamless integration with multiple blockchain networks like AURORA and NEAR for a streamlined development process.
- π Multi-Language Support: NEARAI is trained to be able to generate smart contracts in Rust or JavaScript (JS).
- π¦ NEAR Wallet Integration: NEARAI requires a NEAR wallet connection to be fully operational. We've integrated the near-wallet-selector for ease of use.
- π NEAR-AURORA Integration Helper: Using NEARAI we help developers integrating the aurora-contract-sdk to their generated code
How we built it ποΈ
Check more technical details on Github
For the NEAR hackathon, we created an AI-driven architecture that harnesses the power of the NEAR blockchain, cloud technology, and machine learning. Our host, genez.io, was critical for handling our web services and interfacing with the frontend, built in React, and the backend, developed using Node.js.
We integrated the NEAR wallet , specifically utilizing the near.wallet-selector, to allow users to connect their NEAR wallets seamlessly, enabling interactions with smart contracts within our application. The Genezio SDK acted as a bridge between the OpenAI API and our backend, allowing us to leverage the advanced capabilities of the GPT-4 model to process and understand complex queries and execute blockchain operations.
Our data flow was meticulously designed: We stored and generated vector data using Pinecone, ensuring fast and efficient handling of large-scale vector datasets. We trained our AI model using data from the NEAR example repository, which provided a solid foundation of blockchain-specific knowledge. LangChain, coupled with GPT-4, was instrumental in generating, building, and testing smart contracts, iterating through data to refine our processes continually.
In the backend of genez.io, we created a streamlined workflow for generating contracts, building them, and rigorously testing them in the NEAR workspace. LangChain's integration with GPT-4 facilitated the generation of test files and the use of training data from test examples to optimize our smart contract deployment.
Our system was designed to be iterative, learning from each interaction to improve contract generation, testing, and the overall user experience. By building on the NEAR architecture, we were able to create a decentralized, efficient, and intelligent platform that leverages the best of AI and blockchain technology.
Challenges we ran into π€
One of the primary challenges we faced was the fine-tuning of GPT-4 to ensure it was trained on high-quality, relevant data. The process required meticulous curation of datasets to provide the language model with readable and instructive information, which is crucial for teaching the model to perform operations accurately within the context of DeFi smart contracts. π
Moreover, organizing node and vector data was a critical step in instructing the LLM (Large Language Model) effectively. We needed to structure this data in a way that made logical sense to the AI, enabling it to understand and execute the complex tasks associated with smart contract generation and DeFi applications. This step was not just about feeding data to the model but ensuring the data was organized to reflect the intricacies of smart contracts and the logic flows they require. π§
What we learned π
Our experience with DeFi Builder has taught us the delicate art of balancing simplicity with functionality, affirming that they can indeed coexist. This understanding has been pivotal in our mission to empower solo entrepreneursβthose with grand visions but who may be journeying alone for now. π
We extend heartfelt thanks to Maria for her invaluable advice on perfecting our pitch, a contribution that has greatly enriched our project and our storytelling prowess. Her input has been a cornerstone of our learning journey. π©β¨
What's next for Defi Builder π
As we look to the future, our focus is on enhancing the stability and reliability of DeFi Builder. A key area of improvement is the back-testing functionality for generated smart contracts. By refining this aspect, we aim to provide users with a robust platform where they can not only create but also validate and simulate their smart contracts in a secure test environment before deployment. This will ensure that the products developed are not just innovative but also stable and dependable. π§ͺ
In our pursuit to streamline the DeFi development process further, we plan to introduce an AI-powered Frontend Generator. This tool will use a smart contract's ABI (Application Binary Interface) to automatically generate a corresponding frontend interface. This will enable users and entrepreneurs to rapidly deploy a user interface to interact with their smart contracts, significantly speeding up the testing and iteration phases of project development. π₯οΈ
Additionally, we envision the creation of a marketplace for DeFi modules, where developers can monetize their work by selling custom modules. This will not only foster a collaborative ecosystem but also enhance the versatility of DeFi Builder. Users will be able to piece together different modules like building blocks, customizing and extending the functionality of their dApps to suit more complex requirements. π
Our roadmap is ambitious, but with the continued support of our partners and the feedback from our community of Web3 entrepreneurs, we are confident in our direction. We're committed to making DeFi Builder a one-stop shop for decentralized application development, continuously expanding the boundaries of what can be achieved in the DeFi space. π
Pitch Competition Defi Builder NEARAI
Built With
- css3
- genez.io
- javascript
- langchain
- openai
- pinecode
- react
- rust
- typescript


Log in or sign up for Devpost to join the conversation.