Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key
Version: 2.2

Set project settings

POSThttps://api.moralis-streams.com/settings

Set the settings for the current project based on the project api-key.

BODY PARAM
regionstringrequired
The region from where all the webhooks will be posted for this project
Responses
API KEY
import Moralis from 'moralis';

try {
await Moralis.start({
apiKey: "YOUR_API_KEY"
});

const response = Moralis.Streams.setSettings({
"network": "mainnet"
});

console.log(response.raw);
} catch (e) {
console.error(e);
}
Response Example
{
"region": ""
}