sbt-ethereum
v.0.5.3
-=-=-=-=-=-
Overview
Warnings
Method to the Madness
Tutorials
Getting Started
Using a Smart Contract (I)
Working with Ether & Multiple Addresses
Using a Smart Contract (II)
Creating a Smart Contract
Testing a Smart Contract
Verifying a Smart Contract on Etherscan
Signing a Transaction with Offline Keys
Tasks and Commands
eth
ethAddress*
Alias*
Sender*
ethContract*
Abi*
Compilation*
Other
ethDebug*
ethKeystore*
ethLanguage*
Solidity*
ethNode*
ChainId*
Url*
ethShoebox*
ethTransaction*
Gas*
Nonce*
Unsigned*
ethUtil*
ens*
erc20*
etherscan*
Settings
Appendix
Prerequisites
Known Shortcomings
+ + + + +
Tutorials
Table of Contents
Tutorials
Table of Contents
Getting Started
Download a repository
Initialize and set-up
sbt-ethereum
Run your first command
Run your second command
Back up your “shoebox”
Connect to a node
Setting up a URL
Check out your session status
Using a Smart Contract (I)
Assigning an alias to an Ethereum address
Acquiring an ABI for a smart contract
Manually acquiring an ABI from
Etherscan
Automatically acquiring an ABI from
Etherscan
(optional)
Accessing read-only methods of an
Ethereum
smart contract
Calling methods that change the data on the blockchain
Working with Ether & Multiple Addresses
Checking the Ether balance of addresses
Funding an Ethereum address
Let’s Ping!
Creating a Second Address
Checking the Current Sender
Checking Account Balances
Sending Ether
Changing the Sender Address
Using a Smart Contract (II)
Calling methods that change the data on the blockchain
Creating a Smart Contract
Create a development repository
Define your smart contract source code
Compile the source code
Deploying the contract
Trying out the contract
Testing a Smart Contract
Basic approach
Setting up testing in
build.sbt
Defining
Test / ethcfgAutoDeployContracts
Generating Scala stubs
Other test settings
Putting it all together
Defining tests in Scala
Running the tests
Verifying a Smart Contract on Etherscan
TL; DR
Step by step, in absurd detail
Signing a Transaction with Offline Keys
Setting up an offline device
Prepare your online computer
Fund an offline address
Transact from an offline address
Create and save an unsigned transaction
Sign the unsigned transaction from the offline computer
Forward the signed transaction to the blockchain
© 2021 Machinery For Change LLC
—
This software provided
without warranty to the extent permitted by applicable law
under your choice of the
Lesser GNU Public License, v.2.1 (LGPL)
or the
Eclipse Public License, v.1.0 (EPL)]