Skip to main content

Fee

Queries the fees and fee recipients for the specified VLP.

query Vlp($contract: String!) {
vlp(contract: $contract) {
fee {
lp_fee_bps
euclid_fee_bps
recipient {
chain_uid
address
}
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query Fee($contract: String!) {\n vlp(contract: $contract) {\n fee {\n lp_fee_bps\n euclid_fee_bps\n recipient {\n chain_uid\n address\n }\n }\n }\n}","variables":{"contract":"nibi1ulj49aczcwsdk93mv0nar0c0k0ptqn9n3y6rqwaeslz5tlftlvcs5xvzxa"}}'

Open in Playground

Arguments

  • contract (String!): The contract address of the VLP to query.

Return Fields

FieldTypeDescription
lp_fee_bpsIntThe liquidity provider fee in basis points (bps).
euclid_fee_bpsIntThe Euclid fee in basis points (bps).
recipientRecipientThe recipient details for the fees.

Recipient

FieldTypeDescription
chain_uidStringThe unique identifier (UID) of the chain.
addressStringThe address of the fee recipient.