{"repo":"Fenguoz/bsc-php","free":true,"listed":false,"github":"https://github.com/Fenguoz/bsc-php","clone":"git clone https://github.com/Fenguoz/bsc-php.git","description":"Support Binance Smart Chain BNB/BEP20 digital assets, including address creation, balance query, transaction transfer, query the latest blockchain, query information based on blockchain, query information based on transaction hash, etc.","language":"PHP","stars":45,"topics":["bsc","php","binance-chain","bep20","bnb","binance"],"license":"MIT","category":"trading","readme_excerpt":"English 中文 BSC-PHP Introduction Support Binance's BNB and BEP20, which include functions such as address creation, balance query, transaction transfer, query the latest blockchain, query information based on the blockchain, and query information based on the transaction hash. Advantage 1. One set of scripts is compatible with all BNB currencies and BEP20 certifications in the BSC network 2. Interface methods can be added or subtracted flexibly Support Method wallet - Generate a private key to create an account newAccountByPrivateKey() - Generate mnemonic and create an account newAccountByMnemonic() - Restore account using mnemonic revertAccountByMnemonic(string $mnemonic) - Get the address according to the private key revertAccountByPrivateKey(string $privateKey) Bnb & BEP20 - Check balances(BNB) bnbBalance(string $address) - Check balances(BEP20) balance(string $address) - Transaction transfer (offline signature) transfer(string $from, string $to, float $amount) - Query the latest block blockNumber() - Query information according to the blockchain getBlockByNumber(int $blockID) - Returns the receipt of a transaction by transaction hash getTransactionReceipt(string $txHash) - Returns the information about a transaction requested by transaction hash getTransactionByHash(string $txHash) - Query transaction status based on transaction hash receiptStatus(string $txHash) Quick Start Install PHP8 or PHP7 Interface Wallet example.php Bnb & BEP20 example.php Plan - Support ERC721 ERC","default_branch":null,"files":null,"tree":[],"storefront":"/r/Fenguoz","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Fenguoz/bsc-php/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}