useAccountSigners

Get all signers of account

function useAccountSigners(
  contract: RequiredParam<SmartContract<BaseContract>>,
): UseQueryResult<SignerWithPermissions[]>;

Parameters


Returns

a response object that includes an array of all signers of the provided account

type ReturnType = UseQueryResult<SignerWithPermissions[]>;

Example

const {
  data: accounts,
  isLoading,
  error,
} = useAccountSigners(contract);