Cryptocurrency Wallet

Designing a complete JSON REST API for a crypto wallet is a comprehensive task that requires careful consideration of various functionalities and security measures. Here, we are providing you with an overview of the API endpoints and payloads for some essential operations. Keep in mind that this is a basic outline, and you may need to expand and customize it based on your specific requirements and security considerations.

Unlock the potential of Cryptocurrency Wallet use-cases with this sample API Design. Start with this prototype and effortlessly expand to tackle more advanced scenarios. Beeceptor empowers you to not only create prototypes but also to build and innovate further. Your imagination sets the limit – get started with Beeceptor today! .col-xs-4.col-md-2.text-center

Cryptocurrency Wallet API server is up and running!

We have set up the mock routes to ensure a smooth adoption. Copy the URL below and set it as the API base URL in your code, and instantly harness the full potential of mocked Cryptocurrency Wallet APIs.

https://crypto-wallet-server.mock.beeceptor.com



200
POST  /api/v1/register
Register a user, and create his/her wallet
{
  "Content-Type": "application/json"
}
{
  "username": "user123",
  "password": "securepassword",
  "email": "user@example.com"
}
{
  "Content-Type": "application/json"
}
{
  "username": "user123",
  "password": "securepassword",
  "email": "user@example.com"
}
200
POST  /api/v1/login
Login the user and generate a session token
{
  "Content-Type": "application/json"
}
{
  "username": "user123",
  "password": "securepassword"
}
{
  "Content-Type": "application/json"
}
{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "token_type": "bearer",
  "expires_in": 3600
}
200
GET  /api/v1/balance
Retrieve the wallet balance
N/A
N/A
{
  "Content-Type": "application/json"
}
{
  "balance": 100.25,
  "currency": "BTC"
}
200
GET  /api/v1/transactions
List all the transactions done by the user
N/A
N/A
{
  "Content-Type": "application/json"
}
{
  "transactions": [
    {
      "id": "12345",
      "from_wallet": "0x1234567890ABCDEF",
      "type": "credit",
      "amount": 10.5,
      "currency": "ETH",
      "timestamp": "2023-07-13T09:12:34Z"
    },
    {
      "id": "67890",
      "to_wallet": "0x1234567890ABCXYZ",
      "type": "debit",
      "amount": 5.2,
      "currency": "BTC",
      "timestamp": "2023-07-23T09:12:34Z"
    }
  ]
}
200
POST  /api/v1/transactions
Transfer 5 ETH to a recipient
{
  "Content-Type": "application/json"
}
{
  "recipient_address": "0x1234567890ABCDEF",
  "amount": 5.0,
  "currency": "ETH"
}
{
  "Content-Type": "application/json"
}
{
  "id": "98765",
  "to_address": "0x1234567890ABCDEF",
  "type": "debit",
  "amount": 5.0,
  "currency": "ETH",
  "timestamp": "2023-07-24T16:30:00Z"
}
200
POST  /api/v1/transaction_fee
Calculate transaction fees and return estimated cost
{
  "Content-Type": "application/json"
}
{
  "amount": 2.5,
  "currency": "BTC",
  "recipient_address": "0x1234567890ABCDEF"
}
{
  "Content-Type": "application/json"
}
{
  "fee": 0.0005,
  "currency": "BTC"
}
200
GET  /api/v1/exchange_rates
Get an object with all available currency exchange rates
N/A
N/A
{
  "Content-Type": "application/json"
}
{
  "BTC": 42345.67,
  "ETH": 2567.89,
  "USD": 1.0
}
 
payments
 
crypto