Skip to main content

Billing & Native Streaming Payments

Real-time streaming payments with EdgeRun's native protocol and cost optimization strategies

EdgeRun revolutionizes cloud billing with native real-time streaming payments powered by Solana smart contracts. Pay for resources second-by-second as they're consumed, with unprecedented transparency and cash flow efficiency.

Revolutionary Billing

No more monthly bills! Resources are paid for continuously in real-time as they're used, providing instant cost visibility and optimized cash flow.

Why Native Streaming Payments?

Per-Second Billing

Payments stream continuously, not in batches. Pay only for the exact seconds of resource usage with automatic flow control.

Instant Settlement

No waiting for monthly bills or manual payments. Settlements happen instantly with transparent, dispute-free transactions.

Smart Contract Security

Built on Solana with Byzantine fault tolerance. Mathematical proofs ensure economic security and prevent payment disputes.

Real-Time Streaming Payments

Stream Basics

EdgeRun's native streaming payment protocol enables continuous, real-time payments that flow automatically based on resource consumption. No more monthly bills or manual transactions.

How It Works

Payments stream continuously at per-second rates. When you scale up resources, payment rates increase automatically. When you scale down, rates decrease immediately.
Traditional vs Streaming
Traditional Billing:
  - Monthly invoice cycles
  - Large upfront payments
  - Payment disputes
  - Cash flow challenges
  
EdgeRun Native Streaming:
  - Continuous real-time payments
  - Micro-payments per second
  - Transparent, dispute-free
  - Improved cash flow for all parties

Stream Rates

All resources are billed in real-time with transparent per-second rates:

Current Stream Rates
CPU Stream:     $0.000012 per vCPU-second (continuous flow)
Memory Stream:  $0.000001 per GB-second (real-time flow)
Storage Stream: $0.0000000385 per GB-second (≈$0.1/month)
ResourceTraditional ModelEdgeRun StreamingBenefits
ResourceTraditional ModelEdgeRun StreamingBenefits
CPU (per vCPU-hour)$0.043$0.000012/secondReal-time scaling
Memory (per GB-hour)$0.004$0.000001/secondInstant adjustment
Storage (per GB-month)$0.10$0.0000000385/secondContinuous billing
Load Balancer$18/month$0.000000694/secondUsage-based

Payment Setup

Getting started with EdgeRun streaming payments is simple:

Payment Setup Commands
# Create billing account
edgerun billing create

# Check account status and balance
edgerun billing status

# Process payment to provider
edgerun billing pay 1000 <provider-address>

# View payment history
edgerun billing history

Free Tier

New users receive test tokens and 72 hours of minimal stream testing for free.

Real-World Usage Examples

Web App Resource Streaming
Streaming Configuration:
  CPU: 0.5 vCPU baseline, scales to 2 vCPU on demand
  Memory: 1 GB baseline, scales to 4 GB
  Storage: 5 GB persistent
  
Real-Time Costs:
  CPU Stream: $0.000012/vCPU-second (varies with load)
  Memory Stream: $0.000001/GB-second (scales with usage)
  Storage Stream: $0.0000000385/GB-second (constant for 5GB)
  
Monthly Estimate (50% utilization):
  CPU: 0.5 × $0.000012 × 86400 × 30 × 0.5 = $7.78
  Memory: 1 × $0.000001 × 86400 × 30 × 0.5 = $1.30
  Storage: 5 × $0.0000000385 × 86400 × 30 = $0.50
  Total: ~$9.58/month (varies with actual usage)

This example shows how a typical web application pays for resources in real-time. Costs fluctuate automatically based on actual usage, ensuring you never overpay for idle resources.

Cost Analysis & Optimization

Cost Predictability

While payments stream in real-time, costs remain predictable through:

  • • Resource usage monitoring
  • • Spending limits and alerts
  • • Historical usage analytics
  • • Auto-scaling thresholds

Optimization Strategies

Minimize costs with smart resource management:

  • • Right-size containers to actual needs
  • • Use auto-scaling to avoid over-provisioning
  • • Schedule non-critical tasks during low-demand periods
  • • Monitor and optimize resource-intensive operations

Supported Payment Tokens

TokenDescriptionTypeStatus
USDCNative Solana USDCPrimaryAvailable
SOLNative Solana tokenAlternativeAvailable
EDGEEdgeRun platform tokenGovernanceComing Q3 2025
SPL TokensCustom SPL token supportFlexibleAvailable

Multi-Token Support

Choose from multiple Solana native tokens for streaming payments. USDC provides stable, predictable costs while SOL enables native crypto payments with lower fees.

Native Payment Integration

Payment Integration Example
// Native EdgeRun payment integration
import { EdgeRunClient } from "@edgerun/sdk";
import { Connection, PublicKey } from "@solana/web3.js";

async function createPaymentStream(deploymentId, providerAddress, amount) {
  const connection = new Connection("https://api.devnet.solana.com");
  const client = new EdgeRunClient({
    connection,
    wallet: getWallet(), // Your Solana wallet
    programId: new PublicKey("EdgeRun1111111111111111111111111111111111")
  });
  
  // Create streaming payment to provider
  const tx = await client.processPayment({
    amount: amount, // Amount in lamports or micro-USDC
    provider: new PublicKey(providerAddress),
    deploymentId: deploymentId
  });
  
}

Developer Note

This example shows direct smart contract integration. Most users will use EdgeRun's CLI or web interface which handles the complexity automatically.

Payment Security & Guarantees

Economic Security

  • • Mathematical proofs of economic incentives
  • • Attack costs exceed potential gains by 2x+ margin
  • • Byzantine fault tolerance up to f < n/3
  • • Automatic slashing for malicious behavior

Technical Security

  • • 128-bit cryptographic security level
  • • Hardware attestation with TPM verification
  • • Real-time invariant checking
  • • Comprehensive audit logging

Medical Research Community Initiative

EdgeRun is committed to supporting medical research advancement through our Medical Research Compute Reservation Program. We provide 10% of our total compute capacity free of charge to qualifying medical research organizations.

Program Benefits

  • • 100% free compute within allocation
  • • No streaming payments required
  • • Enterprise features included
  • • Priority support for research
  • • HIPAA compliance included

Eligibility Requirements

  • • Academic medical institutions
  • • Non-profit research organizations
  • • Healthcare foundations
  • • Approved research consortiums
  • • Tax-exempt verification required

Application Process

Submit your research proposal and institutional verification to [email protected]. Applications are reviewed monthly by our scientific advisory board.

Next Steps

CLI

Set Up Payments

Configure your first payment account and start streaming payments per second.

Monitoring

Monitor Usage

Track real-time costs and optimize your resource consumption.

Pricing

Enterprise Plans

Explore enterprise streaming plans for high-volume needs.