Time to read: 1 min
Flyover SDK - Trusted Accounts
Note
If you wish to suggest changes on this document, please open a PR on the Liquidity Provider Server Repository
Summary
The Liquidity Provider Trusted Accounts feature extends the existing Liquidity Provider Server (LPS) and FlyoverSDK to allow Liquidity Providers (LPs) to configure a set of trusted Rootstock accounts that can bypass certain validation checks — such as the reCAPTCHA verification — during PegIn or PegOut operations.
This functionality is part of the Flyover Protocol, aimed at enabling automated integrations for partners and liquidity providers who operate frequently.
Architecture and Design
Components
This feature adds functionality to two existing components:
- Liquidity Provider Server (LPS) – Enables LPs to configure and manage trusted accounts with BTC/RBTC locking caps.
- FlyoverSDK – Provides new methods that allow integrators to sign and submit quotes authenticated by trusted accounts.
Design Notes
- Backward compatible with existing FlyoverSDK versions
>= v1.7.0and LPS versions>= v2.3.0. - The account paying for the operation doesn’t need to be the same as the whitelisted account, but a valid signature of the quote hash from the trusted account must be provided.
Setup and Configuration
Environment Requirements
- FlyoverSDK:
>= v1.70 - LPS:
>= v2.3.0
Configuration
- The LP must configure authorized trusted accounts in their LPS instance.
- No additional
.envvariables or feature flags are required.
API / Interface Details
FlyoverSDK Methods
async acceptAuthenticatedQuote(quote: Quote, signature: string): Promise<AcceptedQuote>: Accepts a PegIn quote authenticated by a trusted account’s signature.async acceptAuthenticatedPegoutQuote(quote: PegoutQuote, signature: string): Promise<AcceptedPegoutQuote>: Accepts a PegOut quote authenticated by a trusted account’s signature.async signQuote(quote: Quote | PegoutQuote): Promise<string>: Generates a valid signature for a given quote using the whitelisted Rootstock account.