Paymagic Labs API
Search
⌃K

Universal Resolver API

The Universal Resolver API returns a wallet address for Web3 naming systems like ENS and Lens as well as web2 providers like email, Twitter, and GitHub.
One API call to find a Web3 wallet address for anyone on the internet.
Web3 Naming Systems
Web2 Providers
  • Twitter
  • Email
  • GitHub
App Providers
  • Coming Soon

How it Works

  1. 1.
    If the provider is a web3 naming system (like Lens Protocol or ENS), the API resolves to the linked wallet.
  2. 2.
    If the provider is a web2 app, the API returns a Patch wallet for that user. The recipient can receive any token/NFT into the wallet and can claim all accrued assets when they are ready.

user_id

A user_id is a unique provider and username ( like twitter:elonmusk, ens:vitalik, email:[email protected]) and returns a wallet address for them on a giving chain (matic:0xabc...123).
Example user_ids:
​
​
​

Resolve user_ids

post
https://paymagicapi.com/v1
/resolver
Takes user_ids and returns a list of account addresses
post
https://paymagicapi.com/v1
/checkAccountAddress
Takes addresses and returns the smart contract type of that address
​