3.0 Data API
import { useR3vlClient } from "@r3vl/sdk/hooks";
useR3vlClient({
chainId: chain?.id
provider,
signer,
initV2Final: true, // In case you want to create a "complex" Revenue Path with tiers
initSimple: true, // For revenue paths with no additional tiers configuration
apiKey: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx',
// Api key is required so SDK can store and access data related to Revenue Path configuration
});Last updated