$API_KEY
with your Streambird API Keyuser_id
, status
, user_created
, updated_at
, created_at
, and email_id
. This curl command will create a magic link and send it to the email address specified in the request. The user can then click on the magic link to authenticate themselves and access their account. With this feature, users can securely log in to their account without having to remember a password.
You can find more information about this API in the Streambird documentation at Login or Create User by Magic Link.
$API_KEY
with your Streambird API Keypublic_address
which is the user’s cryptocurrency address.
You can find more information about this API in the Streambird documentation at Create Wallet (beta).
ethers.js
.
ethers.js
.$CONTRACT_ADDRESS
with the address of the deployed contract.$WALLET_ADDRESS
with the user’s wallet address from Step 3.fetchSignedTx
function to sign the transaction using the Streambird API. This function takes in the transaction object as a parameter and sends a signed transaction object back to the caller.fetchSignedTx
function uses the Streambird API to sign the transaction using the private key stored in the Streambird wallet associated with the WALLET_ID
and API_KEY
environment variables. This function sends a POST request to the Streambird API with the transaction object in the request body, and receives a signed transaction object in the response.
Here is the code for the fetchSignedTx
function: