Package: komodorpc
Komodo RPC API LibraryRPC API-Library for Komodo-based asset chains, for Python Developers.===============================================================================Description:Komodo-RPC library helps you integrate your Python Apps with Komodo asset-chains without having to setup/implement required RPC functions. Install this Python library and call Komodo-API RPCs as easily as calling a local function. Komodo-RPC library acts as a wrapper between your Python app and the Komodo-daemon running on a server.Installation:Install 'komodorpc' Python Module:pip install komodorpcUsage:>>> from komodo_rpc import KomodoRPC
>>> import komodo.wallet as wallet
>>> komodo_rpc = KomodoRPC(node_addr='127.0.0.1', rpc_port=98102, req_method='POST', rpc_username='user71631186',
...                         rpc_password='pass725b1d10ae0c2217a8ffbgh30e5ca13367afvdl937bf1cbq11bd16f8a1e36d30')
>>> result = wallet.getwalletinfo()
>>> result
'{"result":{"walletversion":60000,"balance":2000000.16063408,"unconfirmed_balance":0.00000000,"immature_balance":0.00000000,"txcount":15,"keypoololdest":1561025064,"keypoolsize":101,"paytxfee":0.00000000,"seedfp":"7bd4d97c90d68f5921fee04e63168bd956d63346bf011c80d46e75b134385c"},"error":null,"id":"curltest"}\n'
>>>Create an object ofKomodoRPCclass with following parameters to populate RPC options and authentication parameters.ArgumentDescriptionnode_addrIP address of the node where the Komodo-daemon is running;Default: '127.0.0.1'rpc_portPort number where the Komodo-daemon is listening for RPCsrpc_usernameUsername for RPC authenticationrpc_passwordPassword for RPC authenticationreq_methodRequest Method for RPCs; Default: 'POST'jsonrpc_verDefault:'1.0'rpc_req_idID for RPC requestsDefault:'curltest'>>> from komodo_rpc import KomodoRPC
>>> komodo_rpc = KomodoRPC( node_addr='127.0.0.1',
                        rpc_port='4524', 
                        req_method='POST', 
                        rpc_username='user32703390897', 
                        rpc_password='pass885b1d876131e0c2217a848ffbf5fe5ca34367af529a6d519abf8cbb5bd16f8a1e36d30'
              )API commands are segregated into different modules:ModuleDescriptionkomodo.addressIncludes all address-related commands.Example:import komodo.address as addressresult = address.getaddressbalance(addresses=["RMTTgkYk6r5kCYiWGmoihdts61XZ"])komodo.blockchainIncludes all blockchain-related commands.Example:import komodo.blockchain as blockchainresult = blockchain.getbestblockhash()komodo.controlIncludes all Control commands.Example:import komodo.control as controlresult = control.help(command='getwalletinfo')komodo.disclosureIncludes all disclosure-related commands.Example:import komodo.disclosure as disclosureresult = disclosure.z_validatepaymentdisclosure(paymentdisclosure='zpd:76462047b6c204')komodo.generateIncludes all Generation commands.Example:import komodo.generate as generateresult = generate.setgenerate(generate=False, genproclimit=2)komodo.jumblrIncludes all Jumblr commands.Example:import komodo.jumblr as jumblrresult = jumblr.jumblr_deposit(depositaddress='RT4SUjG3QeGcedfpHtP5MhDeEGTA')komodo.miningIncludes all mining-related commands.Example:import komodo.mining as miningresult = mining.getmininginfo()komodo.networkIncludes all network-related commands.Example:import komodo.network as networkresult = network.getnetworkinfo()komodo.raw_transactionsIncludes all raw_transactions commands.Example:import komodo.raw_transactions as raw_transactionsresult = raw_transactions.createrawtransaction(transactions={'ff2c4c0c0d55310c9e1b7f193d7f69d7a5b662fc610':0},amounts={'R9fZXs2M6YiTNCQKqgPC4mR4cE3VQkAGzW':0.001})komodo.utilIncludes all utility-related commands.Example:import komodo.util as utilresult = util.estimatepriority(num_blocks=2)komodo.walletIncludes all wallet-related commands.Example:import komodo.wallet as walletresult = wallet.getwalletinfo()Documentation:Komodo API Guide