Transcription: OpenAgents Episode 096 - Payments & Payouts
June 9, 2026 ยท View on GitHub
Source: https://x.com/OpenAgentsInc/status/1795535732032831719 Wiki source: https://raw.githubusercontent.com/wiki/OpenAgentsInc/openagents/Video-Series.md Media title: OpenAgents - Episode 096: Payments & Payouts We review our initial integration... Upload date: 20240528 Transcription model: mlx-whisper/mlx-community/whisper-tiny Generated at: 2026-06-01T18:14:13Z
Machine-generated transcript. Review speaker labels and wording before using this as quote-grade source material.
[00:00] Christopher David: Hey folks, let's try Payons of People.
[00:03] Christopher David: So we just added a Sat's Wall and Bitcoin Sat's with basic withdrawal via Bolt 11 Lightning
[00:10] Christopher David: invoice.
[00:11] Christopher David: Let's test it out.
[00:13] Christopher David: So from any chat, if I go up here, top right, I go to Wallet.
[00:18] Christopher David: Balance zero Sat's Bolt 11 invoice.
[00:21] Christopher David: Okay, so this is kind of step one of our new little payments wiki would drew this up
[00:28] Christopher David: how we're implementing payments.
[00:31] Christopher David: There's a difference between what we're calling platform payments and protocol payments.
[00:36] Christopher David: Platform payments are payments kind of via theopenagents.com.
[00:40] Christopher David: We're kind of modeling the new user balances and such off of how stacker news does
[00:45] Christopher David: it.
[00:46] Christopher David: So if you're familiar with that, pretty much the same idea.
[00:49] Christopher David: You have a balance.
[00:50] Christopher David: You can cash it out when you want to via Lightning invoice.
[00:53] Christopher David: We will over time be doing protocol payments, which are more kind of programmatic, decentralized
[00:57] Christopher David: payments via our network of nodes and kind of shifting from platform to protocol payments
[01:03] Christopher David: over time.
[01:04] Christopher David: That can use more of like L4 or 2, Noshra Wallet connect blah blah blah.
[01:07] Christopher David: But for here, we're going to keep for now we're going to keep things simple.
[01:12] Christopher David: And this is just because we want to be making like thousands upon thousands of payments
[01:16] Christopher David: every minute.
[01:17] Christopher David: And the lightning infrastructure as it exists today just doesn't really support that if
[01:21] Christopher David: we want to do it as fast as that.
[01:24] Christopher David: And as reliably as.
[01:27] Christopher David: Making thousands of payments.
[01:28] Christopher David: So we'll do a whole bunch of payments.
[01:30] Christopher David: Those are database table updates basically and then you cash out whenever you want.
[01:33] Christopher David: And then we'll set up some stuff like if you have a lightning address, you can configure
[01:38] Christopher David: it for auto payouts if it receives a certain threshold, might limit that the pro users
[01:42] Christopher David: at least to start.
[01:43] Christopher David: But anyway, we got some basic implementation of this now to get us going.
[01:47] Christopher David: Okay, so I've got a wallet and I've got a script them about to run that's going to
[01:51] Christopher David: give everybody some sats so we can test this out.
[01:55] Christopher David: The script is in the get every bow on the bladians get every bow you can see it's in the app.
[02:03] Christopher David: App commands app console commands mass pay.
[02:06] Christopher David: So here's what's going to do.
[02:08] Christopher David: It's going to look up all users.
[02:10] Christopher David: We're going to split that into two lists pro or not.
[02:15] Christopher David: You want to pay pro people more because we like them a little bit better.
[02:18] Christopher David: Sorry.
[02:20] Christopher David: Paying people in the currency of BTC and that's an enum you can see we've got or will support
[02:27] Christopher David: at some point BTC will experiment with eCash will experiment with tap root assets and if
[02:32] Christopher David: you like the dirty US dollar you can use that.
[02:36] Christopher David: So we're doing this in sats for now because that's the most important and the default.
[02:41] Christopher David: We're going to pay 500 sats to all of the non pro users.
[02:45] Christopher David: We're going to pay 2500 sats to the pro users and we're also playing it by 1000 because
[02:49] Christopher David: the database expects it in msats and then we're going to do the payout and will this work?
[02:58] Christopher David: I don't know.
[02:59] Christopher David: It worked on my computer.
[03:01] Christopher David: So I'm going to run this command.
[03:03] Christopher David: Well first let's just take a look at the database which is empty in the production database
[03:11] Christopher David: balances nothing and let's just see what this does.
[03:15] Christopher David: Doubt.
[03:16] Christopher David: I'm going to run for it.
[03:24] Christopher David: Mass payments accessible.
[03:25] Christopher David: That's where I like to see.
[03:26] Christopher David: All right we now have a lot of.
[03:34] Christopher David: Balances.
[03:36] Christopher David: Okay, got a lot of 500,000 aka 500 sats and then there's the pro users.
[03:45] Christopher David: Very nice.
[03:46] Christopher David: Okay.
[03:48] Christopher David: So that should put payments data in there and then we've got payment destination and sources.
[03:56] Christopher David: It's a little more complex than just like I don't know one table because this is set
[04:03] Christopher David: up for multi to multi payments.
[04:05] Christopher David: So if we take a look at the payments wiki here based on how we structured the database,
[04:13] Christopher David: basically any user or agent can pay any user or agent and any number of users or agents
[04:24] Christopher David: can pay any number of users or agents.
[04:29] Christopher David: I don't know what all use cases that will make sense for that but we at least have the
[04:33] Christopher David: ability of the database to do any kind of craziness around people and agents paying
[04:39] Christopher David: people and agents.
[04:41] Christopher David: Okay, well let's see if it actually works.
[04:43] Christopher David: Let me see if I can cash out my sats.
[04:46] Christopher David: Let me refresh open agents.com slash a wallet.
[04:49] Christopher David: I have 2,500 sats because I'm a pro user.
[04:52] Christopher David: All right.
[04:55] Christopher David: All right, how should I cash this out?
[04:58] Christopher David: Right now it's only via Bolt 11 invoice.
[05:00] Christopher David: Probably the next thing we'll add will be we can cash out directly to your lightning address.
[05:09] Christopher David: And lightning address is just a way of like letting the service fetch a lightning invoice
[05:13] Christopher David: but it's all the same bullet 11 stuff under the hood.
[05:17] Christopher David: So let's try this.
[05:22] Christopher David: I can also do a partial cash out.
[05:24] Christopher David: Let's try cashing out just 250 of the sattosies.
[05:29] Christopher David: Open agents, give me and I'll do create invoice.
[05:34] Christopher David: This is using the Alby browser extension.
[05:36] Christopher David: I'm going to do copy invoice.
[05:37] Christopher David: I'm going to paste it there with draw to invoice and this is the most basic possible
[05:43] Christopher David: you.
[05:44] Christopher David: Why?
[05:45] Christopher David: We'll make this prettier later.
[05:46] Christopher David: Payment process successfully.
[05:47] Christopher David: My balance has gone down to 2, 2, 5, 0.
[05:49] Christopher David: Did I get paid?
[05:50] Christopher David: I just got paid everybody.
[05:52] Christopher David: That was super simple.
[05:54] Christopher David: All right.
[05:55] Christopher David: What if I want to do an invoice for, you know, I want you to pay me 999 999.
[06:04] Christopher David: Give me $674.
[06:08] Christopher David: Okay.
[06:09] Christopher David: Okay.
[06:11] Christopher David: Max received a amount exceeded.
[06:13] Christopher David: Get that.
[06:15] Christopher David: Yeah.
[06:16] Christopher David: Max.
[06:17] Christopher David: Get that out here.
[06:20] Christopher David: Please.
[06:21] Christopher David: Yeah.
[06:22] Christopher David: Give me 999 999.
[06:26] Christopher David: Okay.
[06:27] Christopher David: 9.
[06:28] Christopher David: All right.
[06:30] Christopher David: Create invoice.
[06:32] Christopher David: Can I have that much?
[06:34] Christopher David: Inzufficient balance.
[06:36] Christopher David: Okay.
[06:37] Christopher David: Let's do one more test.
[06:39] Christopher David: Can I withdraw everything or do I need to allow an extra satt for my payment fee or something?
[06:48] Christopher David: Let's try withdrawing exactly 2, 2, 5, 0 and that worked.
[06:52] Christopher David: I'm down to 0 satt.
[06:53] Christopher David: Okay.
[06:54] Christopher David: You all, if you have a user account, you can log in and go to wallet and please test
[07:00] Christopher David: us out with an invoice.
[07:03] Christopher David: If you don't know what an invoice is, that's a good opportunity to learn.
[07:06] Christopher David: You can generate invoices via your alibi browser extension.
[07:13] Christopher David: And that's good enough for this video.
[07:15] Christopher David: See you soon.