Moralis-Python-SDK

project API:

streams.project


get_settings

streams.project.get_settings()

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

Example

from moralis import streams

api_key = "YOUR_API_KEY"

result = streams.project.get_settings(
    api_key=api_key,
)

print(result)


set_settings

streams.project.set_settings()

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

Example

from moralis import streams

api_key = "YOUR_API_KEY"
body = {
    "region": "", 
    "secretKey": "", 
}

result = streams.project.set_settings(
    api_key=api_key,
    body=body,
)

print(result)

Body

Object with the properties:

Name Type Description Required Default Example
region enum[str]:
- “us-east-1”
- “us-west-2”
- “eu-central-1”
- “ap-southeast-1”
The region from where all the webhooks will be posted for this project Yes   ””
secretKey str The secret key to validate the webhooks Yes   ””