Developer Documentation

API Reference and Integration Guide

Introduction

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.

Getting Started

To begin working with the FRONTIER API, you'll need:

  • A FRONTIER developer account
  • API keys for authentication
  • Solana wallet for testing

Create a developer account at https://dev.frontier.io to get started.

Authentication

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"

Wallet Integration

FRONTIER supports integration with multiple Solana wallets, including:

  • Phantom
  • Solflare
  • Backpack
  • Any wallet that implements the Solana wallet standard

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();

NFT Assets

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');

Tokens

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'
});

Marketplace

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'
});

Webhooks

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']
});

SDKs

FRONTIER provides SDKs for popular languages and platforms:

  • JavaScript/TypeScript: npm install @frontier/sdk
  • Python: pip install frontier-sdk
  • Unity: Available in our developer portal
  • Unreal Engine: Available in our developer portal

For more information, visit our GitHub repository.

© 2025 FRONTIER. All rights reserved.

Documentation version: v1.0.0