stellar-sdk
Version:
A library for working with the Stellar network, including communication with the Horizon and Soroban RPC servers.
13 lines (12 loc) • 594 B
TypeScript
import { Keypair } from "@stellar/stellar-base";
/**
* For use with {@link Client} and {@link AssembledTransaction}.
* Implements `signTransaction` and `signAuthEntry` with signatures expected by
* those classes. This is useful for testing and maybe some simple Node
* applications. Feel free to use this as a starting point for your own
* Wallet/TransactionSigner implementation.
*/
export declare const basicNodeSigner: (keypair: Keypair, networkPassphrase: string) => {
signTransaction: (tx: string) => Promise<string>;
signAuthEntry: (entryXdr: string) => Promise<string>;
};