@rarimo/providers-near
Version:
Features of the Rarimo SDK that provide access to wallets and the ability to interact with them on the NEAR blockchain.
18 lines (17 loc) • 661 B
TypeScript
import type { Wallet, WalletSelector } from '@near-wallet-selector/core';
import type { NearTransactionRequestBody } from '@rarimo/provider';
export declare class NearRawProvider {
selector: WalletSelector | null;
wallet: Wallet | null;
createAccessKeyFor: string;
accountId: string;
isNear: boolean;
constructor({ createAccessKeyFor }: {
createAccessKeyFor?: string;
});
init(): Promise<boolean>;
signIn(): Promise<void>;
signOut(): Promise<void>;
signAndSendTx({ contractId, method, args, gas, deposit, }: NearTransactionRequestBody): Promise<any>;
getTransactionResult(txhash: string): Promise<any>;
}