Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function buildTransaction(
account: AccountResponse,
operations: xdr.Operation[],
options?: Partial
) {
const builder = new TransactionBuilder(account, { fee: 100, ...options })
for (const operation of operations) {
builder.addOperation(operation)
}
builder.setNetworkPassphrase(Networks.TESTNET)
builder.setTimeout(60)
return builder.build()
}