Skip to content

Instantly share code, notes, and snippets.

@loon3
Created September 17, 2025 00:15
Show Gist options
  • Select an option

  • Save loon3/bcb7284b30328691f8ade734e7a15e91 to your computer and use it in GitHub Desktop.

Select an option

Save loon3/bcb7284b30328691f8ade734e7a15e91 to your computer and use it in GitHub Desktop.

Connecting to Rarepepewallet.wtf

To connect to Rarepepewallet:

  1. Provide an endpoint (apiUrl)

    • The endpoint must accept a POST request from https://rarepepewallet.wtf with:
      { "address": "wallet address" }
    • It should return:
      { "message": "a message to sign" }
  2. Provide a callback page (siteUrl) which rarepepewallet will redirect to with the following URL parameters:

    • address
    • msg
    • sig

    You must then verify the signature yourself using available libraries (such as bitcoinjs-lib).

  3. Add a "Connect to Rarepepewallet" link to your page with the following URL and parameters:

    • https://rarepepewallet.wtf/connect
    • apiUrl parameter
    • siteUrl parameter

Example

Suppose your API endpoint is:
https://example.com/api/auth

and your destination page is:
https://example.com/wallet-connect

Your Connect to Rarepepewallet URL would be:
https://rarepepewallet.wtf/connect?apiUrl=https%3A%2F%2Fexample.com%2Fapi%2Fauth&siteUrl=https%3A%2F%2Fexample.com%2Fwallet-connect

After the wallet signs the message from your apiUrl endpoint, it will redirect to:
https://example.com/wallet-connect?address=1abc123...&msg=someMessage&sig=signatureString

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment