Problem
-
Data analytics and Data related projects for web3 protocols increasing day by day but lack of sdk//wrapper//easy to use functions available for protocols in python language.
-
No easy to use tools on python for NFTStorage // web3storage // pinata // MoralisIPFS.
Solution
*MoralisSDK is a DATA DEVELOPER TOOLING
-
It provide a easy to integrate methods to get the datas very quickly with the help of Moralis.
-
Simple function's for NFTSTORAGE,WEB3STORAGE,PINATA upload and download options in python.
-
It provide chainlink analytics data via simple function call with the help of Moralis.
Moralis
Use requires a Molaris API key which is currently available with the free Molaris service tier.
- https://moralis.io/
- https://deep-index.moralis.io/api-docs/#/
- https://docs.moralis.io/moralis-server/web3-sdk/moralis-web3-api-rest
Install
** pip install MoralisSDK==1.0.1
IPFS Setup
from MoralisSDK import ipfs
moralis = ipfs.IPFS()
NFTSTORAGE
1.upload_nft_storage(api_key,file)
2.status_nft_storage(apikey,cid)
3.nft_storage_download_link(cid)
WEB3STORAGE
1.upload_web3_storage(apikey,file)
2.status_web3_storage(apikey,cid)
3.web3_storage_download_link(cid)
PINATA
1.upload_pinata(pinata_api_key,pinata_secret_api_key, file)
2.pinata_download_link(cid)
MORALIS Setup
Replace YOUR_API_KEY with the Moralis API Key.
from MoralisSDK import api
moralis = api.MoralisApi()
moralis.set_api_key("YOUR_API_KEY")
Get_nfts [Account] (Function shows manditory params, play around with optional also).
moralis.get_nfts(address='0x1d62df39f4D20119EcEEf66bFEE23c0afe49CeB8', chain='eth')
Get_transfers [Account].
moralis.get_nfts_transfer(address='0x1d62df39f4D20119EcEEf66bFEE23c0afe49CeB8', chain='eth')
Get_nft_for_contract [Account].
moralis.get_nfts_token(address='0x73E9f114536C6807B6d9388bBf76f5404c621a77', chain='eth', token_address='0x34d85c9cdeb23fa97cb08333b511ac86e1c4e258')
Get_nft_trade [Token].
moralis.get_nfts_trades(address='0x73E9f114536C6807B6d9388bBf76f5404c621a77', chain='eth')
Get_nft_lowest_price [Token].
moralis.get_nft_lowest_price(address='0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d', chain='eth')
Get_nft_transfer_from_blocks [Token].
moralis.get_nfts_transfer_blocks(from_block='***')
Get_tokenids [Token].
moralis.get_token_id(address='0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d')
Get_nft_owners [Token].
moralis.get_nft_owners(address='0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d')
Get_nft_contract_transfer [Token].
moralis.get_contract_nft_transfers(address='0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d')
Get_nft_collection_metadata [Token].
moralis.get_nft_metadata(address='0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d')
Check_nft_metadata_sync [Token].
moralis.get_nft_metadata_resync(address='0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d', token_id='1000')
Get_nft_token_metadata [Token].
moralis.get_token_id_metadata(address='0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d', token_id='1000')
Get_nft_token_owner [Token].
moralis.get_token_id_owners(address='0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d', token_id='1000')
Get_nft_transfer [Token].
moralis.get_token_id_transfers(address='0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d', token_id='1000')
Get_native_balance
moralis.get_native_balance(address, chain)
Get_tokens_for_wallet
moralis.get_tokens_for_wallet(address, chain)
Get_token_price
moralis.get_token_price(address, chain)
Native_to_token
moralis.convert_native_amount_to_token_amount(address, chain, native_amount)
Token_to_native
moralis.convert_token_amount_to_native_amount(address, chain, native_amount)
CHAINLINK Setup
from MoralisSDK import chainlink
moralis = chainlink.Chainlink()
Available functions to get Chainlink analytics data
offset -> page , limit -> data points limit, sortby -> [asc, desc]
1.active_feeds(offset,limit)
2.Active_Feeds_Requesters(limit, sortby)
3.Keepers_BSC_Daily(limit, sortby)
4.Keepers_ETH_Daily(limit, sortby)
5.Keepers_POLYGON_Daily(limit, sortby)
6.Oracle_Requests_over_Time(limit, sortby)
7.Total_LINK_on_centralized_exchanges(limit, sortby)
8.chainlink_VRF_v1_daily_BSC(limit, sortby)
9.chainlink_VRF_v1_daily_ETH(limit, sortby)
10.chainlink_VRF_v1_daily_POLYGON(limit, sortby)
11.chainlink_VRF_v2_daily_BSC(limit, sortby)
12.chainlink_VRF_v2_daily_ETH(limit, sortby)
13.chainlink_VRF_v2_daily_POLYGON(limit, sortby)
End Notes
MoralisSdk that capable to help the data analyst or data scientiest who works on web3 analytics.Just make the flow very easy for them to develop the projects.
MoralisSDK still ongoing with the development to add more web3 protocols data's with the help of Moralis.
Metadata
Release files for MoralisSDK 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| MoralisSDK-1.0.3.tar.gz | 50.6 kB | Without provenance | Details for MoralisSDK-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| MoralisSDK-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for MoralisSDK-1.0.3-py3-none-any.whl |
Total release size: 145.5 kB
Release files / MoralisSDK-1.0.3.tar.gz
| Download URL | MoralisSDK-1.0.3.tar.gz |
|---|---|
| Size | 50.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffee0820c3d541d31d4fdd2f27196e7298e9795a432306725aeffb5deab804cb
|
|
BLAKE2b-256 checksum How to use checksums |
9fc570fd2dcf303e5d24dd88e783088910fef2df0359d5293321008bb2eaa3d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.3
|
Release files / MoralisSDK-1.0.3-py3-none-any.whl
| Download URL | MoralisSDK-1.0.3-py3-none-any.whl |
|---|---|
| Size | 94.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3709aca664a3ce0b8c5b19e7eeb0cb71e60fd8c5dc434945eff85d913a0fb5a0
|
|
BLAKE2b-256 checksum How to use checksums |
769eaf0acbc3594ba25481e59670d4fe8b6b93ca1aeef47e99b9e1e4cc0445c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.3
|
Security for MoralisSDK 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.