-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Feature Request
Description
Add a convenience function for viewing the list of access keys for an account, similar to the existing viewAccount, viewFunction, and viewAccessKey convenience functions.
Proposed API
export async function viewAccessKeyList(
client: NearRpcClient,
params: {
accountId: string;
finality?: 'final' | 'near-final' | 'optimistic';
blockId?: string | number;
}
): Promise<AccessKeyList>Implementation
The function should use the query method with request_type: 'view_access_key_list'.
Benefits
- Consistent API with other convenience functions
- Easier to discover and use than the generic
querymethod - Type-safe access to access key lists
Metadata
Metadata
Assignees
Labels
No labels