Skip to content

getPoSAccount

Get the PoS account information

example.ts
import { publicClient } from "./client";
 
const PoSAccount = await publicClient.getPoSAccount({
  address: "0x...",
});

Returns

PoSAccount

The PoS account information object.

Parameters

address

  • Type: HexAddress
const PoSAccount = await publicClient.getPoSAccount({
  address: "0x...", 
});

blockNumber (optional)

  • Type: bigint
const PoSAccount = await publicClient.getPoSAccount({
  address: "0x...", 
  blockNumber: 1n,
});

JSON-RPC Method

pos_getAccount