Select the wallet and role
SetRPC_URL, ACCOUNT_ADDRESS, and ROLE_ID. Use the config address returned
by wallet creation and the role ID returned by
adding a role. Omitting ROLE_ID reads root role 0.
Check the result
The example decodes the role’s authority and action count. For the spending role, confirm that the authority is the delegate address you intended to authorize. Individual permission values require a separate contract read. Use the native config binding’sgetAction(roleId, actionIndex) method, then decode the result
with decodePermission (TypeScript), Permission::decode (Rust), or
decode_permission (Python). The read-role example itself reports authority and
action count; it does not query the remaining allowance.
Next, send a transfer with the delegate key.
Full examples: TypeScript,
Rust,
Python.
