sfc.md
April 3, 2024 ยท View on GitHub
First steps
Attach to your node
Attach to a running node. You may need to specify your specific configuration.
opera attach
Initializing the SFC
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.5-rc.1. The ABI output available at SFC ABI v3.
Checking initializing SFC has worked
// Sanity check
sfcc.lastValidatorID() // if everything is all right, will return a non-zero value
Unlocking account
personal.unlockAccount("0xYourAddress", "password", 60)