Skip to main content

Introduction

Reading a role shows who may authorize it and which permissions are attached.
  • Use when: you need to display access, choose a signer, or inspect a remaining allowance.
  • For: wallet settings screens and transaction-preparation flows.

How it works

  1. Connect a public RPC client to the wallet config address.
  2. Read getRole for the on-chain role ID and decode the result.
  3. Use its action count to read and decode each permission.
  4. Use the resulting fields to explain the role’s current access.

Returned structure

A native-limit permission contains type: "nativeLimit" and amount, its remaining allowance in wei. Recurring permissions contain the allowance, window, last reset, and current amount. EVM recurring windows use timestamp seconds.

SDK example

This is a read-only operation: no signer or gas is required.
Illustrative structure for a delegate that has spent 7 of its 100 wei allowance:
The repository’s TypeScript, Rust, and Python examples read the authority and action count. The example above also fetches each permission.