Skip to main content
Version: current (0.9)

Wallet Information

For Single-Page Applications (React, Angular, Vue, Svelte, etc)

import LuciaSDK from 'lucia-sdk';

LuciaSDK.sendWalletInfo('WALLET-ADDRESS', CHAIN_ID);

Example

import LuciaSDK from 'lucia-sdk';

LuciaSDK.sendWalletInfo('0x21342HHJJHJHJhjh87812', 59141);

For Multi-Page Applications

Auto-initialization (Recommended)

The SDK will automatically initialize when you provide the data-api-key attribute:

<script
src="https://cdn.luciaprotocol.com/lucia-sdk-latest.min.js"
data-api-key="your-api-key-here"
></script>
<script>
LuciaSDK.sendWalletInfo('WALLET-ADDRESS', CHAIN_ID);
</script>

Example

<script
src="https://cdn.luciaprotocol.com/lucia-sdk-latest.min.js"
data-api-key="your-api-key-here"
></script>
<script>
LuciaSDK.sendWalletInfo('0x21342HHJJHJHJhjh87812', 59141);
</script>

Manual initialization

If you need more control, you can initialize manually:

<script src="https://cdn.luciaprotocol.com/lucia-sdk-latest.min.js"></script>
<script>
LuciaSDK.init({
apiKey: 'your-api-key-here', // Get your API Key from https://ads.clickinsights.xyz
});

LuciaSDK.sendWalletInfo('0x21342HHJJHJHJhjh87812', 59141);
</script>