Skip to content

Web UI for deposit and bot status #2

@sawicki-maciej

Description

@sawicki-maciej

Context

Users need a way to check their bot status and see the Telegram bot handle after provisioning. The on-chain data model already supports this — a frontend can derive the UserBot PDA from the connected wallet and display all fields.

Requirements

  • Connect wallet (Phantom/Solflare)
  • Show UserBot state: bot_handle, is_active, provisioning_status, available balance
  • Show ServiceStatus: accepting_new, active/max instances
  • Link to Telegram bot when handle is available
  • Deposit SOL to create/fund bot account

Technical Notes

  • UserBot PDA: seeds = [b"user_bot", wallet_pubkey]
  • ServiceStatus PDA: seeds = [b"service_status"]
  • Program ID: C1nMit7QsTGXDxb3p5EdNGDjRLQE1yDPtebSo1DA3ejX (devnet)
  • Can use @solana/web3.js + @coral-xyz/anchor with the IDL at target/idl/claw_chain.json

Priority

High — key hackathon deliverable for user-facing demo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions