Web3 & Generative NFT Programming Articles

This publication features articles about web3, crypto, blockchain, 10k generative NFT sets, and other tech. By Jim Dee of GenerativeNFTs.io  —  Jim@GenerativeNFTs.io

Member-only story

Expanding the Coinbase AgentKit: Using Chatbot Prompts to Create On-Chain NFTs and Beyond

A proof-of-concept piece using Ethscription-style NFTs! Works great and could be expanded to Bitcoin Ordinals and/or other on-chain tokens!

Cat image courtesy of Midjourney AI.

Here’s a fun little project: I was having a look at the CoinbaseSDK and noticed that, currently, its Agentkit Chatbot project doesn’t seem to allow input data (hex data / call data) to be sent along with Ethereum transactions. (Note: This is an observed limitation, not a documented one. I could be wrong, and need to explore the SDK documentation further.)

That said, Ethers.js is definitely included with the SDK, and I know it allows this. So, decided to explore the possibility of intercepting the Chatbot AI prompt, analyzing it to see if it’s a request to send a new defined type of transaction incorporating hex data, and then (if so) using Ethers.js directly to send that transaction along with the hex data.

As for the sample hex data, it could be anything at all, including plain text. But, for fun, let’s pop an image on-chain here, which is basically how so-called “Ethscriptions” NFTs work — by embedding images in Ethereum call data. (More info on them, for anyone curious.) All we need to do is to first encode an image…

--

--

Web3 & Generative NFT Programming Articles
Web3 & Generative NFT Programming Articles

Published in Web3 & Generative NFT Programming Articles

This publication features articles about web3, crypto, blockchain, 10k generative NFT sets, and other tech. By Jim Dee of GenerativeNFTs.io  —  Jim@GenerativeNFTs.io

Jim Dee — From Blockchain to Bookshelves.
Jim Dee — From Blockchain to Bookshelves.

No responses yet