Integration Extensions

Multi-Hosted Parties

Sketch:

  • allocate the treasuryParty from the start as a decentralized party on multiple validator nodes

    • a common setup is to use two nodes with threshold two; thus both of them must confirm a tx for it to be committed

  • upload all .dars for your onboarded tokens on all of these validators

  • use any of the nodes hosting the party to read from as part of history ingestion and to prepare and execute transactions

    • switching between the nodes can be done. take care to re-synchronize the ingestion offset as described in Backup and Restore

App Reward Optimization

Sketch:

Earn App Rewards for Deposits

Sketch:

Earn App Rewards for Withdrawals

Sketch:

Sharing App Rewards with your Customers

Sketch:

Sharding the Treasury

Sketch: the Integration Architecture is already built to support multiple treasury parties

  • allocate multiple treasury parties in Setup Exchange Parties; they can even be one separate nodes

  • run Tx History Ingestion, Withdrawal Automation, Multi-Step Deposit Automation once for each treasuryParty

  • have your Exchange Internal Systems pick the treasuryParty that should execute the withdrawal

    • you might have to split large withdrawals over multiple parties in case none of them have large enough balances on their own

Using the gRPC Ledger API

Feel free to do so if you prefer using gRPC. It is functionally equivalent to the JSON Ledger API. See this Ledger API overview for more information.