▶️Overview

Welcome to the Patch Wallet Developer Documentation.

This documentation provides the API references and information to use all Patch APIs.

Quick Start

One API call to find a Web3 wallet address for anyone on the internet. 🌎

🔍 Get wallet address for a user_id

To return a wallet address for *any* Twitter user, email, phone number, or other user ID, use:

  1. ENS Resolver

    1. const address = await provider.resolveName(`elonmusk.twitter.usr.id`);
  2. Resolver API

    1. curl --location 'https://paymagicapi.com/v1/resolver' \
      --header 'Content-Type: text/plain' \
      --data-raw '{
          "userIds": "twitter:elonmusk,email:[email protected],tel:19198675309,github:torvalds"
      }'

View examples on Postmanarrow-up-right

User IDs

Patch wallets function around the concept of a User ID, which gets you a unique account address.

A User ID is a unique provider and username ( like twitter:elonmusk, tel:19198675309, email:[email protected]) and returns a wallet address for them on a given chain (matic:0xabc...123).

Example userIds:

✍️ Send a transaction or sign a message

To send a transaction or sign a message for a given Patch wallet, use the Kernel Account API.

You'll need to authenticate first and then can send transactions like:

API Hostname

This API is maintained by Paymagic Labsarrow-up-right and used at the paymagicapi.com hostname.

If you have questions, please reach out on Discordarrow-up-right.

Resources

Create an API access token and authenticate your API requests.

Learn about the API's error codes and how to handle them.

Last updated