Create a hoodchain client.
import { createHoodClient } from 'hoodchain'const hood = createHoodClient()const block = await hood.public.getBlockNumber() Copy
import { createHoodClient } from 'hoodchain'const hood = createHoodClient()const block = await hood.public.getBlockNumber()
import { createHoodClient } from 'hoodchain'import { privateKeyToAccount } from 'viem/accounts'const hood = createHoodClient({ chain: 'testnet', account: privateKeyToAccount(process.env.ROBINHOOD_CHAIN_PRIVATE_KEY as `0x${string}`),}) Copy
import { createHoodClient } from 'hoodchain'import { privateKeyToAccount } from 'viem/accounts'const hood = createHoodClient({ chain: 'testnet', account: privateKeyToAccount(process.env.ROBINHOOD_CHAIN_PRIVATE_KEY as `0x${string}`),})
Create a hoodchain client.