How to use the stellar-sdk.Networks.TESTNET function in stellar-sdk

To help you get started, we’ve selected a few stellar-sdk examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github satoshipay / solar / stories / TransactionReviewDialog.tsx View on Github external
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()
}