ledger-core
|
#include <EthereumLikeTransactionBuilder.hpp>
Public Member Functions | |
virtual std::shared_ptr< EthereumLikeTransactionBuilder > | sendToAddress (const std::shared_ptr< Amount > &amount, const std::string &address)=0 |
virtual std::shared_ptr< EthereumLikeTransactionBuilder > | wipeToAddress (const std::string &address)=0 |
virtual std::shared_ptr< EthereumLikeTransactionBuilder > | setGasPrice (const std::shared_ptr< Amount > &gasPrice)=0 |
virtual std::shared_ptr< EthereumLikeTransactionBuilder > | setGasLimit (const std::shared_ptr< Amount > &gasLimit)=0 |
virtual std::shared_ptr< EthereumLikeTransactionBuilder > | setInputData (const std::vector< uint8_t > &data)=0 |
virtual void | build (const std::shared_ptr< EthereumLikeTransactionCallback > &callback)=0 |
virtual std::shared_ptr< EthereumLikeTransactionBuilder > | clone ()=0 |
virtual void | reset ()=0 |
Static Public Member Functions | |
static std::shared_ptr< EthereumLikeTransaction > | parseRawUnsignedTransaction (const Currency ¤cy, const std::vector< uint8_t > &rawTransaction) |
static std::shared_ptr< EthereumLikeTransaction > | parseRawSignedTransaction (const Currency ¤cy, const std::vector< uint8_t > &rawTransaction) |
Builder for transactions on the Ethereum blockchain.
Use this interface when you want to build a transaction step by step.
|
pure virtual |
Build a transaction from the given builder parameters.
|
pure virtual |
Create a clone of this builder.
Implemented in ledger::core::EthereumLikeTransactionBuilder.
|
static |
Create a signed transaction for the Ethereum blockchain out of a raw binary.
|
static |
Create an unsigned transaction for the Ethereum blockchain out of a raw binary.
|
pure virtual |
Reset the current instance to its initial state
Implemented in ledger::core::EthereumLikeTransactionBuilder.
|
pure virtual |
Send funds to the given address. This method can be called multiple times to send to multiple addresses.
amount | The value to send |
address | Address of the recipient |
|
pure virtual |
Set gas limit (in wei) the originator is not willing to exceed.
|
pure virtual |
Set gas price (in wei) the originator is willing to pay.
|
pure virtual |
Set input data the originator wants to embed in transaction.
Implemented in ledger::core::EthereumLikeTransactionBuilder.
|
pure virtual |
Send all available funds to the given address.
address | Address of the recipient |
Implemented in ledger::core::EthereumLikeTransactionBuilder.