A fully typed, validated async client for the Moralis API.
- Documentation: https://tribulnation.com/typed/moralis
- Source Code: https://github.com/tribulnation/typed/tree/main/packages/moralis
from typed_moralis import Moralis
async with Moralis.new() as client:
balances = await client.evm.wallet.token_balances(
'0xd8dA6BF26964aF9D7eed9e03E53415D37aA96045', chain='eth',
)
print(balances['result'])
Moralis is a cross-chain wallet/token/NFT data API. This client covers its full surface across seven product groups sharing one API key:
evm-- wallet balances/history/net worth, ERC20 token metadata/price/holders, NFT metadata/ownership/prices/trades, and raw block/transaction lookups, across every EVM chain Moralis indexessolana-- wallet balances/portfolio and SPL token metadata/pricingbitcoin-- wallet balances/history, block/transaction lookups, and BTC pricinguniversal-- cross-chain entity search and chain/category market metricscortex-- an AI chat endpoint over indexed on-chain data (deprecated upstream)auth-- Sign-In-With-Ethereum-style wallet challenge/verify flowsstreams-- webhook stream management (create, update, and inspect server-side push subscriptions; delivery is an HTTP POST to your own endpoint, not a client-side socket)
Why Typed Moralis?
- 🎯 Precise Types: Typed endpoint inputs and responses, not
dict/Any. - ✅ Runtime Validation: Responses validated by default, not just typed on paper.
- ⚡ Async First: Async HTTP, built for concurrent wallet, token, and NFT lookups.
- 📚 Full Surface: every documented Moralis endpoint across EVM, Solana, Bitcoin, cross-chain, auth, and streams data -- not just the popular ones.
Installation
pip install typed-moralis
How To
- Fetch Wallet Data
- Fetch Token Data
- Fetch NFT Data
- Fetch Solana Data
- Fetch Bitcoin Data
- Explore Cross-Chain Data
- Authenticate a Wallet
- Manage Webhook Streams
- Paginate Through Results
Reference
Design Philosophy
Typed Moralis follows the principles outlined in this blog post.
Details matter. Developer experience matters.
License
MIT — see LICENSE.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file typed_moralis-0.2.0.tar.gz.
File metadata
- Download URL: typed_moralis-0.2.0.tar.gz
- Upload date:
- Size: 99.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d017d22ca0ff41353105b05b07c12ef5903cd95eda1c66f38a92a1b27d821079
|
|
| MD5 |
1094e291261d59d3cc5902e8169cbe3f
|
|
| BLAKE2b-256 |
adaef0c653c0f817740c38283b46b73ac2f9e54bb44d78678310c00dff287b45
|
Provenance
The following attestation bundles were made for typed_moralis-0.2.0.tar.gz:
Publisher:
release-moralis.yml on tribulnation/typed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
typed_moralis-0.2.0.tar.gz -
Subject digest:
d017d22ca0ff41353105b05b07c12ef5903cd95eda1c66f38a92a1b27d821079 - Sigstore transparency entry: 2553806216
- Sigstore integration time:
-
Permalink:
tribulnation/typed@4d77dce90f24c6679e52479aae81df1100956528 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tribulnation
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-moralis.yml@4d77dce90f24c6679e52479aae81df1100956528 -
Trigger Event:
pull_request
-
Statement type:
File details
Details for the file typed_moralis-0.2.0-py3-none-any.whl.
File metadata
- Download URL: typed_moralis-0.2.0-py3-none-any.whl
- Upload date:
- Size: 273.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70f2b750b588dba08a4ee370943e07b61b9dabbbee23b18b36519e1065501532
|
|
| MD5 |
c4ef4430ad22d8e256c243d7dab9f91a
|
|
| BLAKE2b-256 |
fa35c6ac1ceeb06a63599a2837bb02b935b29808ab3169d8e533ff32e2988dea
|
Provenance
The following attestation bundles were made for typed_moralis-0.2.0-py3-none-any.whl:
Publisher:
release-moralis.yml on tribulnation/typed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
typed_moralis-0.2.0-py3-none-any.whl -
Subject digest:
70f2b750b588dba08a4ee370943e07b61b9dabbbee23b18b36519e1065501532 - Sigstore transparency entry: 2553806246
- Sigstore integration time:
-
Permalink:
tribulnation/typed@4d77dce90f24c6679e52479aae81df1100956528 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tribulnation
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-moralis.yml@4d77dce90f24c6679e52479aae81df1100956528 -
Trigger Event:
pull_request
-
Statement type: