Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 940 Bytes

sfc.md

File metadata and controls

35 lines (24 loc) · 940 Bytes

First steps

Wiki

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.1-rc1. 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)