> For the complete documentation index, see [llms.txt](https://ben-wallet.gitbook.io/ben-wallet/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ben-wallet.gitbook.io/ben-wallet/sdlc/development/architecture/context.md).

# Context

{% hint style="info" %}
Mermaid diagrams require javascript enabled.&#x20;
{% endhint %}

System Context for Ben Platform

{% @mermaid/diagram content="C4Context
Enterprise\_Boundary(ben, "Ben Platform") {
Person(user, "User", "A Ben Wallet user")
System\_Boundary(clients, "Platform clients") {
System(wallet\_app, "Ben Wallet", "Android Native mobile app")
System(web\_app, "MyBen", "Web-based app")
}

```
System_Boundary(shuttle, "Shuttle.dev") {
  System(ben_openstats, "Ben OpenStats", "Ben OpenStats")
  System(ben_rpc, "Ben RPC", "Ben RPC Server")
  System(webapp_db, "MyBen", "MyBen Backend")
}

System_Boundary(launchtube, "Launchtube Services") {
  System_Ext(launchtube_api, "Launchtube API", "")
}


System_Boundary(harvester, "Off-chain") {
  System_Ext(kaleminator, "Kaleminator", "Kale Harvester Service")
}

System_Boundary(stellar_kale, "Stellar Network : Soroban") {
  System_Ext(smart_wallet, "Smart Wallet", "Smart Contract")
  System_Ext(kale_sac, "Kale SAC", "Smart Contract")
  System_Ext(kale_homestead, "Kale Homestead", "Smart Contract")
  System_Ext(kale_tractor, "Kale Tractor", "Smart Contract")
  System_Ext(kale_vault, "Kale Treasury", "Smart Contract")
}

System_Boundary(stellar, "Stellar Network : Edge") {
  System_Ext(mainnet_rpc, "Stellar Mainnet RPC", "")
}

BiRel(user, wallet_app, "interacts")
BiRel(user, web_app, "interacts")
BiRel(wallet_app, ben_rpc, "uses")
BiRel(web_app, ben_rpc, "uses")
BiRel(ben_rpc, launchtube_api, "interacts")
BiRel(launchtube_api, mainnet_rpc, "uses")
BiRel(ben_rpc, webapp_db, "uses")
BiRel(ben_rpc, mainnet_rpc, "uses")

Rel(ben_rpc, ben_openstats, "logs")
Rel(mainnet_rpc, smart_wallet, "calls")
Rel(mainnet_rpc, kale_sac, "calls")
Rel(mainnet_rpc, kale_homestead, "calls")
Rel(mainnet_rpc, kale_tractor, "calls")
Rel(kaleminator, kale_tractor, "calls")
Rel(mainnet_rpc, kale_vault, "calls")

UpdateRelStyle(mainnet_rpc, kale_tractor, $offsetY="270", $offsetX="-100")
UpdateRelStyle(kaleminator, kale_tractor, $lineColor="gray", $offsetY="50", $offsetX="-10")

UpdateElementStyle(wallet_app, $bgColor="green")
UpdateElementStyle(web_app, $bgColor="green")
UpdateElementStyle(launchtube_api, $bgColor="black")
UpdateElementStyle(mainnet_rpc, $bgColor="black")
UpdateElementStyle(kaleminator, $bgColor="purple")
UpdateElementStyle(smart_wallet, $bgColor="gold", $fontColor="#000")
UpdateElementStyle(kale_sac, $bgColor="gold", $fontColor="#000")
UpdateElementStyle(kale_homestead, $bgColor="gold", $fontColor="#000")
UpdateElementStyle(kale_vault, $bgColor="gold", $fontColor="#000")
UpdateElementStyle(kale_tractor, $bgColor="gold", $fontColor="#000")

UpdateLayoutConfig($c4ShapeInRow="3", $c4BoundaryInRow="3")
```

}

" %}

* Launchtube API: <https://launchtube.xyz/>
* **K**ALE Asset (Classic): [KALE:GBDVX4VELCDSQ54KQJYTNHXAHFLBCA77ZY2USQBM4CSHTTV7DME7KALE](https://stellar.expert/explorer/public/asset/KALE-GBDVX4VELCDSQ54KQJYTNHXAHFLBCA77ZY2USQBM4CSHTTV7DME7KALE)
* KALE Stellar Asset Contract (SAC): [CB23WRDQWGSP6YPMY4UV5C4OW5CBTXKYN3XEATG7KJEZCXMJBYEHOUOV](https://stellar.expert/explorer/public/contract/CB23WRDQWGSP6YPMY4UV5C4OW5CBTXKYN3XEATG7KJEZCXMJBYEHOUOV)
* KALE Homestead: [CDL74RF5BLYR2YBLCCI7F5FB6TPSCLKEJUBSD2RSVWZ4YHF3VMFAIGWA](https://stellar.expert/explorer/public/contract/CDL74RF5BLYR2YBLCCI7F5FB6TPSCLKEJUBSD2RSVWZ4YHF3VMFAIGWA)
* KALE Tractor: [CBGSBKYMYO6OMGHQXXNOBRGVUDFUDVC2XLC3SXON5R2SNXILR7XCKKY3](https://stellar.expert/explorer/public/contract/CBGSBKYMYO6OMGHQXXNOBRGVUDFUDVC2XLC3SXON5R2SNXILR7XCKKY3)
