Binance Smart Chain client
Binance Smart Chain client
- class xchainpy2_bsc.bsc_client.BinanceSmartChainClient(network=NetworkType.MAINNET, phrase: str | None = None, private_key: str | bytes | callable | None = None, root_derivation_paths: Dict[NetworkType, str] | None = None, explorer_providers=None, wallet_index=0, provider: str | BaseProvider | None = None, extra_data_provider: EVMDataProvider | None = None, **kwargs)
Bases:
EthereumClient
Binance Smart Chain constants
- xchainpy2_bsc.const.AssetBSC_USDC = ('BSC', 'USDC', '0X8AC76A51CC950D9822D68B83FE1AD97B32CD580D', AssetKind.NATIVE)
Binance Smart Chain USDC Asset (Circle)
- xchainpy2_bsc.const.AssetBSC_USDT = ('BSC', 'USDT', '0X55D398326F99059FF775485246999027B3197955', AssetKind.NATIVE)
Binance Smart Chain USDT Asset (Tether)
- xchainpy2_bsc.const.BSC_BNB_DECIMALS = 18
Default Binance Smart Chain Fee Bounds, protection against incorrectly set gas
- xchainpy2_bsc.const.BSC_CHAIN_ID = {NetworkType.MAINNET: 56, NetworkType.STAGENET: 56, NetworkType.TESTNET: 97}
Binance Smart Chain BNB Decimals
- xchainpy2_bsc.const.BSC_FEE_BOUNDS = (2000000000, 1000000000000)
Free Binance Smart Chain WEB3 Providers
- xchainpy2_bsc.const.BSC_MAINNET_EXPLORER = ('https://bscscan.com/', 'https://bscscan.com/address/{address}', 'https://bscscan.com/tx/{tx_id}')
Binance Smart Chain Testnet explorer URLS
- xchainpy2_bsc.const.BSC_NORMAL_FEE = 1
Binance Smart Chain Sure Fee in gwei
- xchainpy2_bsc.const.BSC_TESTNET_EXPLORER = ('https://testnet.bscscan.com/', 'https://testnet.bscscan.com/address/{address}', 'https://testnet.bscscan.com/tx/{tx_id}')
Binance Smart Chain Default Explorer URLS
- xchainpy2_bsc.const.BSC_TOKEN_LIST = '/home/docs/checkouts/readthedocs.org/user_builds/xchainpy2/checkouts/develop/packages/xchainpy_bsc/xchainpy2_bsc/data/bsc_mainnet_latest.json'
Binance Smart Chain ERC20 Token List Source: PancakeSwap Extended
- xchainpy2_bsc.const.DEFAULT_BSC_EXPLORER_PROVIDERS = {NetworkType.MAINNET: ('https://bscscan.com/', 'https://bscscan.com/address/{address}', 'https://bscscan.com/tx/{tx_id}'), NetworkType.STAGENET: ('https://bscscan.com/', 'https://bscscan.com/address/{address}', 'https://bscscan.com/tx/{tx_id}'), NetworkType.TESTNET: ('https://testnet.bscscan.com/', 'https://testnet.bscscan.com/address/{address}', 'https://testnet.bscscan.com/tx/{tx_id}')}
Binance Smart Chain Chain IDs