Minimal python wrapper for Solscan.io Api
Project description
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] transactionsget_transaction_signature_info(signature=None)
Detail information of given transaction signature
Account -
get_account_token(account=None)
Get token balances of the given accountget_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 accountget_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 transfersget_account_exportTransactions(account=None,type='all',fromTime=None,toTime=None)
Export transactions to CSV. Returns Blob URLget_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 holdersget_token_meta(tokenaddr=None)
Get metadata of given tokenget_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.
pip install pysolscan
Plugins
PySolscan doesn't require many packages except Python Requests
Package | Pipy |
---|---|
Python Requests | https://pypi.org/project/requests/ |
License
MIT
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.
Source Distribution
pysolscan-0.0.5.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for pysolscan-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 918ca4e9dde9512eb8f19c23b873a0a49b1d7713fb19d18994988c5b1861e7ea |
|
MD5 | f82cc586aafa275deb2dcdf8b3a853e1 |
|
BLAKE2b-256 | b484a5e37f603cc7134d140a3cb94815c7c9e569a74a4772e3ae0e96d407c0bd |