# Introducing BeamFi API - Micropayments streaming in real-time

**URL:** <https://forum.dfinity.org/t/introducing-beamfi-api-micropayments-streaming-in-real-time/20199>\
**Category:** Developers\
**Tags:** community-consideration, release\
**Created:** [May 24, 2023, 2:00am UTC](https://forum.dfinity.org/t/introducing-beamfi-api-micropayments-streaming-in-real-time/20199 "2023-05-24T02:00:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![kinwo](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/kinwo/32/2315_2.png) [@kinwo](https://forum.dfinity.org/u/kinwo)\
**Post date:** [May 24, 2023, 2:00am UTC](https://forum.dfinity.org/t/introducing-beamfi-api-micropayments-streaming-in-real-time/20199/1 "2023-05-24T02:00:27Z")

</div>

I would like to introduce to you BeamFi and its API. Recently, we have made it open source in MIT and created a developer portal with full API docs, architecture and getting started guide etc.

**BeamFi API / Developer Documentation**  
[https://developer.beamfi.app/](https://developer.beamfi.app/)

**BeamFi Protocol**  
[https://github.com/BeamFi/BeamFiProtocol](https://github.com/BeamFi/BeamFiProtocol)

**BeamFi App**  
[https://beamfi.app/](https://beamfi.app/)

**Quick Intro to BeamFi**  
The idea of BeamFi is born from the development of [Content Fly](https://contentfly.app/) - a creators’ marketplace. We wanted to develop a new innovative payment solution that would allow creators to receive a continuous stream of payment in a trustless way without waiting for the job completion that could be weeks or months away. [Learn More](https://developer.beamfi.app/whatis/features)

**Features**  
To make it easy for users to try out BeamFi, we have developed [BeamFi App](https://beamfi.app) that can:

- [New Beam] create Beam Link (your payment link to receive tokens) which you can send it to others who will deposit ICP or XTC tokens through streaming
- [Beam Out] create Beam streaming payment to others using wallet principal ID with ICP or XTC tokens

[BeamFi App](https://beamfi.app) supports [Plug Wallet](https://plugwallet.ooo/) and [NFID](https://nfid.one/)

**BeamFi Meeting App in Zoom**  
We have also developed a BeamFi Meeting App with integration to Zoom.

[BeamFi Meeting App in Zoom Marketplace](https://marketplace.zoom.us/apps/sjH1I9WvT4O7Si2R61bbSg)

You can simply create a meeting link from [New Meeting](https://beamfi.app/newmeeting) in the app. Send it to your friends to deposit ICP or XTC and start Zoom meeting from the webapp and watch payment streaming in [My Beams](https://beamfi.app/mybeams)

Note: Make sure you have added BeamFi Meeting App to your Zoom account first.

[Watch Demo](https://youtu.be/hBdXo0vSeEw)

**Architecture**  
The core of BeamFi Protocol uses [IC Timer API to drive streaming](https://developer.beamfi.app/docs/smartcontracts/beam/streaming).

[Learn More about Architecture](https://developer.beamfi.app/docs/architecture/overview)

[Learn More about Zoom Integration](https://developer.beamfi.app/docs/integration/beamfizoom)

**Future / Vision**  
The future prospect of BeamFi is enormous:

- Payment streaming with ckBTC or native Bitcoin
- Client SDK (TypeScript)
- Webapp connecting to different BeamFi Vaults, and switch between them
- BeamFi Protocol 3.0 (Rate-based Continuous Streaming Beam)

[Learn More about Vision](https://developer.beamfi.app/whatis/vision)

**Getting Started!**  
We have created a developer [Quick Start Guide](https://developer.beamfi.app/docs/gettingstarted/quickstart) to help you up to speed in using BeamFi API.

I hope you will find BeamFi useful and consider developing on BeamFi.

BeamFi is fully open source under MIT license including the backend protocol and webapp.

> **[GitHub - BeamFi/BeamFiProtocol: BeamFi Protocol](https://github.com/BeamFi/BeamFiProtocol)**
>
> BeamFi Protocol. Contribute to BeamFi/BeamFiProtocol development by creating an account on GitHub.

> **[GitHub - BeamFi/beamapp: Beam Web App](https://github.com/BeamFi/beamapp)**
>
> Beam Web App. Contribute to BeamFi/beamapp development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![skilesare](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/skilesare/32/5609_2.png) [@skilesare](https://forum.dfinity.org/u/skilesare)\
**Post date:** [May 24, 2023, 2:11am UTC](https://forum.dfinity.org/t/introducing-beamfi-api-micropayments-streaming-in-real-time/20199/2 "2023-05-24T02:11:48Z")

</div>

This looks awesome! Do yo send the trx every x seconds, or do you keep it in escrow and just pay it out upon withdrawal?

---

<div class="post-metadata">

**Author:** ![coin\_master](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/coin_master/32/15963_2.png) [@coin\_master](https://forum.dfinity.org/u/coin_master)\
**Post date:** [May 24, 2023, 4:41am UTC](https://forum.dfinity.org/t/introducing-beamfi-api-micropayments-streaming-in-real-time/20199/3 "2023-05-24T04:41:57Z")

</div>

This looks really cool 😃

---

<div class="post-metadata">

**Author:** ![kinwo](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/kinwo/32/2315_2.png) [@kinwo](https://forum.dfinity.org/u/kinwo)\
**Post date:** [May 25, 2023, 12:18am UTC](https://forum.dfinity.org/t/introducing-beamfi-api-micropayments-streaming-in-real-time/20199/4 "2023-05-25T00:18:36Z")

</div>

Hi @skilesare We keep it in escrow but we update the ownership of the tokens every x seconds so the recipient can claim the “prorated tokens” any time while streaming.

---

<div class="post-metadata">

**Author:** ![wwsteel](https://avatars.discourse-cdn.com/v4/letter/w/74df32/32.png) [@wwsteel](https://forum.dfinity.org/u/wwsteel)\
**Post date:** [May 26, 2023, 3:22pm UTC](https://forum.dfinity.org/t/introducing-beamfi-api-micropayments-streaming-in-real-time/20199/5 "2023-05-26T15:22:16Z")

</div>

So, this could be used also as a recurring daily/weekly/monthly subscription to paid site?  
How would the receiver/seller engineer the payment process then unlock the paid content?  
BeamFi costs to both parties, through “prorated tokens”, commission rate?  
What is range of micropayments?

---

<div class="post-metadata">

**Author:** ![domwoe](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/domwoe/32/5165_2.png) [@domwoe](https://forum.dfinity.org/u/domwoe)\
**Post date:** [May 26, 2023, 3:43pm UTC](https://forum.dfinity.org/t/introducing-beamfi-api-micropayments-streaming-in-real-time/20199/6 "2023-05-26T15:43:02Z")

</div>

Awesome work @kinwo!

Adding ckBTC would be cool! Hint hint: There’s an Internet Computer BUIDL Bitcoin Hackathon running 😉

> **[Internet Computer BUIDL Bitcoin Hackathon, powered by Encode Club — Encode Club](https://www.encode.club/internet-computer)**
>
> Join us for our newest online hackathon dedicated to building on the Internet Computer and win prizes!

---

<div class="post-metadata">

**Author:** ![kinwo](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/kinwo/32/2315_2.png) [@kinwo](https://forum.dfinity.org/u/kinwo)\
**Post date:** [May 30, 2023, 4:47am UTC](https://forum.dfinity.org/t/introducing-beamfi-api-micropayments-streaming-in-real-time/20199/7 "2023-05-30T04:47:23Z")

</div>

Thanks @domwoe ! We will definitely consider adding ckBTC. 😀

---

<div class="post-metadata">

**Author:** ![kinwo](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/kinwo/32/2315_2.png) [@kinwo](https://forum.dfinity.org/u/kinwo)\
**Post date:** [May 30, 2023, 5:22am UTC](https://forum.dfinity.org/t/introducing-beamfi-api-micropayments-streaming-in-real-time/20199/8 "2023-05-30T05:22:14Z")

</div>

Hi @wwsteel Great question! At the moment, BeamFi payment is time-based with start and end date. Recurring subscription payment is absolutely an interesting idea. We were thinking about implementing something like Patreon for creators with paid content. It could be incrementally unlocking more content over time during the period of streaming payments.

Regarding the paid content, it could be a secret URL that would be stored as part of BeamOut when the seller creates a Beam. The content can only be unlocked by the receiver through NFID/Plug. We already have similar architecture to support Zoom Meeting integration

```auto
type BeamOutType = {
    #payment;
    #meeting : BeamOutMeetingModel
  };

```

We could add a new BeamOutType for simple URL or potentially full markdown text for article or URL to image stored in a separate Canister.

As for costs, BeamFi doesn’t charge a commission rate at the moment. The only fees sender or receiver pays is the native token transfer fees in ICP and XTC token during deposit and claim.
