ApiKey
that has access to your entire App
on Streambird.
Metamask login flow
Metamask Button UI
window.ethereum
and ensuring that it is not undefined. If MetaMask is not installed, the many live codeblocks throughout this guide will not work.
Connect
button to initiate a MetaMask connection and retrieve your wallet address.
challenge
that must be signed by the wallet private key associated with the public address you are intending to register. You can use this single endpoint to handle both registration and sign in since as long as the same user ID is associated with the wallet address, you can treat it as a LoginOrCreateUser
endpoint for ethereum wallet address.
challenge
for you to sign and user_id
associated with the wallet address. If it is a new user, we recommend that you attach the user_id
to your own user in your database.
Signature Request
mycrypto.com
to easily trigger a MetaMask signing of your challenge here, choose MetaMask
, then paste in the challenge. Once signed by MetaMask, use the sig
field in the JSON to continue with this tutorial. For your convenience, you can also use our live codeblock below and simply replace the message with your own challenge message.challenge
, you need to send the signature
, wallet_type
, and the public_address
of the wallet you are verifying to the VerifyWalletRegistration endpoint.
session_expires_in
parameter like the following.
session
object with session_token
and session_jwt
like the following response. Your can read more about Session management here on how to leverage Streambird’s Session management for multifactor authentication flow.