# getPublicKey

Returns the root public key. This key is either provided during construction via `config.rootPublicKey` or resolved from the built-in constants table based on the program ID.

## Usage

```ts twoslash
// [!include ~/snippets/code/solana/fee-delegation.ts]
const solanaChainSigContract = chainSigContract
// ---cut---
const publicKey = await solanaChainSigContract.getPublicKey()
```

## Returns

| Type                              | Description                                 |
| --------------------------------- | ------------------------------------------- |
| `Promise<UncompressedPubKeySEC1>` | Root public key in SEC1 uncompressed format |
