clawback
function is a recovery mechanism for users who have sent funds to an AMM pool for an operation (like a swap or liquidity addition) that never completed. If a user’s inbound transfer gets “stuck,” this function allows them to request a refund from the AMM validators.
clawback
function after an operation has failed and you have a sparkTransferId
for a transfer that was sent to an LP wallet but was not processed. This is an exceptional recovery tool and should not be part of a normal application flow.
sparkTransferId
of the original, stuck transfer.lpIdentityPublicKey
(the pool ID) to which the funds were sent.client
must be the one that originally sent the funds.