Monero
Loading...
Searching...
No Matches
console Namespace Reference

Variables

 url_parser = urllib.parse.urlparse
str USAGE = 'usage: python -i console.py [[[scheme]<host>:]<port> [[[scheme]<host>:]<port>...]]'
list daemons = []
list wallets = []
list rpcs = []
str scheme = 'http'
str host = '127.0.0.1'
 port = None
 t = url_parser(sys.argv[n], allow_fragments = False)
 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
 rpc = framework.rpc.JSONRPC('{protocol}://{host}:{port}'.format(protocol=scheme, host=host, port=port))
dict get_version
 res = rpc.send_json_rpc_request(get_version)
list daemon = daemons[0]
list wallet = wallets[0]
int didx = 0
int widx = 0
str var = 1 else "daemons[" + str(didx) + "]"

Variable Documentation

◆ daemon

◆ daemons

list console.daemons = []

◆ didx

int console.didx = 0

◆ get_version

dict console.get_version
Initial value:
1= {
2 'method': 'get_version',
3 'jsonrpc': '2.0',
4 'id': '0'
5 }

◆ host

str console.host = '127.0.0.1'

◆ port

console.port = None

◆ res

console.res = rpc.send_json_rpc_request(get_version)

◆ rpc

console.rpc = framework.rpc.JSONRPC('{protocol}://{host}:{port}'.format(protocol=scheme, host=host, port=port))

◆ rpcs

list console.rpcs = []

◆ s

console.s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

◆ scheme

str console.scheme = 'http'

◆ t

console.t = url_parser(sys.argv[n], allow_fragments = False)

◆ url_parser

console.url_parser = urllib.parse.urlparse

◆ USAGE

str console.USAGE = 'usage: python -i console.py [[[scheme]<host>:]<port> [[[scheme]<host>:]<port>...]]'

◆ var

str console.var = 1 else "daemons[" + str(didx) + "]"

◆ wallet

◆ wallets

list console.wallets = []

◆ widx

int console.widx = 0