Setting up Streams Secret Key
The Streams secret key
is a unique string that is used to identify the sender of a webhook through webhook signature verification.
Updating the Secret Key​
If you visit the Moralis settings page, you can find a default secret key
under the stream settings option. However, if you are using streams for the first time, make sure to edit this key to match the API key used in your code. Once edited, click on the Save Changes button to update the key.
You can update the secret key
to be any string of your choice, but if you are using the Moralis SDK to verify the signature, we recommend using your Web3 API key
that you are using in your code as the stream secret key
.
To learn how to verify the Stream signature, check out the tutorial on verifying the signature for the received webhook request.