@near-wallet-selector/core
Version:
This is the core package for NEAR Wallet Selector.
13 lines (12 loc) • 896 B
TypeScript
import type { ProviderService, QueryParams, ViewAccessKeyParams } from "./provider.service.types";
import type { SignedTransaction } from "@near-js/transactions";
import type { AccessKeyView, BlockReference, QueryResponseKind, RpcQueryRequest } from "@near-js/types";
export declare class Provider implements ProviderService {
private provider;
constructor(urls: Array<string>);
query<Response extends QueryResponseKind>(paramsOrPath: QueryParams | RpcQueryRequest | string, data?: string): Promise<Response>;
viewAccessKey({ accountId, publicKey }: ViewAccessKeyParams): Promise<AccessKeyView>;
block(reference: BlockReference): Promise<import("@near-js/types/lib/esm/provider/protocol").BlockResult>;
sendTransaction(signedTransaction: SignedTransaction): Promise<import("@near-js/types/lib/esm/provider/response").FinalExecutionOutcome>;
private urlsToProviders;
}