class

Wallet::Node

Inherits Reference < Object

Constants

MAXIMUM_GAP = 50
TRX_TO_SUN = 1000000

Constructors

new(wallet : Wallet::Main)
Source

Instance methods

claim_rewards(address : String, private_key : String)
Source
conn
Source
disconnect_with_warning(error)
Source
error_while_parse(body)
Source
error_while_request(error)
Source
exec(method, path, body)
Source
generate_address
Source
get(path, params = nil)
Source
get_bandwidth_price
Source
get_brokerage(address : String)
Source
get_contract_name(address)
Source
get_energy_price
Source
get_net_stats(address)
Source
get_now_block
Source
get_token_balance(address, contract)
Source
get_transaction(id)
Source
get_tronscan_block
Source
get_trx_balance(address)
Source
get_unclaimed_rewards(address)
Source
get_withdrawable_balance(address)
Source
get_witnesses_list
Source
make_connection
Source
make_transaction(path, params, private_key)
Source
post(path, params)
Source
prepare_token_transfer(address : String, contract : String, amount : Float64, estimate_fee = false)
Source
read_int(json : JSON::Any | Nil)
Source
read_int(json : JSON::Any, *field_names)
Source
read_money(json : JSON::Any | Nil)
Source
read_money(json : JSON::Any, *field_names)
Source
reconnect
Source
send_transaction(transaction)
Source
sign_and_send(transaction, private_key)
Source
sign_transaction(transaction : JSON::Any, private_key : String)
Source
stake(address : String, amount : Float64, resource : String, private_key : String)
Source
status
Source
transfer_trx(address : String, private_key : String, amount : Float64)
Source
unstake(address : String, amount : Float64, resource : String, private_key : String)
Source
unstake_v1(address : String, resource : String, receiver : String | Nil, private_key : String)
Source
vote_for_witness(address : String, witness : String, votes : Int32, private_key : String)
Source
withdraw_unstaked_trx(address : String, private_key : String)
Source

Nested types