Skip to content

- SolanaFM

SolanaFM (https://solana.fm/) is a platform that provides a wide range of services for Solana blockchain, including on-chain exploration, API integration, and analytics. The services are designed to be user-friendly and easy to use, with free access to their APIs for developers. The documentation is well written and can be access from here.

The API connector is SolanaFM class imported from cyhole.solana_fm path.

Quick Examples

Get Latest Transactions of an Account

Extract the latest transactions executed by an account on the Solana chian in few lines of code by using get_account_transactions in asynchronous logic.

import asyncio
from cyhole.solana_fm import SolanaFM

account = "ACCOUNT_ID"

# extract latest transactions
async def main() -> None:
    solana_fm = SolanaFM()
    async with solana_fm.async_client as client:
        response = await client.get_account_transactions(account)
        print("Transactions Extracted:", len(response.result.data))

asyncio.run(main())

Content

The documentation follows the library's structure by providing all the technical details required to use it.

  • Connector


    cyhole.solana_fm - Explore the SolanaFM API connector and all its methods.

    Reference

  • API Parameters


    cyhole.solana_fm.param - Ensure to use the correct parameters during the API calls.

    Reference

  • Response Schema


    cyhole.solana_fm.schema - Extract only what is necessary by exploiting reponse mapping thanks to pydantic schemes.

    Reference

  • Exceptions


    cyhole.solana_fm.exception - Make sure you intercept all exceptions correctly.

    Reference

Endpoints

Endpoint Type Method cyhole Release Deprecated
Account Transactions GET get_account_transactions 0.2.1 -
Account Transactions Fees GET _get_account_transactions_fees 0.2.2 -
Account Transfers GET _get_account_transfers 0.2.2 -
Account Transfers CSV Export GET _get_account_transfers_csv_export 0.2.2 -
Blocks GET _get_blocks 0.2.2 -
Block GET _get_block 0.2.2 -
Multiple Blocks POST _post_multiple_blocks 0.2.2 -
Solana Daily Transaction Fees GET _get_solana_daily_transaction_fees 0.2.2 -
Tagged Tokens List GET _get_tagged_tokens_list 0.2.2 -
Token Info V0 GET _get_token_info_v0 0.2.2 -
Token Multiple Info V0 POST _post_token_multiple_info_v0 0.2.2 -
Token Info V1 GET _get_token_info_v1 0.2.2 -
Token Multiple Info V1 POST _post_token_multiple_info_v1 0.2.2 -
User Token Accounts POST _post_user_token_accounts 0.2.2 -
Mint Token Accounts GET _get_mint_token_accounts 0.2.2 -
On-Chain Token Data GET _get_on_chain_token_data 0.2.2 -
Token Supply GET _get_token_supply 0.2.2 -
Transfer Transactions GET _get_transfer_transactions 0.2.2 -
Multiple Transfer Transactions POST _post_multiple_transfer_transactions 0.2.2 -
All Transfer Actions GET _get_all_transfer_actions 0.2.2 -