prepare_transaction
Autofills an unsigned transaction with live network values (Sequence, Fee, LastLedgerSequence, NetworkID) for offline signing. Read-only; never signs or submits. Defaults to testnet.
Instructions
Autofill an unsigned transaction with live network values — Sequence (from the account), Fee (current base fee), LastLedgerSequence (now + offset), and NetworkID — so it's ready to sign OFFLINE. Read-only: fetches values, fills the tx, but NEVER signs or submits. Defaults to TESTNET — pass network:'mainnet' for a mainnet account (else you get a mainnet account's testnet Sequence/NetworkID or actNotFound).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tx | Yes | unsigned tx JSON; must include Account + TransactionType | |
| network | No | testnet | |
| lastLedgerOffset | No |