aion-gql-webcomponents
Version:
AION Webcomponents using AION GraphQL
15 lines (14 loc) • 540 B
TypeScript
import { TxnResponse } from "../../common/TxnResponse";
import { Transaction } from "../../common/Transaction";
export default class AionPayService {
private gqlUrl;
NONCE_NRG_QUERY: string;
BALANCE_QUERY: string;
SEND_RAWTXN_QUERY: string;
constructor(gqlUrl: string);
fetchNonceNrg(address: string, txn: Transaction): Promise<any[]>;
fetchBalance(address: any): Promise<any[]>;
sendRawTransaction(encodedTx: string): Promise<TxnResponse>;
getError(res: any): string;
_getErrors(res: any): any[];
}