ag.orbit.node package

Validating Node for ORBIT (Bitcoin Cash tokens)

This is a validating node following the ORBIT specification defined at https://github.com/AlphaGriffin/orbit.

exception ag.orbit.node.TokenError(*args, **kwargs)[source]

Bases: Exception

Submodules

ag.orbit.node.db module

class ag.orbit.node.db.TokenDB(auto_commit=True)[source]

Bases: object

close()[source]
commit()[source]
get_active_registrations_map(blockrow)[source]
get_eligible_advertisement_row(cursor, tokenrow, height)[source]
get_last_block()[source]
get_signer_address(txrow)[source]
get_user_tokens(address)[source]
hash(blockrow)[source]
process_advertisements(blockrow)[source]
registration_payment(txrow, blockrow, rowid, value)[source]
save_block(blockhash, height)[source]
save_tx(txhash, block, confirmations)[source]
save_txin(txhash, tx, asmhex)[source]
save_txout(tx, value, stype, addresses, asmhex)[source]
set_last_block(height)[source]
token_advertise(address, txrow, blockrow, exchange_rate=None, units_avail=None, units_min=None, units_max=None, block_begin=None, block_end=None, block_deliver=None, preregister=False)[source]
token_advertise_cancel(address, txrow, blockrow, txhash)[source]
token_create(address, tx, block, supply, decimals, symbol, name=None, main_uri=None, image_uri=None)[source]
token_register(address, txrow, blockrow, user_address, units_max=None)[source]
token_transfer(address, txrow, blockrow, from_address, to_address, units)[source]
token_unregister(address, txrow, blockrow, user_address)[source]