UNPKG

steem-auth-vue

Version:

A Vue 3 authentication component for Steem blockchain and Echelon sidechain

28 lines (26 loc) 1.18 kB
import { ITransaction } from '../interfaces'; declare global { interface Window { steem_keychain: { requestBroadcast: (username: string, operations: any[], keyType: string, callback: (response: any) => void) => void; requestSignBuffer: (username: string, message: string, keyType: string, callback: (response: { success: boolean; result: string; message: string; }) => void) => void; }; } } export declare const setPinRequestHandler: (handler: (username: string, callback: (pin: string) => void) => void) => void; export declare const setActiveKeyRequestHandler: (handler: (username: string, operationType: string, payload: any, callback: (activeKey: string) => void) => void) => void; declare class TransactionService { send(trx: string, payload: any, options?: { requiredAuth?: 'posting' | 'active' | 'owner'; activeKey?: string; }): Promise<ITransaction>; private _sendWithKeychain; private _sendWithSteemLogin; private _sendWithKey; } declare const _default: TransactionService; export default _default;