FederationLike.network
ts
network(): NetworkGives the Bitcoin network of the federation. Synchronous.
Parameters. None.
Returns. Network. The Bitcoin network the federation runs on.
Throws. None.
Example
example.ts
ts
import { Network, type FederationLike } from '@fedimint/react-native'
declare const fed: FederationLike
const network = fed.network()
console.log(network === Network.Bitcoin ? 'real money' : 'test money')Used in. Receive, step 03