API Reference and Integration Guide
Welcome to the FRONTIER developer documentation. This guide will help you integrate with our platform and build experiences for the Wild West metaverse.
FRONTIER is built on the Solana blockchain, offering high-performance, low-cost transactions for a seamless Web3 gaming experience.
To begin working with the FRONTIER API, you'll need:
Create a developer account at https://dev.frontier.io to get started.
All API requests require authentication. Use the following header format:
Authorization: Bearer YOUR_API_KEY
Example request:
curl -X GET "https://api.frontier.io/v1/assets" \
-H "Authorization: Bearer your_api_key"
FRONTIER supports integration with multiple Solana wallets, including:
To connect a wallet in your application:
// Using our JavaScript SDK
import { FrontierSDK } from '@frontier/sdk';
const frontier = new FrontierSDK({
apiKey: 'YOUR_API_KEY',
environment: 'production' // or 'testnet'
});
// Connect wallet
const connection = await frontier.connectWallet();
Work with in-game assets represented as NFTs on the Solana blockchain:
// Get user assets
const assets = await frontier.assets.getUserAssets({
wallet: 'user_wallet_address',
limit: 20,
offset: 0
});
// Get asset details
const asset = await frontier.assets.getAsset('asset_id');
Work with $FRONTIER and $GOLD tokens:
// Get token balances
const balances = await frontier.tokens.getBalances({
wallet: 'user_wallet_address'
});
// Transfer tokens
const transfer = await frontier.tokens.transfer({
from: 'sender_wallet_address',
to: 'recipient_wallet_address',
amount: '100',
token: 'FRONTIER' // or 'GOLD'
});
Interact with the FRONTIER marketplace:
// List asset for sale
const listing = await frontier.marketplace.createListing({
assetId: 'asset_id',
price: '50',
token: 'FRONTIER'
});
// Buy asset
const purchase = await frontier.marketplace.buyAsset({
listingId: 'listing_id'
});
Receive real-time updates for on-chain events:
// Register webhook endpoint
const webhook = await frontier.webhooks.create({
url: 'https://your-server.com/webhook',
events: ['asset.transfer', 'token.transfer']
});
FRONTIER provides SDKs for popular languages and platforms:
npm install @frontier/sdkpip install frontier-sdkFor more information, visit our GitHub repository.
© 2025 FRONTIER. All rights reserved.
Documentation version: v1.0.0