Before using these integrations, ensure you’ve completed the server setup by importing a client session or creating a pregenerated wallet. See the for details.
Installation
Install the required dependencies:Implementation
Functional API
ThecreateParaStellarSigner function returns a signer compatible with Stellar SDK’s contract.SignTransaction and contract.SignAuthEntry interfaces:
Class API
TheParaStellarSigner class can also be instantiated directly. Pass networkPassphrase to the constructor so signTransaction uses it as the default:
Best Practices
- Always load the source account from Horizon before building transactions to get the correct sequence number
- Use
setTimeout()on transactions to prevent them from being valid indefinitely - Consider fee bump transactions during network congestion
- Use higher fees during high-traffic periods to ensure transaction inclusion