The official Moralis Python SDK
Project description
Moralis Python SDK
A library that gives you access to the powerful Moralis Server backend from your Python app.
Features:
- Web3 authentication
- Make Evm api and Solana api calls
- Stream realtime blockchain data
... and much more. Check the official Moralis docs for more details.
🚀 Quick start
If you're new to Moralis, check the quickstart guide in the official docs on how to get started.
If you're already familiar with Moralis and have your account registered. Then follow along to connect your SDK:
1. Install Moralis
pip install moralis
2. Call your methods
from moralis import evm_api, auth
api_key = "YOUR_API_KEY"
path_params = {
'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'
}
result = evm_api.balance.get_native_balance(
api_key=api_key,
path_params=path_params
)
print(result)
from moralis import auth
api_key = "YOUR_API_KEY"
body = {
"timeout": 15,
"domain": "moralis.io",
"uri": "https://moralis.io",
"chainId": "1",
"address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045"
}
result = auth.challenge.request_challenge_evm(
api_key=api_key,
body=body
)
print(result)
⭐️ Star us
If this JS SDK helps you build your dapps faster - please star this project, every star makes us very happy!
🤝 Need help
If you need help with setting up the boilerplate or have other questions - don't hesitate to write in our community forum and we will check asap. Forum link. The best thing about this SDK is the super active community ready to help at any time! We help each other.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.