Skip to content

Add convenience function for viewAccessKeyList #75

@petersalomonsen

Description

@petersalomonsen

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 query method
  • Type-safe access to access key lists

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions