Axios Playground

Try out Axios in your browser. Edit and run the code below.

Code Editor

Output

// Click 'Run' to see output

Code Examples

Click any example to load it into the editor

Get Balance

Fetch account balance from Solana RPC

Get Account Info

Retrieve detailed account information

Request Interceptor

Add wallet signature to requests

Send Transaction

Submit a signed transaction to the network

Get Block

Fetch block information by slot number

Response Interceptor

Transform and log response data

Get Multiple Accounts

Fetch multiple account info in one request

Get Token Balance

Check SPL token balance for an account

Get Recent Blockhash

Fetch the latest blockhash for transactions

Get Program Accounts

Fetch all accounts owned by a program

Configure Timeout

Set custom timeout and retry logic

Get Signatures

Fetch transaction signatures for an address

Quick API Reference

Common Axios methods and configurations

Account Methods

  • getBalance()
  • getAccountInfo()
  • getMultipleAccounts()

Transaction Methods

  • sendTransaction()
  • getSignaturesForAddress()
  • getTransaction()

Block Methods

  • getBlock()
  • getRecentBlockhash()
  • getBlockHeight()

Token Methods

  • getTokenAccountBalance()
  • getTokenSupply()
  • getTokenAccountsByOwner()

Configuration

  • timeout
  • retry
  • retryDelay

Interceptors

  • request.use()
  • response.use()
  • error handling