UNPKG

@libra-opensource/client-sdk-typescript

Version:
13 lines (12 loc) 643 B
import DiemClient from './diemClient'; import { Currency } from './interfaces/types'; export default class TestnetClient extends DiemClient { private readonly faucetUrl; static readonly TESTNET_JSONRPC_URL = "https://testnet.diem.com/v1"; static readonly TESTNET_FAUCET_URL = "https://testnet.diem.com/mint"; static readonly TESTNET_DESIGNATED_DEALER = "000000000000000000000000000000dd"; static readonly TESTNET_CHAIN_ID = 2; private readonly faucetCaller; constructor(faucetUrl?: string, jsonRpcUrl?: string, chainID?: number); mint(authKeyHex: string, amount: BigInt, currency: Currency): Promise<bigint>; }