Collect Fee allows users to collect fees from their positions within an Automated Market Maker (AMM) pool. Users must provide the pool ID, price tick range, and nonce for authentication. Upon successful execution, the API returns the amounts of base and quote assets collected as fees from the position.
Request
Header Params
VESSEL-TIMESTAMP
integer
required
VESSEL-API-KEY
string
required
Default:
{{API_KEY}}
VESSEL-PASSPHRASE
string
required
Default:
{{API_PASSPHRASE}}
VESSEL-SIGNATURE
string
required
Use signRequest script to generate
Body Params application/json
poolId
string
required
The unique identifier of the AMM pool.
tickIndexL
string
required
The minimum price tick index
tickIndexR
string
required
The maximum price tick index.
nonce
string
required
A unique identifier for the request, typically a Unix timestamp indicating the time at which the request was made. It helps prevent replay attacks by ensuring that each request is unique.
signature
string
required
The cryptographic signature generated using the Poseidon algorithm. Refer to the Poseidon Signature Guide for details on generating the signature.