Skip to main content

RPC API-Library for Komodo-based asset chains, for Python DApp Developers

Project description

Komodo RPC API Library

RPC API-Library for Komodo-based asset chains, for Python Developers.



  • 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.


Install 'komodorpc' Python Module:

  • pip install komodorpc


>>> from komodo_rpc import KomodoRPC
>>> import komodo.wallet as wallet
>>> komodo_rpc = KomodoRPC(node_addr='', rpc_port=98102, req_method='POST', rpc_username='user71631186',
...                         rpc_password='pass725b1d10ae0c2217a8ffbgh30e5ca13367afvdl937bf1cbq11bd16f8a1e36d30')
>>> result = wallet.getwalletinfo()
>>> result
  • Create an object of KomodoRPC class with following parameters to populate RPC options and authentication parameters.

Argument Description
node_addr IP address of the node where the Komodo-daemon is running; Default: ''
rpc_port Port number where the Komodo-daemon is listening for RPCs
rpc_username Username for RPC authentication
rpc_password Password for RPC authentication
req_method Request Method for RPCs; Default: 'POST'
jsonrpc_ver Default:'1.0'
rpc_req_id ID for RPC requests Default:'curltest'
>>> from komodo_rpc import KomodoRPC
>>> komodo_rpc = KomodoRPC( node_addr='',
  • API commands are segregated into different modules:

Module Description
komodo.address Includes all address-related commands.
import komodo.address as address
result = address.getaddressbalance(addresses=["RMTTgkYk6r5kCYiWGmoihdts61XZ"])
komodo.blockchain Includes all blockchain-related commands.
import komodo.blockchain as blockchain
result = blockchain.getbestblockhash()
komodo.control Includes all Control commands.
import komodo.control as control
result ='getwalletinfo')
komodo.disclosure Includes all disclosure-related commands.
import komodo.disclosure as disclosure
result = disclosure.z_validatepaymentdisclosure(paymentdisclosure='zpd:76462047b6c204')
komodo.generate Includes all Generation commands.
import komodo.generate as generate
result = generate.setgenerate(generate=False, genproclimit=2)
komodo.jumblr Includes all Jumblr commands.
import komodo.jumblr as jumblr
result = jumblr.jumblr_deposit(depositaddress='RT4SUjG3QeGcedfpHtP5MhDeEGTA')
komodo.mining Includes all mining-related commands.
import komodo.mining as mining
result = mining.getmininginfo() Includes all network-related commands.
import as network
result = network.getnetworkinfo()
komodo.raw_transactions Includes all raw_transactions commands.
import komodo.raw_transactions as raw_transactions
result = raw_transactions.createrawtransaction(transactions={'ff2c4c0c0d55310c9e1b7f193d7f69d7a5b662fc610':0},amounts={'R9fZXs2M6YiTNCQKqgPC4mR4cE3VQkAGzW':0.001})
komodo.util Includes all utility-related commands.
import komodo.util as util
result = util.estimatepriority(num_blocks=2)
komodo.wallet Includes all wallet-related commands.
import komodo.wallet as wallet
result = wallet.getwalletinfo()


Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

komodorpc-1.0.tar.gz (26.2 kB view hashes)

Uploaded source

Built Distribution

komodorpc-1.0-py3-none-any.whl (29.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page