🏠DocumentationWallets
Essentials

Wallets

Learn how to create and manage Pi wallets easily

To use Zyrapay's wallet system and let your customers send Pi payments, you need to create wallets with your project's API key.

Introduction

Pi wallets are made using your API key. You need your API key to create a wallet for each user in your app. We give you a wallet address for each wallet you create.

Making wallets with our API lets you:

  1. Make a Pi wallet for each user in your app
  2. Get notifications when wallets are made, payments come in, or users deposit money
  3. Keep track of when wallets are created in your app

Creating a Wallet

Making a wallet with our API is easy and only needs your project's API key:

  1. Get your API key from your project dashboard
  2. Make a POST request to api.zyrapay.net/v1/wallets
  3. Include your API key in the request headers
  4. Receive the wallet address and wallet ID in the response
  5. Store both the wallet address and wallet ID in your database for tracking

Each wallet you make gets its own special address and unique ID that can get Pi payments. This address is different for each user in your app.

Important: Store both the wallet address and wallet ID in your database so you can track payments and manage wallets properly. When a wallet is made, you'll get a notification with the wallet details.

API Example

Here's how to make a wallet with our API:

Request

POST
{
  "apikey": "your_project_api_key_here",
  "Content-Type": "application/json"
}
{
  "status": "success",
  "data": {
    "wallet_address": "GDQNY3PBO...",
    "wallet_id": "123456789",
    "created_at": "2024-01-15T10:30:00Z"
  }
}
Chat with AI