module Ethereum::Payment
Extended Modules
Defined in:
ethereum/payment.crConstant Summary
-
ETH_CONTRACT_GAS_LIMIT =
"100000"
-
ETH_SEND_GAS_LIMIT =
"21000"
Instance Method Summary
- #convert_nonce(nonce : Int64 | Nil)
- #estimate_gas_limit(to : String, contract_hex : String = "") : String
- #estimate_gas_limit : String
- #get_current_gas_price : String
- #get_current_nonce(from : String) : Int64
- #send_by_signed(tx_raw : String) : String
- #sign(from : String, to : String, amount : String, secret : String, gas_limit : String = ETH_SEND_GAS_LIMIT, gas_price : String = get_current_gas_price, nonce : Int64 | Nil = nil) : Response::Payment::Sign
- #sign_contract(from : String, secret : String, contract_address : String, contract_hex : String, gas_limit = ETH_CONTRACT_GAS_LIMIT, gas_price = get_current_gas_price, nonce : Int64 | Nil = nil) : Response::Payment::Sign
- #to_wei(eth : String) : String
Instance Method Detail
def sign(from : String, to : String, amount : String, secret : String, gas_limit : String = ETH_SEND_GAS_LIMIT, gas_price : String = get_current_gas_price, nonce : Int64 | Nil = nil) : Response::Payment::Sign
#
def sign_contract(from : String, secret : String, contract_address : String, contract_hex : String, gas_limit = ETH_CONTRACT_GAS_LIMIT, gas_price = get_current_gas_price, nonce : Int64 | Nil = nil) : Response::Payment::Sign
#