EthWallet.Transaction (eth_wallet v0.0.10)
Tx about Ethereum.
Link to this section Summary
Link to this section Types
Link to this section Functions
Link to this function
build_tx(to_str, value, data, nonce, gas_price, gas_limit)
Link to this function
encode_unsigned(n)
Specs
iex(80)> :binary.encode_unsigned(12345)
"09"
iex(81)> "09" <> <<0>>
<<48, 57, 0>>
iex(83)> 48 * 256 + 57
12345
Link to this function
hash_for_signing(tx, chain_id \\ nil)
Specs
Link to this function
serialize(tx, include_vrs \\ true)
Specs
Link to this function
sign_tx(tx, private_key, chain_id \\ nil)
Specs
v <> r <> s => Base64 编码,得最终版签名.
Link to this function