Package Exports
- arena-app-store-sdk
- arena-app-store-sdk/dist/arena-app-store-sdk.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (arena-app-store-sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Arena App SDK 
The Arena App SDK provides developers with tools to integrate with the Arena platform, offering:
- Secure access to user's wallet through Arena's infrastructure
- Ability to interact with Arena's API methods
- Seamless integration with Arena's ecosystem
Installation
Install via npm:
npm install arena-app-store-sdkHow It Works in Arena
Your application will be displayed within the Arena platform through the following process:
App Store Integration
- Your app will appear in the Arena App Store as a dedicated entry
- Users can discover and launch your app directly from the store
- Apps run securely within an iframe on the Arena platform
Hosting Requirements
- Your application must be hosted on your own infrastructure
- Ensure your server supports HTTPS for secure connections
- CORS headers must be properly configured
Getting Your App Listed
- Register your app on the Arene App Store:
- App name and description
- Target URL (must be HTTPS)
- Required permissions
- App icon (minimum 512x512px)
- We'll handle the technical integration on our side
- Register your app on the Arene App Store:
Locally testing your app:
- Run your app on your local port
3481 - Use the
Run Your App Locallyfeature in the Arena App Store to test your app
- Run your app on your local port
User Experience
- Users will see a permissions dialog when first launching your app
- Your app will have access to the requested features after user approval
- Wallet connections are handled through Arena's secure interface
Getting Started
Before using the SDK, you'll need to create a project in Reown and obtain your credentials:
- Go to the Reown developer portal
- Create a new project
- Configure your project settings (name, description, URL, etc.)
- Generate your Project ID and API keys
- Add your app's domain to the allowed origins
- Save your credentials securely
How to Connect SDK to Your HTML Project
To integrate the Arena App SDK into your HTML project, follow these steps:
- Include the SDK script in your HTML file:
<script type="module">
import { ArenaAppStoreSdk } from '/path/to/arena-sdk/index.js';
window.ArenaAppStoreSdk = ArenaAppStoreSdk;
</script>- Initialize the SDK in your JavaScript code:
document.addEventListener('DOMContentLoaded', function() {
const arenaAppStoreSdk = new ArenaAppStoreSdk({
projectId: "YOUR_PROJECT_ID",
metadata: {
name: "Your App Name",
description: "Your App Description",
url: window.location.href,
icons: ["https://your-app.com/icon.png"]
}
});
// Add your event listeners and other initialization code here
});- Use the SDK methods and events as needed in your application.
API Examples
Here are some common usage examples from the Arena Demo App:
Wallet Information
Get the connected wallet address and balance:
arenaAppStoreSdk.on('walletChanged', ({ address }) => {
console.log('Wallet address:', address);
});
const balance = await arenaAppStoreSdk.provider.request({
method: 'eth_getBalance',
params: [arenaAppStoreSdk.provider.accounts[0], 'latest']
});User Profile
Retrieve the user's profile information:
const profile = await arenaAppStoreSdk.sendRequest("getUserProfile");Transactions
Send AVAX transactions:
const txHash = await arenaAppStoreSdk.provider.request({
method: 'eth_sendTransaction',
params: [{
from: arenaAppStoreSdk.provider.accounts[0],
to: '0x...',
value: '0x...'
}]
});Alpha Notes
- WalletConnect integration is in early stages
- API may change in future releases