UNPKG

@wormhole-foundation/sdk-algorand

Version:

SDK for Algorand, used in conjunction with @wormhole-foundation/sdk

14 lines 724 B
import type { Network, SignOnlySigner, SignedTx, Signer, UnsignedTransaction } from "@wormhole-foundation/sdk-connect"; import type algosdk from "algosdk"; import type { AlgorandChains } from "./types.js"; export declare function getAlgorandSigner(rpc: algosdk.Algodv2, mnemonic: string): Promise<Signer>; export declare class AlgorandSigner<N extends Network, C extends AlgorandChains> implements SignOnlySigner<N, C> { private _chain; private _debug; _account: algosdk.Account; constructor(_chain: C, _rpc: algosdk.Algodv2, mnemonic: string, _debug?: boolean); chain(): C; address(): string; sign(unsignedTxns: UnsignedTransaction[]): Promise<SignedTx[]>; } //# sourceMappingURL=signer.d.ts.map