class Wallet::Node
- Wallet::Node
- Reference
- Object
Defined in:
tron-wallet/node.crConstant Summary
-
MAXIMUM_GAP =
50
-
TRX_TO_SUN =
1000000
Constructors
Instance Method Summary
- #claim_rewards(address : String, private_key : String)
- #conn : HTTP::Client
- #disconnect_with_warning(error)
- #error_while_parse(body)
- #error_while_request(error)
- #exec(method, path, body)
- #generate_address
- #get(path, params = nil)
- #get_bandwidth_price
- #get_brokerage(address : String)
- #get_contract_name(address)
- #get_energy_price
- #get_net_stats(address)
- #get_now_block
- #get_token_balance(address, contract)
- #get_transaction(id)
- #get_tronscan_block
- #get_trx_balance(address)
- #get_unclaimed_rewards(address)
- #get_withdrawable_balance(address)
- #get_witnesses_list
- #make_connection
- #make_transaction(path, params, private_key)
- #post(path, params)
- #prepare_token_transfer(address : String, contract : String, amount : Float64, estimate_fee = false)
- #read_int(json : JSON::Any | Nil)
- #read_int(json : JSON::Any, *field_names)
- #read_money(json : JSON::Any | Nil)
- #read_money(json : JSON::Any, *field_names)
- #reconnect
- #send_transaction(transaction)
- #sign_and_send(transaction, private_key)
- #sign_transaction(transaction : JSON::Any, private_key : String)
- #stake(address : String, amount : Float64, resource : String, private_key : String)
- #status
- #transfer_trx(address : String, private_key : String, amount : Float64)
- #unstake(address : String, amount : Float64, resource : String, private_key : String)
- #unstake_v1(address : String, resource : String, receiver : String | Nil, private_key : String)
- #vote_for_witness(address : String, witness : String, votes : Int32, private_key : String)
- #withdraw_unstaked_trx(address : String, private_key : String)
Constructor Detail
Instance Method Detail
def prepare_token_transfer(address : String, contract : String, amount : Float64, estimate_fee = false)
#
def stake(address : String, amount : Float64, resource : String, private_key : String)
#
def unstake(address : String, amount : Float64, resource : String, private_key : String)
#
def unstake_v1(address : String, resource : String, receiver : String | Nil, private_key : String)
#
def vote_for_witness(address : String, witness : String, votes : Int32, private_key : String)
#