@biconomy/abstractjs
Version:
SDK for Biconomy integration with support for account abstraction, smart accounts, ERC-4337.
35 lines • 972 B
JavaScript
/**
* Retrieves information about supported chains, tokens, and wallet providers from the MEE service.
* This endpoint provides configuration details needed to interact with the service.
*
* @param client - The HTTP client instance
* @returns Promise resolving to the info payload
*
* @example
* ```typescript
* const info = await getInfo(httpClient);
* // Returns:
* // {
* // version: "1.0.0",
* // node: "mee-node-1",
* // supportedChains: [
* // { chainId: "1", name: "Ethereum Mainnet" },
* // { chainId: "137", name: "Polygon" }
* // ],
* // supportedGasTokens: [...],
* // supported_wallet_providers: [
* // {
* // walletProvider: "SAFE_V141",
* // supportedChains: ["1", "137"],
* // eoaEnabled: true
* // }
* // ]
* // }
* ```
*/
export const getInfo = async (client) => client.request({
path: "info",
method: "GET"
});
export default getInfo;
//# sourceMappingURL=getInfo.js.map