project screenshot 1
project screenshot 2
project screenshot 3

@bytekode/intents-sdk

Intents helps smart wallets and dapps convert natural language to blockchain transactions!

@bytekode/intents-sdk

Created At

Superhack

Project Description

This project uses ai to extract user intents, and then compute a suitable transaction object, that can be signed either by an eoa or a smart wallet to relay the transaction.

This is an easy to install sdk that can be used by dapps, wallets on all evm chains to enable their users to execute transactions using an intent based architecture.

How it's Made

This project is a library wrapper around the intents api by Bytekode Labs. Our classifier mainly classifies each command into the following categories - transfer_native, transfer_erc20, swap, borrow, lend, bridge. To do so, we used a naive bayes classifier to generate arbitrary training data.

We've also used the alchemy resolver to fetch wallet addresses in case a user types an ens.

In case of native and erc20 transfers, computing transaction object was fairly simple, in case of swap, we used convalent to fetch the current prices of tokens, used ner with compromise to recognize crypto tokens in the user command, and fetch buy_token, sell_token and sell_token_value. Using the above, we were able to generate a tx object for swapping (using uniswap atm, will be adding functionality for other protocols soon)

background image mobile

Join the mailing list

Get the latest news and updates