Attach to a running node. You may need to specify your specific configuration.
opera attach
To use the SFC contract in the console you have to initialize the contract context.
abi = JSON.parse('SFC_ABI_OUTPUT')
// Note: define variable sfcc (instead of sfc) to avoid clashing with the sfc namespace introduced in go-lachesis v0.7.0-rc1.
sfcc = web3.ftm.contract(abi).at("0xfc00face00000000000000000000000000000000")
The current sfc release is 3.0.1-rc1
. The ABI output available at SFC ABI v3.
// Sanity check
sfcc.lastValidatorID() // if everything is all right, will return a non-zero value
personal.unlockAccount("0xYourAddress", "password", 60)