Skip to content
by Unity Nodes
NEAR Protocol

Leveraging Account Abstraction for Minting NFTs on ChatGPT - Nate Geier, Mintbase - NEAR at ETHCC

about 14:48 long

Nothing is loaded from YouTube until you press play, and then without tracking cookies.

About this video

Mintbase: mintbase.xyz -- Join NEAR's community: Website: near.org Reddit:   / nearprotocol   Discord: near.chat Medium:   / nearprotocol   Blog: near.org/blog Twitter:   / nearprotocol   GitHub: github.com/near github.com/nearprotocol Dev Docs: docs.near.org Create a wallet: wallet.near.org/create Apps on NEAR: awesomenear.com Learn to Build On NEAR: near.university Grants & Funding: near.org/grants #Blockchain #FutureisNEAR #NEAR #nearprotocol #nft #dao

Transcript

2,531 words

Captions as YouTube publishes them, usually machine-generated, so product and people names can be misheard.

  1. 0:12

    I'm sure everyone has kind of heard account abstraction a bunch uh who's heard the term account abstraction the last I don't know uh month or two so okay how many people know what that is all right so fair enough uh and then Chachi PT how many people have heard of that okay this is a buzzword soup I get it uh but literally I'm not a fad guy I don't get into the fads I remember everyone was like fractional nft ownerships all these sort of things but

  2. 0:44

    for me we're diving pretty heavy into these pieces and I thought it was fascinating that n's one of its core big Innovations is its account system and there's actually not a ton of information about it I go on YouTube I go into all these different places so this is going to focus a little bit more on the account system than the chaty PT and if we have more time I'll go into the into why we're actually utilizing

  3. 1:07

    the heck out of this stuff and so uh what is mint base uh we've got a ton of different interfaces right we have a minor we can create your own uh smart contracts you can mint on it you can go through all these different places but you don't have to go through our interface to use our system you can go on boss and actually purchase nfts on their system and so we thought well heck if it doesn't matter if we going to

  4. 1:31

    mbase doxyz then maybe we can use chat GPT to uh to you know use our our protocol whether it's hitting our indexer or whether it's using our smart contracts and using our affiliate direct system so how do we get a random user on chat GPT to create transactions and this is where we accidentally created Fasto so let's look at ethereum so basically how ethereum works is you have an EA which is an account um and you have a private key and then that's it like you can't change it you

  5. 2:05

    you send someone the seed phrases and that's that's all you get forever um imagine how many people at polygon onboarded Folks at you know big corporate Brands saying you know we can develop all these different nfts for you here's your contract but the reality is all those BD people are in control of those private Keys you can't go whoopsie we're going to take away our access and you guys can have it uh I mean think of all the shared private keys out in the

  6. 2:28

    world that are just floating around uh due to this core thing that I'm bringing up so that aside we have in ethereum land you've got the account and you have a contract type of account they're two different worlds one of them you can put smart contracts on the other one you can just sign transactions so ethereum is now having this ERC 4337 uh and it's basically trying to do what nosis and Argent have been doing for a while which is basically allowing signatures to happen on a smart contract trying to eventually get rid of these EA

  7. 3:01

    accounts um if that doesn't make sense that's okay cuz we're going to get into the near account system so near is both of those things nate. near is both a human uh it's a dow uh I could publish a smart contract to Nate near it's all the same thing um and the private key so notice I have one of these little uh signature or a little lock guy right that's a private key so on there we can have a load of these we can have

  8. 3:33

    thousands of these uh and every single different key can do multiple different things I can connect to Mint base I can connect to Paras uh maybe that authorization allows mint base to actually spend .25 near on their behalf without going to the wallet uh and there's I mean it's just just incredible all the different things you can do with the account management system uh and you can see we have three different full

  9. 3:57

    access keys on here any one of those can do whatever they want including deleting keys so they can remove other people's Keys uh imagine I'm a BD at polygon I want to get someone bootstrapped up to uh basically build all these different things and then I want to hand that off to maybe Nike or a big corporation uh and then really you know those nfts are minted there no one can do anything about it in our world we can remove our access and create access for them anytime we want later on or we can get

  10. 4:29

    real weird with it and just remove all the keys Al together which is actually kind of fascinating because once this happens and you have zero keys on a account or contract uh that is as good as that forever it's going to be that forever uh no one can update it uh and there's a lot of use cases for for that too um so mint base let's talk about what our system is a bit uh so we've had over 1,521 deployed contracts on our on our either UI or through our contract

  11. 5:02

    Factory all of these have been audited and yes uh we have full access keys to all of them uh everyone go oo evil you guys have to understand what that means we could destroy all of your contracts tomorrow um and so here I'm going to lean in there's 2335 contracts on near in total uh and a lot of people also have those full access keys that can dry destroy your FTS forever um but they can also remove it and we can also remove it and guess what you can also remove it so the

  12. 5:37

    reason we're keeping our access Keys is because the the standards are constantly evolving let's say we've done a do a new metadata standard uh that if the metadata changes you update you know your your funny pfp with a mustache later on um the standard changes we can rip through all 1,500 contracts and now everyone's compliant if you decide decide hey Fu mint base I don't really like the fact that you have that control you can go ahead and in our open source contracts hit Del leak key but oh not

  13. 6:09

    yet first add a key add your key because if you delete your key first then it's just going to be that way forever which is also kind of cool too so um so what does this have to do with chaty BT and buzzwords um okay so uh microchip uh GNU is our head of innovation guy he's like AI is super cool I said ah grumpy man and he said well let me hook it up to our indexer and let's see what happens I was like okay and then within like an hour and a half later he's like look at all this crazy stuff we can do

  14. 6:42

    so we actually created a mint based search plugin uh where you can query any information on uh near protocol so if I come into chat GPT if you have the chat GPT plugin uh you can upload wow that's a lot of information in 6 minutes and 50 seconds right let's take a breath okay slowing it down okay let's go uh get me all get me four let's go nine contracts uh created by nate.

  15. 7:20

    near so it's going to go it's going to search um and this is going to impress maybe one person here here maybe a couple uh because obviously I can go to a query and I can get these informations and these different bits but where do this comeing to near so here's all these contracts uh also I can go into my interface and I can see well heck these are all my contracts deployed uh by Nate

  16. 7:46

    do. near um we can go into let's see one of these contracts uh nate. mbase one uh show me some information on tokens in one let's see if that pops something up so me show me some information on tokens in one so now we're having a conversation with it give me those contracts tell me more about that those those tokens oh great uh this is the the Chloe we can actually go in here we can

  17. 8:22

    see that the owner of it is Chloe we can ask how many owners what was the previous owner of that thing we can click on the link and we can see the image cool that Chloe the dev actually bought this nft neat uh that's one of my lisban ones and we can actually dive into manage my nfts and I'm assuming I own it here somewhere so going back on track to account uh abstraction so what does this mean in the the query land so before if you're not if you're a developer this makes sense I'm going to

  18. 9:01

    put together a big old query and do all these sort of things now we have complete access to saying screw all that because you know what chat gbt and open AI did they said hey we figured out how this crazy stuff graphql works and we've dumbed it down and now we can communicate to a blockchain through basic human readable conversations uh get me all the tokens tell me more about the tokens uh so we even got weirder and we are now developing a mint based

  19. 9:25

    action plugin where we can actually make transactions uh based on those conversations so that was a great uh nft that I just saw can you mint that exact same token on my contracts can you then transfer that nft to someone else um and I think that this is just fascinating back to fast off so how are we able to create accounts uh for chaty PT users so essentially we have chat PT uh the relayer is goes and creates a

  20. 10:01

    public and private key Fair it gets stored on Google cloud and we can mint tokens from chat GPT I know everyone's like oh my God that's custodial stop uh but yeah you're right it is kind of custodial so with this whole account abstraction thing we're like well maybe we can send them an email with a link that removes our access and gives them access right away later on if they want to do that but then we're like oh that's still kind of painful and custodial so

  21. 10:25

    we kind of looked at the drawing board and we're like okay cool uh what if we just do the same thing and connect uh uh creating public and private key pairs uh and saving those to pass key so maybe on Google Cloud we have the full access but also on your phone you have a full access and on Chrome you have a whole separate full access all of these accesses are able to basically remove us

  22. 10:49

    at any time so we're kind of getting closer to the to this part where you can actually just sign with face ID I noticed uh boss is now implementing this we just just saw that there's an mpm script uh library that allows us to actually crank and do that and that's pretty neat so if we want we can go uh even a step further of okay here's TBT working how do we actually get that to work uh in our own ecosystem so

  23. 11:21

    I'm going to refresh this page I'm going to say so now we have chat GPT on our own site so M base. A is going to be coming a thing you'll have a nice big prompt that you'll be able to see all these uh these conversations happening making transactions happen um and to us where this is heading is minting a token is a pain in the ass uh can you imagine a world where you can just hook up uh

  24. 11:44

    some other data data library of like all the different fashion brands and being able to mass mint all of those different things with all the different properties in one you know keystroke so we're we're getting there but if we go we can say uh let's create an account uh okay so I'm going to use a biometric account creation so now we've just created this guy uh let's go into here so we will notice on Boss this account just got created so it

  25. 12:26

    exists doesn't have any components we go in here and just see what we just did without any near um this was created 22 seconds ago we've just created a new account uh and then now I'm going to come in here and hopefully I'm let's say use uh generate a uh mint transaction generate a random mint generate a mint transaction hopefully that'll work I don't know uh so this account was just created uh it doesn't have any tokens on it doesn't have anything

  26. 13:09

    altogether uh but we're just going to generate a random uh sort of this is what interacting with near is the reality it's just basically an object that you just throw into the chain and then hopefully that information does good and that's what Min Bas is we're just a world where we help you organize that data and talk to the blockchain I don't care if you're user a dow a vending machine uh our job is that that information gets organized and it's correct information of what you're hoping and we can generate and create

  27. 13:39

    things from that so I'm going to so here are all of my uh access keys that we have so CF so I've created all these this morning we're going to do this one CF guy we're going to use my fingerprint and we're going to submit the transaction let's see if this works CF okay you can see there's only those transactions did we create another transaction on top kind of takes a little bit of

  28. 14:12

    time oh let's see if this component nope oh did I do it right mikro so we're just waiting for the world to just work right there it is so we can see we actually submitted a transaction through a random uh account creation and I don't know and to me this is where boss is heading right it's like kind of the window into hey all these nutty projects are doing all these different things

  29. 14:48

    whether it's on Terminal or through a back office or a shop and we can actually see all this information coming together so without further Ado I only took up 14 minutes of your guys' time instead of the 30 minutes I feel like I gave you all of what I know and uh yeah let's go any questions