UNPKG

freelii-passkey-kit

Version:

A helper library for creating and using smart wallet accounts on the Stellar blockchain.

18 lines (17 loc) 528 B
import { Client as SacClient } from 'sac-sdk'; import { PasskeyBase } from "./base"; export class SACClient extends PasskeyBase { networkPassphrase; constructor(options) { const { networkPassphrase, rpcUrl } = options; super(rpcUrl); this.networkPassphrase = networkPassphrase; } getSACClient(SACContractId) { return new SacClient({ contractId: SACContractId, networkPassphrase: this.networkPassphrase, rpcUrl: this.rpcUrl, }); } }