archethic
Version:
Archethic Javascript SDK
22 lines (21 loc) • 837 B
TypeScript
import * as Crypto from "./crypto.js";
import * as Utils from "./utils.js";
import { DirectEndpoint, WalletRPCEndpoint } from "./endpoint.js";
import { ArchethicRPCClient } from "./api/wallet_rpc.js";
import { NodeRPCClient } from "./api/node_rpc.js";
import Network from "./network.js";
import Transaction from "./transaction.js";
import Account, { Keychain } from "./account.js";
export { Utils, Crypto, Keychain };
export default class Archethic {
endpoint: DirectEndpoint | WalletRPCEndpoint;
rpcWallet: ArchethicRPCClient | undefined;
rpcNode: NodeRPCClient | undefined;
transaction: Transaction;
nearestEndpoints: Set<string>;
account: Account;
network: Network;
constructor(endpoint: string);
connect(): Promise<this>;
requestNode(call: (endpoint: string) => Promise<any>): Promise<any>;
}