nanocurrency-rpc-bindings
Version:
JavaScript and TypeScript bindings for Nano currency RPC calls
13 lines • 1.54 kB
TypeScript
import { AccountBalanceResponse, AccountHistoryResponse, AccountInfoResponse, AccountRepresentativeResponse, DifficultyResponse, ProcessBlockResponse, RpcRequestData, RpcResponseData, SendFundsResponse, WalletBalanceResponse, WorkGenerateResponse } from "./rpc.types";
import { Block, BlockSubtype } from "./nano.types";
export declare function sendWalletRequest<T extends RpcResponseData>(action: RpcRequestData, walletUrl: string): Promise<T>;
export declare function getWalletBalances(walletId: string, walletUrl: string): Promise<WalletBalanceResponse>;
export declare function getAccountBalance(account: string, walletUrl: string): Promise<AccountBalanceResponse>;
export declare function getAccountInfo(account: string, walletUrl: string): Promise<AccountInfoResponse>;
export declare function getAccountHistory(account: string, walletUrl: string): Promise<AccountHistoryResponse>;
export declare function getAccountRepresentative(account: string, walletUrl: string): Promise<AccountRepresentativeResponse>;
export declare function sendFunds(walletId: string, source: string, destination: string, amountRaw: string, walletUrl: string, txId: string): Promise<SendFundsResponse>;
export declare function processBlock(subtype: BlockSubtype, block: Block, walletUrl: string): Promise<ProcessBlockResponse>;
export declare function getDifficulty(walletUrl: string): Promise<DifficultyResponse>;
export declare function getWork(blockHash: string, walletUrl: string): Promise<WorkGenerateResponse>;
//# sourceMappingURL=rpc.d.ts.map