Quick Start
Get started with MPP-NEAR in 5 minutes. Choose your path below.
🖥️
For Service Providers
Build payment-gated APIs
Use the Rust SDK to add HTTP 402 payments to your APIs. Monetize per-request with type-safe primitives.
# Add to Cargo.toml
[dependencies]
mpp-near = { git = "https://github.com/kampouse/mpp-near", features = ["server"] }// Create a payment challenge
use mpp_near::{Challenge, RequestData};
let challenge = Challenge::builder()
.realm("api.example.com")
.method("near-intents")
.request(RequestData::new("0.001", "wallet.near"))
.secret(b"your-hmac-secret")
.build()?;🤖
For Agents & Clients
Make gasless payments
Use the CLI tool to make gasless payments, swap tokens, and transact agent-to-agent.
# Clone and install
git clone https://github.com/kampouse/mpp-near.git
cd mpp-near
cargo install --path . --features intents# Register for gasless wallet
mpp-near register
# Fund your wallet
mpp-near fund-link --amount 0.1 --token near
# Make a gasless payment
mpp-near pay --recipient merchant.near --amount 10 --token usdc