Skip to main content
Version: 1.0.0

Introduction

The Solana API enables you to create, manage, and interact with tokens on the Solana blockchain, including advanced features for token lifecycle management, metadata, liquidity pools, fee management, and more. It enables seamless integration, all operations return serialized transactions for client-side signing, ensuring user custody and security.


Token Creation

Create SPL tokens on Solana using two supported standards:

  • Token v1 (Original SPL Token Program):
    • Create tokens with metadata support.
    • Optionally revoke mint, freeze, or metadata authorities after creation.
    • Attach a token image and description.
  • Token v2 (Token-2022 Program):
    • All v1 features, plus:
      • Built-in metadata.
      • Optional transfer fees (percentage and max fee).
      • Enhanced authority management.

Endpoints:

  • POST /api/tokens/v1 – Create SPL Token (v1)
  • POST /api/tokens/v2 – Create SPL Token (v2)

Token Management

Comprehensive management of existing tokens:

  • List Tokens:
    • Retrieve all tokens (v1 and v2).
      • GET /api/tokens
  • Get Token Details:
    • Retrieve metadata, supply, decimals, and more for a specific token by mint address.
      • GET /api/tokens/{tokenMintAddress}
  • Update Metadata:
    • Change token name, symbol, description, and image.
      • PUT /api/tokens/{tokenMintAddress}/metadata
  • Burn Tokens:
    • Destroy a specified amount of tokens from an account.
      • POST /api/tokens/{tokenMintAddress}/burn
  • Authority Management:
    • Revoke mint, freeze, or metadata authorities.
      • PUT /api/tokens/{tokenMintAddress}/authority

Token Locker

Lock tokens for vesting or delayed release:

  • Get Locker Info:
    • Retrieve the amount and release date of locked tokens for a user.
      • POST /api/tokens/{tokenMintAddress}/locker/info
  • Lock Tokens:
    • Prepare a transaction to lock tokens until a given date.
      • POST /api/tokens/{tokenMintAddress}/locker/lock

Liquidity Pools

Integrate with Pump AMM SDK to manage liquidity for your tokens:

  • Create Pool:
    • Establish a new liquidity pool with two tokens.
      • POST /api/liquidity/pool
  • Add Liquidity:
    • Deposit LP tokens into an existing pool.
      • POST /api/liquidity/pool/{poolAddress}/add
  • Remove Liquidity:
    • Withdraw LP tokens from a pool.
      • POST /api/liquidity/pool/{poolAddress}/remove
  • List Pools:
    • Retrieve paginated list of liquidity pools with optional filtering and cursor pagination.
      • GET /api/liquidity/pools

Transfer Fee Management

  • Collect Transfer Fees:
    • Withdraw accumulated transfer fees from Token-2022 tokens with fees enabled.
      • POST /api/tokens/{tokenMintAddress}/fee/collect

Discount Codes

  • Generate Discount Codes:
    • Create codes that provide a 15% discount and a 10% referral bonus.
      • POST /api/discount

Service Fee Queries

  • Get Service Fees:
    • Retrieve the fee for any supported service by name.
      • GET /api/service/{serviceName}/fee

Transaction Verification

  • Verify Blockchain Transactions:
    • Check the status and confirmation of any transaction by ID.
      • GET /api/transactions/{transactionId}/verify

Blob Storage

  • Token Images:
    • Retrieve the image for a token by mint address.
      • GET /api/blob/image/{tokenMintAddress}
  • Token Metadata:
    • Retrieve the full JSON metadata for a token.
      • GET /api/blob/metadata/{tokenMintAddress}

Supported Operations Table

FeatureEndpoint(s)Description
List Tokens/api/tokens/v1, /api/tokensPaginated and full lists of tokens
Get Token Info/api/tokens/{tokenMintAddress}Get details for a specific token
Create Token (v1/v2)/api/tokens/v1, /api/tokens/v2Create new SPL tokens
Update Metadata/api/tokens/{tokenMintAddress}/metadataUpdate name, symbol, description, image
Burn Tokens/api/tokens/{tokenMintAddress}/burnBurn tokens from an account
Manage Authorities/api/tokens/{tokenMintAddress}/authorityRevoke mint/freeze/metadata authorities
Locker Info/Lock Tokens/api/tokens/{tokenMintAddress}/locker/info, /lockManage token vesting/locking
Collect Transfer Fees/api/tokens/{tokenMintAddress}/fee/collectWithdraw transfer fees (Token-2022 only)
Create/Add/Remove Liquidity/api/liquidity/pool, /add, /remove, /poolsManage liquidity pools including paginated lists
Generate Discount Code/api/discountCreate discount/referral codes
Get Service Fee/api/service/{serviceName}/feeQuery service fee amounts
Verify Transaction/api/transactions/{transactionId}/verifyCheck transaction status on-chain
Get Token Image/Metadata/api/blob/image/{tokenMintAddress}, /metadataRetrieve token image and metadata