- An API key to use our API
- A device session token obtained through our SDK (contact us for access)
- The wallet address you wish to associate with the device fingerprint
Step 1: Begin registration
To begin the wallet registration process, you will need to make a POST request to the following endpoint:cURL
API_KEY
with your actual access token.
Include the following JSON data in your request body:
Request JSON
wallet_type
, user_id
, and public_address
values with the actual values you wish to use.
If successful, this request will return a response containing a registration token. Save this token for use in the next step.
Step 2: Get Device Session token
Using the Streambird Device Sense SDK, you can generate a unique device session token that can be used for subsequent API call to link it to an authentication session. The device session token is a JWT token that can only be used once.Device Sense Embed Example
Step 3: Complete Web3 Wallet Registration using Device Session Token
To complete the wallet registration process, send in the signature and device session token to the following endpoint:cURL
signature
value in this step is obtained through some signing mechanism. The tutorial does not specify which tool or method to use for signing. However, it is common for users to sign messages using a wallet like MetaMask or Phantom, which are popular Ethereum and Solana wallets.
wallet_type
, signature
, public_address
, and device_session_token
values with the actual values you wish to use.
Note that the device_session_token
value should be the token obtained through our SDK in Step 2.
If successful, this request will return a response containing the wallet ID and wallet address that have been associated with the device fingerprint.
And that’s it! You have successfully associated a wallet address with a device fingerprint using our API. We hope this tutorial was helpful. If you have any questions or feedback, please do not hesitate to reach out to our support team.