Back to Home

API Reference

Technical details and on-chain interactions used by the DApp.

Architecture

The DApp interacts directly with the Solana blockchain using the standard libraries:

@solana/web3.js (v1.98.2)@solana/spl-token (v0.4.8)@metaplex-foundation/js (v0.20.1)

All transactions are constructed client-side and signed by the user's connected wallet.

SPL Token Instructions

InitializeMint

Initializes a new mint account with decimals and authorities.

CreateMetadataAccountV3

From Metaplex MPL Token Metadata program. Attaches name, symbol, and URI to the mint.

SetAuthority

Used to transfer or revoke (set to null) authorities.
Supported Types: MintTokens, FreezeAccount

SystemProgram.Transfer

Used for service fee payments (SOL transfer).

Common Error Reference

ErrorDescription
0x1 (Insufficient Funds)Wallet does not have enough SOL for rent or fees.
User RejectedThe user declined the transaction signature request in their wallet.
Blockhash Not FoundTransaction expired. Retry the operation.