Creates a new AuthorityInfo.
The authority type enum
The authority identifier as bytes
OptionalmaxDurationSlots: bigint | nullMaximum session duration (for session types)
Converts the authority's raw public key bytes to the on-chain address representation.
For Ed25519/ProgramExec: returns the id bytes as-is (already matches on-chain). For Secp256k1: derives the 20-byte Ethereum address from the public key. For Secp256r1: returns the id bytes as-is (already matches on-chain).
The on-chain authority address bytes
String representation of the authority address.
For Ed25519: base58 encoded. For Secp256k1/Secp256r1: unprefixed hex.
The authority address as a human-readable string
ReadonlyidThe authority identifier as raw bytes
Returns true if this is an Ed25519 authority (token or session).
Returns true if this is a Secp256k1 authority (token or session).
Returns true if this is a Secp256r1 authority (token or session).
Returns true if this is a session authority type.
ReadonlymaxMaximum session duration in slots (only for session types)
Converts this authority data to a CreateAuthorityInfo object that can be used for wallet operations.
CreateAuthorityInfo for use with Swig wallet operations
ReadonlytypeThe authority type (enum from coder)
A lightweight wrapper around authority data that provides typed access and conversion to SDK types.
Example