Skip to content

getPayerAddress

getPayerAddress(account): `0x${string}`

Defined in: packages/synapse-core/src/utils/payer.ts:16

Get the address that pays for an account’s storage: a session key signs as itself, but its root wallet pays.

ParameterTypeDescription
accountAccountThe client account.

`0x${string}`

The root address for a session key account, otherwise the account address.

import { getPayerAddress } from '@filoz/synapse-core/utils'
const payer = getPayerAddress(client.account)