GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing python-bitshares.readthedocs.io — Welcome to pybitshares’s documentation! — python-bitshares 0.1 documentation Welcome to pybitshares’s documentation!¶BitShares is a blockchain-based autonomous company (i.e. a DAC) that offers decentralized exchanging as well as sophisticated financial instruments as products. It is based on Graphene (tm), a blockchain technology stack (i.e. software) that allows for fast transactions and ascalable blockchain solution. In case of BitShares, it comes with decentralized trading of assets as well as customized on-chain smart contracts. About this Library¶The purpose of pybitshares is to simplify development of products and services that use the BitShares blockchain. It comes with
General¶Quickstart¶Note
Important, If no Create a wallet¶from bitshares import BitShares bitshares = BitShares() bitshares.wallet.create("secret-passphrase") bitshares.wallet.addPrivateKey("<wif-key>") Unlock the wallet for a transfer¶from bitshares import BitShares bitshares = BitShares() bitshares.wallet.unlock("wallet-passphrase") bitshares.transfer("<to>", "<amount>", "<asset>", "[<memo>]", account="<from>") Monitor the BitShares Blockchain operation-wise¶from bitshares.blockchain import Blockchain blockchain = Blockchain() for op in Blockchain.ops(): print(op) Obtain the content of one block¶from bitshares.block import Block print(Block(1)) Obtain Account balance, open orders and history¶from bitshares.account import Account account = Account("init0") print(account.balances) print(account.openorders) for h in account.history(): print(h) Print Market ticker and sell¶from bitshares.market import Market market = Market("USD:BTS") print(market.ticker()) market.bitshares.wallet.unlock("wallet-passphrase") print(market.sell(300, 100)) # sell 100 USD for 300 BTS/USD Adjust collateral¶from bitshares.dex import Dex dex = Dex() dex.bitshares.wallet.unlock("wallet-passphrase") dex.adjust_collateral_ratio("SILVER", 3.5) Developers and Community¶Discussions around development and use of this library can be found in a [dedicated Telegram Channel](https://t.me/pybitshares) Packages¶bitshares¶
bitsharesbase¶
Glossary¶Indices and tables¶ |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |