Mini-Pay Skill

The starknet-mini-pay skill enables simple P2P payments on Starknet. Generate QR codes, create payment links, manage invoices, and transfer ETH/STRK/USDC - like Lightning, but native to Starknet.

Installation

# Install via skills CLI
npx skills add keep-starknet-strange/starknet-agentic/skills/starknet-mini-pay

# Or clone the repo
git clone https://github.com/keep-starknet-strange/starknet-agentic.git

Instant Payments

Unlike Lightning which requires channel setup, Mini-Pay works instantly with any Starknet wallet.

Example Usages

Features

FeatureDescription
P2P TransfersSend ETH/STRK/USDC to any Starknet address
QR CodesGenerate QR codes for addresses
Payment Linksstarknet:{addr}?amount=1&memo=coffee
InvoicesPayment requests with expiry
Telegram BotSend/receive via chat commands
Transaction HistoryTrack all transfers with status
starknet:{address}?amount={value}&memo={text}&token={ETH|STRK|USDC}

Example:

starknet:0x053c91253bc9682c04929ca02ed00b3e423f6714...?amount=0.01&memo=coffee&token=ETH

Telegram Bot Commands

CommandDescription
/pay {address} {amount} [memo]Send payment
/qrShow your QR code
/balanceCheck balance
/link {amount} [memo]Generate payment link
/invoice {amount}Create invoice
/historyTransaction history
/helpShow help

Comparison with Lightning

FeatureLightningStarknet Mini-Pay
Setup timeHours (channels)Instant
PrivacyOnion routingPer-transaction
Speed~1 second~2-3 minutes
FeesVariablePredictable
CustodyLightning nodeSelf-custody
NativeNo (needs BTC)Yes

Error Handling

ErrorCauseSolution
INSUFFICIENT_BALANCENot enough tokensAdd more to account
ACCOUNT_NOT_FOUNDInvalid addressCheck address format
INVALID_AMOUNTAmount less than or equal to 0Use positive amount
TX_FAILEDTransaction revertedCheck recipient address
INVOICE_EXPIREDPast expiryCreate new invoice

Security Notes

Security

  • Never expose private keys in logs or errors
  • Validate all addresses before sending
  • Set reasonable invoice expiry times
  • Use HTTPS for any web interfaces

References