UNPKG

@okxweb3/coin-stellar

Version:

@ok/coin-stellar is a Stellar SDK for building Web3 wallets and applications. It supports Stellar and PI blockchains, enabling private key management, address generation, transaction signing, trustline creation, and asset transfers

41 lines (40 loc) 2.03 kB
export function isValidDate(d: Date): boolean; export const BASE_FEE: "100"; export const TimeoutInfinite: 0; export class TransactionBuilder { static cloneFrom(tx: Transaction, opts?: object | undefined): TransactionBuilder; static buildFeeBumpTransaction(feeSource: Keypair | string, baseFee: string, innerTx: Transaction, networkPassphrase: string): FeeBumpTransaction; static fromXDR(envelope: string | xdr.TransactionEnvelope, networkPassphrase: string): Transaction | FeeBumpTransaction; constructor(sourceAccount: any, opts?: {}); source: any; operations: any[]; baseFee: any; timebounds: any; ledgerbounds: any; minAccountSequence: any; minAccountSequenceAge: any; minAccountSequenceLedgerGap: any; extraSigners: any[] | null; memo: any; networkPassphrase: any; sorobanData: any; addOperation(operation: xdr.Operation): TransactionBuilder; addOperationAt(operation: xdr.Operation, index: number): TransactionBuilder; clearOperations(): TransactionBuilder; clearOperationAt(index: number): TransactionBuilder; addMemo(memo: Memo): TransactionBuilder; setTimeout(timeoutSeconds: number): TransactionBuilder; setTimebounds(minEpochOrDate: Date | number, maxEpochOrDate: Date | number): TransactionBuilder; setLedgerbounds(minLedger: number, maxLedger: number): TransactionBuilder; setMinAccountSequence(minAccountSequence: string): TransactionBuilder; setMinAccountSequenceAge(durationInSeconds: number): TransactionBuilder; setMinAccountSequenceLedgerGap(gap: number): TransactionBuilder; setExtraSigners(extraSigners: string[]): TransactionBuilder; setNetworkPassphrase(networkPassphrase: string): TransactionBuilder; setSorobanData(sorobanData: xdr.SorobanTransactionData | string): TransactionBuilder; build(): Transaction; hasV2Preconditions(): boolean; } import { Memo } from "./memo"; import { Transaction } from "./transaction"; import { FeeBumpTransaction } from "./fee_bump_transaction";