Monero
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
framework.daemon.Daemon Class Reference
Inheritance diagram for framework.daemon.Daemon:
Inheritance graph
[legend]
Collaboration diagram for framework.daemon.Daemon:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, protocol='http', host='127.0.0.1', port=0, idx=0, restricted_rpc=False)
 
def getblocktemplate (self, address, prev_block="", client="")
 
def get_miner_data (self)
 
def calc_pow (self, major_version, height, block_blob, seed_hash='')
 
def add_aux_pow (self, blocktemplate_blob, aux_pow, client="")
 
def send_raw_transaction (self, tx_as_hex, do_not_relay=False, do_sanity_checks=True, client="")
 
def submitblock (self, block)
 
def getblock (self, hash='', height=0, fill_pow_hash=False, client="")
 
def getlastblockheader (self, client="")
 
def getblockheaderbyhash (self, hash="", hashes=[], client="")
 
def getblockheaderbyheight (self, height, client="")
 
def getblockheadersrange (self, start_height, end_height, fill_pow_hash=False, client="")
 
def get_connections (self, client="")
 
def get_info (self, client="")
 
def hard_fork_info (self, client="")
 
def generateblocks (self, address, blocks=1, prev_block="", starting_nonce=0)
 
def get_height (self, client="")
 
def pop_blocks (self, nblocks=1)
 
def start_mining (self, miner_address, threads_count=0, do_background_mining=False, ignore_battery=False)
 
def stop_mining (self)
 
def mining_status (self)
 
def get_transaction_pool (self, client="")
 
def get_transaction_pool_hashes (self, client="")
 
def get_transaction_pool_stats (self, client="")
 
def flush_txpool (self, txids=[])
 
def get_version (self)
 
def get_bans (self)
 
def set_bans (self, bans=[])
 
def banned (self, address='')
 
def set_bootstrap_daemon (self, address, username='', password='')
 
def get_public_nodes (self, gray=False, white=True)
 
def get_transactions (self, txs_hashes=[], decode_as_json=False, prune=False, split=False, client="")
 
def get_outs (self, outputs=[], get_txid=False, client="")
 
def get_coinbase_tx_sum (self, height, count, client="")
 
def get_output_distribution (self, amounts=[], from_height=0, to_height=0, cumulative=False, binary=False, compress=False, client="")
 
def get_output_histogram (self, amounts=[], min_count=0, max_count=0, unlocked=False, recent_cutoff=0, client="")
 
def set_log_level (self, level)
 
def set_log_categories (self, categories='')
 
def get_alt_blocks_hashes (self, client="")
 
def get_alternate_chains (self, client="")
 
def get_fee_estimate (self, grace_blocks=0)
 
def is_key_image_spent (self, key_images=[], client="")
 
def save_bc (self)
 
def get_peer_list (self)
 
def set_log_hash_rate (self, visible)
 
def stop_daemon (self)
 
def get_net_stats (self)
 
def get_limit (self)
 
def set_limit (self, limit_down, limit_up)
 
def out_peers (self, out_peers)
 
def in_peers (self, in_peers)
 
def update (self, command, path=None)
 
def get_block_count (self)
 
def get_block_hash (self, height)
 
def relay_tx (self, txids=[], client="")
 
def sync_info (self, client="")
 
def get_txpool_backlog (self, client="")
 
def prune_blockchain (self, check=False)
 
def flush_cache (self, bad_txs=False)
 
def sync_txpool (self)
 
def rpc_access_info (self, client)
 
def rpc_access_submit_nonce (self, client, nonce, cookie)
 
def rpc_access_pay (self, client, paying_for, payment)
 
def rpc_access_tracking (self, clear=False)
 
def rpc_access_data (self)
 
def rpc_access_account (self, client, delta_balance=0)
 

Public Attributes

 host
 
 port
 
 rpc
 

Static Public Attributes

 get_block_template
 
 sendrawtransaction
 
 submit_block
 
 get_block
 
 get_last_block_header
 
 get_block_header_by_hash
 
 get_block_header_by_height
 
 get_block_headers_range
 
 getinfo
 
 getheight
 
 gettransactions
 
 getblockcount
 
 on_get_block_hash
 
 on_getblockhash
 

Constructor & Destructor Documentation

◆ __init__()

def framework.daemon.Daemon.__init__ (   self,
  protocol = 'http',
  host = '127.0.0.1',
  port = 0,
  idx = 0,
  restricted_rpc = False 
)

Member Function Documentation

◆ add_aux_pow()

def framework.daemon.Daemon.add_aux_pow (   self,
  blocktemplate_blob,
  aux_pow,
  client = "" 
)

◆ banned()

def framework.daemon.Daemon.banned (   self,
  address = '' 
)

◆ calc_pow()

def framework.daemon.Daemon.calc_pow (   self,
  major_version,
  height,
  block_blob,
  seed_hash = '' 
)

◆ flush_cache()

def framework.daemon.Daemon.flush_cache (   self,
  bad_txs = False 
)

◆ flush_txpool()

def framework.daemon.Daemon.flush_txpool (   self,
  txids = [] 
)

◆ generateblocks()

def framework.daemon.Daemon.generateblocks (   self,
  address,
  blocks = 1,
  prev_block = "",
  starting_nonce = 0 
)

◆ get_alt_blocks_hashes()

def framework.daemon.Daemon.get_alt_blocks_hashes (   self,
  client = "" 
)

◆ get_alternate_chains()

def framework.daemon.Daemon.get_alternate_chains (   self,
  client = "" 
)

◆ get_bans()

def framework.daemon.Daemon.get_bans (   self)

◆ get_block_count()

def framework.daemon.Daemon.get_block_count (   self)

◆ get_block_hash()

def framework.daemon.Daemon.get_block_hash (   self,
  height 
)

◆ get_coinbase_tx_sum()

def framework.daemon.Daemon.get_coinbase_tx_sum (   self,
  height,
  count,
  client = "" 
)

◆ get_connections()

def framework.daemon.Daemon.get_connections (   self,
  client = "" 
)

◆ get_fee_estimate()

def framework.daemon.Daemon.get_fee_estimate (   self,
  grace_blocks = 0 
)

◆ get_height()

def framework.daemon.Daemon.get_height (   self,
  client = "" 
)

◆ get_info()

def framework.daemon.Daemon.get_info (   self,
  client = "" 
)

◆ get_limit()

def framework.daemon.Daemon.get_limit (   self)

◆ get_miner_data()

def framework.daemon.Daemon.get_miner_data (   self)

◆ get_net_stats()

def framework.daemon.Daemon.get_net_stats (   self)

◆ get_output_distribution()

def framework.daemon.Daemon.get_output_distribution (   self,
  amounts = [],
  from_height = 0,
  to_height = 0,
  cumulative = False,
  binary = False,
  compress = False,
  client = "" 
)

◆ get_output_histogram()

def framework.daemon.Daemon.get_output_histogram (   self,
  amounts = [],
  min_count = 0,
  max_count = 0,
  unlocked = False,
  recent_cutoff = 0,
  client = "" 
)

◆ get_outs()

def framework.daemon.Daemon.get_outs (   self,
  outputs = [],
  get_txid = False,
  client = "" 
)

◆ get_peer_list()

def framework.daemon.Daemon.get_peer_list (   self)

◆ get_public_nodes()

def framework.daemon.Daemon.get_public_nodes (   self,
  gray = False,
  white = True 
)

◆ get_transaction_pool()

def framework.daemon.Daemon.get_transaction_pool (   self,
  client = "" 
)

◆ get_transaction_pool_hashes()

def framework.daemon.Daemon.get_transaction_pool_hashes (   self,
  client = "" 
)

◆ get_transaction_pool_stats()

def framework.daemon.Daemon.get_transaction_pool_stats (   self,
  client = "" 
)

◆ get_transactions()

def framework.daemon.Daemon.get_transactions (   self,
  txs_hashes = [],
  decode_as_json = False,
  prune = False,
  split = False,
  client = "" 
)

◆ get_txpool_backlog()

def framework.daemon.Daemon.get_txpool_backlog (   self,
  client = "" 
)

◆ get_version()

def framework.daemon.Daemon.get_version (   self)

◆ getblock()

def framework.daemon.Daemon.getblock (   self,
  hash = '',
  height = 0,
  fill_pow_hash = False,
  client = "" 
)

◆ getblockheaderbyhash()

def framework.daemon.Daemon.getblockheaderbyhash (   self,
  hash = "",
  hashes = [],
  client = "" 
)

◆ getblockheaderbyheight()

def framework.daemon.Daemon.getblockheaderbyheight (   self,
  height,
  client = "" 
)

◆ getblockheadersrange()

def framework.daemon.Daemon.getblockheadersrange (   self,
  start_height,
  end_height,
  fill_pow_hash = False,
  client = "" 
)

◆ getblocktemplate()

def framework.daemon.Daemon.getblocktemplate (   self,
  address,
  prev_block = "",
  client = "" 
)

◆ getlastblockheader()

def framework.daemon.Daemon.getlastblockheader (   self,
  client = "" 
)

◆ hard_fork_info()

def framework.daemon.Daemon.hard_fork_info (   self,
  client = "" 
)

◆ in_peers()

def framework.daemon.Daemon.in_peers (   self,
  in_peers 
)

◆ is_key_image_spent()

def framework.daemon.Daemon.is_key_image_spent (   self,
  key_images = [],
  client = "" 
)

◆ mining_status()

def framework.daemon.Daemon.mining_status (   self)

◆ out_peers()

def framework.daemon.Daemon.out_peers (   self,
  out_peers 
)

◆ pop_blocks()

def framework.daemon.Daemon.pop_blocks (   self,
  nblocks = 1 
)

◆ prune_blockchain()

def framework.daemon.Daemon.prune_blockchain (   self,
  check = False 
)

◆ relay_tx()

def framework.daemon.Daemon.relay_tx (   self,
  txids = [],
  client = "" 
)

◆ rpc_access_account()

def framework.daemon.Daemon.rpc_access_account (   self,
  client,
  delta_balance = 0 
)

◆ rpc_access_data()

def framework.daemon.Daemon.rpc_access_data (   self)

◆ rpc_access_info()

def framework.daemon.Daemon.rpc_access_info (   self,
  client 
)

◆ rpc_access_pay()

def framework.daemon.Daemon.rpc_access_pay (   self,
  client,
  paying_for,
  payment 
)

◆ rpc_access_submit_nonce()

def framework.daemon.Daemon.rpc_access_submit_nonce (   self,
  client,
  nonce,
  cookie 
)

◆ rpc_access_tracking()

def framework.daemon.Daemon.rpc_access_tracking (   self,
  clear = False 
)

◆ save_bc()

def framework.daemon.Daemon.save_bc (   self)

◆ send_raw_transaction()

def framework.daemon.Daemon.send_raw_transaction (   self,
  tx_as_hex,
  do_not_relay = False,
  do_sanity_checks = True,
  client = "" 
)

◆ set_bans()

def framework.daemon.Daemon.set_bans (   self,
  bans = [] 
)

◆ set_bootstrap_daemon()

def framework.daemon.Daemon.set_bootstrap_daemon (   self,
  address,
  username = '',
  password = '' 
)

◆ set_limit()

def framework.daemon.Daemon.set_limit (   self,
  limit_down,
  limit_up 
)

◆ set_log_categories()

def framework.daemon.Daemon.set_log_categories (   self,
  categories = '' 
)

◆ set_log_hash_rate()

def framework.daemon.Daemon.set_log_hash_rate (   self,
  visible 
)

◆ set_log_level()

def framework.daemon.Daemon.set_log_level (   self,
  level 
)

◆ start_mining()

def framework.daemon.Daemon.start_mining (   self,
  miner_address,
  threads_count = 0,
  do_background_mining = False,
  ignore_battery = False 
)

◆ stop_daemon()

def framework.daemon.Daemon.stop_daemon (   self)

◆ stop_mining()

def framework.daemon.Daemon.stop_mining (   self)

◆ submitblock()

def framework.daemon.Daemon.submitblock (   self,
  block 
)

◆ sync_info()

def framework.daemon.Daemon.sync_info (   self,
  client = "" 
)

◆ sync_txpool()

def framework.daemon.Daemon.sync_txpool (   self)

◆ update()

def framework.daemon.Daemon.update (   self,
  command,
  path = None 
)

Member Data Documentation

◆ get_block

framework.daemon.Daemon.get_block
static

◆ get_block_header_by_hash

framework.daemon.Daemon.get_block_header_by_hash
static

◆ get_block_header_by_height

framework.daemon.Daemon.get_block_header_by_height
static

◆ get_block_headers_range

framework.daemon.Daemon.get_block_headers_range
static

◆ get_block_template

framework.daemon.Daemon.get_block_template
static

◆ get_last_block_header

framework.daemon.Daemon.get_last_block_header
static

◆ getblockcount

framework.daemon.Daemon.getblockcount
static

◆ getheight

framework.daemon.Daemon.getheight
static

◆ getinfo

framework.daemon.Daemon.getinfo
static

◆ gettransactions

framework.daemon.Daemon.gettransactions
static

◆ host

framework.daemon.Daemon.host

◆ on_get_block_hash

framework.daemon.Daemon.on_get_block_hash
static

◆ on_getblockhash

framework.daemon.Daemon.on_getblockhash
static

◆ port

framework.daemon.Daemon.port

◆ rpc

framework.daemon.Daemon.rpc

◆ sendrawtransaction

framework.daemon.Daemon.sendrawtransaction
static

◆ submit_block

framework.daemon.Daemon.submit_block
static

The documentation for this class was generated from the following file: