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.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
account | Account | The client account. |
Returns
Section titled “Returns”`0x${string}`
The root address for a session key account, otherwise the account address.
Example
Section titled “Example”import { getPayerAddress } from '@filoz/synapse-core/utils'
const payer = getPayerAddress(client.account)