The request object
PromiseResult with array of approved amounts per module
import { FollowModuleType } from '@lens-protocol/client';
const result = await client.modules.approvedAllowanceAmount({
currencies: ['0x3C68CE8504087f89c640D02d133646d98e64ddd9'],
followModules: [FollowModuleType.FeeFollowModule],
});
Retrieve a list of currencies supported by the protocol
The request object
Currencies wrapped in PaginatedResult
const result = await client.modules.fetchCurrencies();
Retrieve the Module Metadata for a given module
The request object
Module Metadata and how this can be used (gasless, signless, etc.). Returns null
if the module is not found.
const result = await client.modules.fetchMetadata({
implementation: '0x1234567890123456789012345678901234567890',
});
Generate the data required to approve the amount of a currency to be moved by the module.
This method encodes the allowance ERC-20 data for the module. It returns the partial transaction that still needs to be submitted.
⚠️ Requires authenticated LensClient.
The request object
PromiseResult with requested data
import { FollowModuleType } from '@lens-protocol/client';
const result = await client.modules.generateCurrencyApprovalData({
allowance: {
value: '100',
currency: ['0x3C68CE8504087f89c640D02d133646d98e64ddd9'],
},
module: {
followModule: FollowModuleType.FeeFollowModule,
},
});
Retrieve a list of modules supported by the protocol
The request object
Modules wrapped in PaginatedResult
const result = await client.modules.supportedFollowModules();
Retrieve a list of modules supported by the protocol
The request object
Modules wrapped in PaginatedResult
const result = await client.modules.supportedOpenActionCollectModules();
Retrieve a list of modules supported by the protocol
The request object
Modules wrapped in PaginatedResult
const result = await client.modules.supportedOpenActionModules();
Retrieve a list of modules supported by the protocol
The request object
Modules wrapped in PaginatedResult
const result = await client.modules.supportedReferenceModules();
Fetch the approved amount of requested currencies that each requested module can move on behalf of the authenticated user.
⚠️ Requires authenticated LensClient.