Trustless Work
Home

Withdraw Remaining Funds

Component to withdraw remaining funds with form, button and dialog variants.

WithdrawRemainingFundsEscrowsNEW

Installation

Before installing the block, make sure you have the required providers and blocks. You can read more in the dependencies section based on the block you are using.

1npx trustless-work add escrows/multi-release/withdraw-remaining-funds/form

Total Amount: 0.00 / 0.00

Total Balance: 0.00

Important Notes
  • The <WithdrawRemainingFundsButton distributions=[{ address: 'GAG...JDS'; amount: 2 }] /> requests the distributions.
  • Make sure to select an escrow before extracting data with selectedEscrow from the escrowProvider context. If you don't call setSelectedEscrow, the endpoint will not work.
  • This component is not supported for single-release escrows.
  • The distributions are an array of objects with address and amount.
  • If you don't want to use the escrowProvider context, you'll need to provide the payload through an alternative method. Keep in mind that while part of the payload may come from the form, some fields—such as contractId—will not be requested in the form. These values need to be retrieved from an escrow, which is why using a context is the recommended approach.
Required Providers
<ReactQueryClientProvider />
<TrustlessWorkProvider />
<WalletProvider />
<EscrowProvider />