Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.getpara.com/llms.txt

Use this file to discover all available pages before exploring further.

Build and sign complex Stellar transactions using Para’s integrated signers. This includes multi-operation transactions, fee bumps, XDR signing, and Soroban smart contract authorization.
Combine multiple operations into a single atomic transaction:
import { useParaStellarSigner } from "@getpara/react-native-wallet/stellar";
import { TransactionBuilder, Operation, Asset, BASE_FEE, Horizon, Networks } from "@stellar/stellar-sdk";
import { Button } from "react-native";

const server = new Horizon.Server("https://horizon.stellar.org");

function MultiOpTransaction() {
  const { stellarSigner } = useParaStellarSigner({
    networkPassphrase: Networks.PUBLIC,
  });

  const execute = async () => {
    if (!stellarSigner) return;

    const sourceAccount = await server.loadAccount(stellarSigner.address);

    const transaction = new TransactionBuilder(sourceAccount, {
      fee: BASE_FEE,
      networkPassphrase: Networks.PUBLIC,
    })
      .addOperation(
        Operation.payment({
          destination: "GRECIPI...",
          asset: Asset.native(),
          amount: "10",
        })
      )
      .addOperation(
        Operation.manageData({
          name: "memo",
          value: "payment-ref-123",
        })
      )
      .setTimeout(180)
      .build();

    const { signedTxXdr } = await stellarSigner.signTransaction(transaction.toXDR());
    const tx = TransactionBuilder.fromXDR(signedTxXdr, Networks.PUBLIC);
    const result = await server.submitTransaction(tx);
    console.log("Transaction hash:", result.hash);
  };

  return <Button title="Execute Multi-Op" onPress={execute} />;
}

Next Steps