> ## Documentation Index
> Fetch the complete documentation index at: https://docs.debridge.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Gathering Data for the Claim

> Data sources and steps required to build a claim transaction.

To claim a submission, a call to the deBridgeGate.claim() method on the destination chain must be crafted using data taken from various sources.
Though deSDK already [provides a handy method for this](https://github.com/debridge-finance/desdk#tracking-and-executing-claims), we explain here
where to take and how to prepare this data.

* `_debridgeId`, `_amount`, `_receiver`, `_nonce` can be taken from the corresponding args of the Sent event,
* `_chainIdFrom` is obviously the ID of the origin chain,
* `_signatures` is the string with the signatures concatenated without a delimiter (don't forget to strip hexadecimal prefixes from each but the first);
  signatures can be pulled from the deBridge API,
* `_autoParams` is the encoded `SubmissionAutoParamsFrom` struct, which is the derivative of the `SubmissionAutoParamsTo` with `nativeSender` taken from the
  Se`nt event: so you need to decode `\_autoParams`against the`SubmissionAutoParamsTo`struct, add the fifth element, and encode back against the`SubmissionAutoParamsFrom\` struct.

This simple diagram shows the flow of the properties; dashed lines indicate the necessity of data decoding/encoding/unpacking/packing, while the
straight line shows that the datum should be passed as is:

<img src="https://mintcdn.com/debridge-f846479f/QCNI5e_yZ9g1jsea/images/dmp-details/gathering-claims.avif?fit=max&auto=format&n=QCNI5e_yZ9g1jsea&q=85&s=8f07a06b2c40195335d8687249c7e597" alt="Gathering Data for Claims" width="2304" height="724" data-path="images/dmp-details/gathering-claims.avif" />

After all these elements are combined into one single call, you can sign and broadcast your transaction and wait for the `Claimed` event. This will
indicate a successful submission.
