API Documentation

Payment Rails API

Integrate blockchain payments into your application with our simple and powerful REST API. Accept payments in multiple cryptocurrencies and stablecoins across all major blockchains.

Base URL

https://api.payment-rails.com

Wallet Management

Assign and manage wallets for your users across multiple blockchains

Balance Tracking

Real-time balance queries for any wallet address

Transfers

Initiate and track transfers between wallets

User Association

Link multiple wallets to individual users seamlessly

Blockchain Integrations

Payment Rails supports all major blockchains and stablecoins

Solana

SOL
USDC
USDT
  • Fast transactions
  • Low fees
  • High throughput
Ξ

Ethereum

ETH
USDC
USDT
  • Smart contracts
  • ERC-20 tokens
  • DeFi integration

Bitcoin

BTC
  • Store of value
  • High security
  • Global acceptance

Supported Stablecoins

Accept payments in popular stablecoins across multiple chains:

USDC on Solana
USDC on Ethereum
USDT on Solana
USDT on Ethereum

API Endpoints

Explore our REST API endpoints with examples and responses

GET
/wallets/{userId}

Get all wallet addresses assigned to a user

userId
string
Required

Unique user identifier

GET
/balance/{blockchain}/{address}

Get balance for a specific blockchain address

blockchain
string
Required

Blockchain network (solana, ethereum, bitcoin)

address
string
Required

Wallet address

POST
/wallets/assign

Assign a new wallet address to a user

userId
string
Required

Unique user identifier

blockchain
string
Required

Blockchain network (solana, ethereum, bitcoin)

POST
/transfer

Initiate a transfer between wallets

from
string
Required

Source wallet address

to
string
Required

Destination wallet address

amount
number
Required

Amount to transfer

currency
string
Required

Currency (SOL, ETH, BTC, USDC, USDT)

blockchain
string
Required

Blockchain network

Authentication

All API requests require authentication using an API key. Include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY