Step 2 - Network

State and Info

Live information about the connected blockchain network

import { service } from '@kiroboio/fct-sdk'

service.network.value

//returns
{
   netId: string       // the current network id
   height: number,     // the current block height
   timestamp: string,  // the current block timestamp in seconds
   gasPrice: string,   // the current gasPrice in wei
   contracts: {...},   // object that holds FCT contracts addresses
   online: boolean,    // whether the network node is synced
   updatedAt: string,  // the date and time of status last update 
}

Last updated