Every deposit routed through the Earn API carries a tracking signature appended to the transaction calldata. This signature is the cryptographic proof that links a deposit to the partner that sourced it.Documentation Index
Fetch the complete documentation index at: https://docs.turtle.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Signature Format
| Field | Description |
|---|---|
turtle | Protocol identifier — confirms this is a Turtle-attributed transaction |
v1 | Signature version |
{distributorId} | The partner’s unique distributor ID (set via the distributorId parameter in the deposit request) |
{referralCode} | Optional referral code — empty if none was provided at deposit time |
dist_abc123 with referral code ref_001.
Where It Lives
The tracking signature is UTF-8 encoded and appended to the tail of the deposit transaction’s calldata. It does not interfere with the deposit function’s ABI-encoded parameters — it occupies trailing bytes that the smart contract ignores but the Lumon collector reads.The signature is only present in the deposit transaction. The token approval transaction (if returned) does not carry a tracking signature.
Extracting the Signature
From the Verify Endpoint
The simplest way to extract and validate a tracking signature is through the verify endpoint:From Raw Calldata
For independent verification without calling Turtle’s API, the signature can be extracted directly from the transaction calldata available on any block explorer or via an RPC node.Get the transaction calldata
Retrieve the deposit transaction’s
input (calldata) field from the chain — via Etherscan, a block explorer, or an RPC call (eth_getTransactionByHash).Decode the trailing bytes
The tracking signature occupies the trailing bytes of the calldata, UTF-8 encoded. Decode the tail of the hex-encoded
input field to reveal the turtle:v1:... string.On-Chain Proof
Because the tracking signature is embedded in calldata — part of the permanent on-chain record — it provides several guarantees:| Property | Guarantee |
|---|---|
| Immutability | Once the transaction is finalized, the signature cannot be altered or removed |
| Public auditability | Anyone can read the calldata from the blockchain without special access |
| Independence from Turtle | The proof exists on-chain regardless of Turtle’s systems or API availability |
| Tamper evidence | The signatureValid check in the verify endpoint confirms the signature was generated by Turtle’s deposit flow |
Related
How Attribution Works
The full four-step attribution flow.
Independent Verification
Verification workflows for audits and reconciliation.
Verify Endpoint
API reference for the transaction verification endpoint.

