https://github.com/aryabhthakur/pysolscan
Minimal python wrapper for Solscan.io Api
https://github.com/aryabhthakur/pysolscan
blockchain blockchain-explorer blockchain-service cryptocurrency cryptocurrency-prices python python-3 python-request-api python-requests solana solana-token solscan
Last synced: about 1 year ago
JSON representation
Minimal python wrapper for Solscan.io Api
- Host: GitHub
- URL: https://github.com/aryabhthakur/pysolscan
- Owner: aryabhthakur
- License: mit
- Created: 2022-02-06T13:12:18.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-30T06:39:19.000Z (over 3 years ago)
- Last Synced: 2025-05-11T17:59:06.511Z (about 1 year ago)
- Topics: blockchain, blockchain-explorer, blockchain-service, cryptocurrency, cryptocurrency-prices, python, python-3, python-request-api, python-requests, solana, solana-token, solscan
- Language: Python
- Homepage: https://pypi.org/project/pysolscan/
- Size: 21.5 KB
- Stars: 28
- Watchers: 1
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# PySolscan
_____
#### It's a minimal wrapper around Solscan.io API
##### Block -
- ```get_last_block(limit=10)``` Get last **[limit]** blocks (Default Limit: **10**)
- ```get_block_transactions(limit=10,offset=0,block=None)``` Get block transactions.
- ```get_block_info(block=None)``` Detail information of given block.
##### Transaction -
- ```get_last_transaction(limit=10)``` Get last [limit] transactions
- ```get_transaction_signature_info(signature=None)``` Detail information of given transaction signature
##### Account -
- ```get_account_token(account=None)``` Get token balances of the given account
- ```get_account_transaction(account=None,beforeHash=None,limit=10)``` Get list of transactions of the given account.
- ```get_account_stakeAccounts(account=None)``` Get staking accounts of the given account
- ```get_account_splTransfers(account=None,limit=10,offset=0,fromTime=None,toTime=None)``` Get list of transactions make tokenBalance changes.
- ```get_account_solTransfers(account=None,limit=10,offset=0,fromTime=None,toTime=None)``` Get list of SOL transfers
- ```get_account_exportTransactions(account=None,type='all',fromTime=None,toTime=None)``` Export transactions to CSV. Returns **Blob** URL
- ```get_account_info(account=None)``` Get overall account information, including program account, NFT metadata information
##### Token -
- ``` get_token_holder(tokenaddr=None,limit=10,offset=0)``` Get token holders
- ``` get_token_meta(tokenaddr=None)``` Get metadata of given token
- ``` get_token_list(sortBy='market_cap',direction='desc',limit=10,offset=0)``` Get list of tokens.
##### Market -
- ``` get_market_token_info(tokenaddr=None)``` Get market information of the given token
##### Chain Information -
- ``` get_chaininfo()``` Get market information of the given token
## Installation
PySolscan package is available via Pipy or Github.
```sh
pip install pysolscan
```
## Plugins
PySolscan doesn't require many packages except Python Requests
| Package | Pipy |
| ------ | ------ |
| Python Requests | https://pypi.org/project/requests/ |
## License
MIT