Skip to content

Instantly share code, notes, and snippets.

@PBillingsby
Created July 31, 2024 17:54
Show Gist options
  • Select an option

  • Save PBillingsby/0b4612df6dea8121a66a20584ed03a48 to your computer and use it in GitHub Desktop.

Select an option

Save PBillingsby/0b4612df6dea8121a66a20584ed03a48 to your computer and use it in GitHub Desktop.
Wallet pregen troubleshooting

Step 1 - create_wallets

REQUEST

{
  "identifiers": [
    {
      "identifier": "philbillingsby@gmail.com",
      "identifier_type": "email_address"
    }
  ]
}

RESPONSE

{
    "data": {
        "job_id": "e7dd5a1e-f8a9-4a02-8b25-edbf79c9a6c7"
    },
    "error_code": "",
    "message": "",
    "status": "ok"
}

Step 2 - get_job_status

REQUEST

{
  "job_id": "e7dd5a1e-f8a9-4a02-8b25-edbf79c9a6c7"
}

RESPONSE

{
    "data": {
        "client_id": "tYw_p1MFiy2kem8r2B6LOeDY-tcPrba8b_ngqZJkFR8=",
        "created_at": 1722287481,
        "expires_at": 1724879478,
        "job_id": "e7dd5a1e-f8a9-4a02-8b25-edbf79c9a6c7",
        "key_generation_stats": {
            "errors": 0,
            "processed": 1,
            "total": 1
        },
        "status": "SUCCESS",
        "updated_at": 1722287478
    },
    "error_code": "",
    "message": "",
    "status": "ok"
}

STEP 3 - get_identifiers

REQUEST

{
  "job_id": "e7dd5a1e-f8a9-4a02-8b25-edbf79c9a6c7"
  // "claimed": false, // optional
  // "limit": 1 // optional 
}

RESPONSE

{
    "data": {
        "identifiers": [
            {
                "claimed": false,
                "expires_at": 1724879478,
                "identifier": "philbillingsby@gmail.com",
                "identifier_type": "email_address",
                "job_id": "e7dd5a1e-f8a9-4a02-8b25-edbf79c9a6c7",
                "public_address": "0x398D87d75997C3e5042D4ACFf6c6446F456A07Ea",
                "status": "success",
                "status_detail": "Successfully generated wallet"
            }
        ],
        "last_evaluated_key": null
    },
    "error_code": "",
    "message": "",
    "status": "ok"
}

STEP 4 - Log in with EmailOTP

  1. Fund pregen wallet with 0.0023 Sepolia ETH
  2. Log in with philbillingsby@gmail.com
  3. Expect address to be 0x398D87d75997C3e5042D4ACFf6c6446F456A07Ea
  4. Expect balance to be 0.0023 ETH

Get address 0x51A0dE99BE3b5128F8575a31EeeB87A87b1891fF Balance 0 ETH

STEP 5 - get_identifiers again

Claimed still === false

Step 6 - Retry with different email

I did this again with the email paulbillingsby@gmail.com, same thing occurred.

Expected: 0x1825e338167bcC2FAB7A7E8dD8b47fa21E85E276 Got: 0x8f2b67C56BDcD4C92AC212D2858edE1144B9571f

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