@lens-protocol/react
Version:
Interacting with the Lens Protocol API using React.
22 lines (21 loc) • 761 B
TypeScript
import { UnspecifiedError, UserCurrentRateLimitRequest, UserCurrentRateLimitResult } from '@lens-protocol/api-bindings';
import { NotFoundError } from "../NotFoundError.js";
import { ReadResult } from "../helpers/reads.js";
/**
* {@link useRateLimits} hook arguments
*/
export type UseRateLimitsArgs = UserCurrentRateLimitRequest;
/**
* Fetch the current sponsored transaction limits for the requested address and profile.
*
* @example
* ```ts
* const { data, error, loading } = useRateLimits({
* userAddress: '0x1234567890123456789012345678901234567890',
* });
* ```
*
* @category Wallet
* @group Hooks
*/
export declare function useRateLimits(args: UseRateLimitsArgs): ReadResult<UserCurrentRateLimitResult, NotFoundError | UnspecifiedError>;