DeFi Daily News
Monday, February 9, 2026
Advertisement
  • Cryptocurrency
    • Bitcoin
    • Ethereum
    • Altcoins
    • DeFi-IRA
  • DeFi
    • NFT
    • Metaverse
    • Web 3
  • Finance
    • Business Finance
    • Personal Finance
  • Markets
    • Crypto Market
    • Stock Market
    • Analysis
  • Other News
    • World & US
    • Politics
    • Entertainment
    • Tech
    • Sports
    • Health
  • Videos
No Result
View All Result
DeFi Daily News
  • Cryptocurrency
    • Bitcoin
    • Ethereum
    • Altcoins
    • DeFi-IRA
  • DeFi
    • NFT
    • Metaverse
    • Web 3
  • Finance
    • Business Finance
    • Personal Finance
  • Markets
    • Crypto Market
    • Stock Market
    • Analysis
  • Other News
    • World & US
    • Politics
    • Entertainment
    • Tech
    • Sports
    • Health
  • Videos
No Result
View All Result
DeFi Daily News
No Result
View All Result
Home DeFi Web 3

Enhanced RPC Functions – Access Complete Blockchain Information using RPC Methods – Moralis Web3 | Advanced Web3 APIs for Businesses

David Olsson by David Olsson
August 13, 2024
in Web 3
0 0
0
Enhanced RPC Functions – Access Complete Blockchain Information using RPC Methods – Moralis Web3 | Advanced Web3 APIs for Businesses
0
SHARES
0
VIEWS
Share on FacebookShare on TwitterShare on Telegram
Listen to this article

Are you searching for the simplest way to get blockchain data using RPC methods? Look no further. In this guide, we’ll introduce you to Moralis’ Extended RPC Methods, enabling you to query the same enhanced, human-readable data our APIs provide, but through RPC-style requests. This includes ERC-20 balances, transaction histories, token metadata, and more. Ready to jump into the code? Here’s a script showing our eth_getTokenBalances method in action:


import fetch from 'node-fetch';

const options = {
    method: 'POST',
    headers: {
        accept: 'application/json',
        'content-type': 'application/json'
    },
    body: JSON.stringify({
        "jsonrpc": "2.0",
        "id": 1,
        "method": "eth_getTokenBalances",
        "params": [{
            "address": "0xcB1C1FdE09f811B294172696404e88E658659905",
        }]
    })
};

fetch('YOUR_NODE_URL', options)
    .then(response => response.json())
    .then(response => console.log(response))
    .catch(err => console.error(err));

Running the code above will return the ERC-20 balances of the specified wallet. Here’s an example of what the output might look like:


{
  //...
  result: [
    {
      token_address: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
      name: 'Wrapped Ether',
      symbol: 'WETH',
      decimals: 18,
      logo: 'https://logo.moralis.io/0x1_0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2_a578c5277503e547a072ae32517254ca',
      thumbnail: 'https://logo.moralis.io/0x1_0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2_a578c5277503e547a072ae32517254ca',
      balance: '10000000000000000',
      possible_spam: false,
      verified_contract: true,
      total_supply: '2746607222348759943423350',
      total_supply_formatted: '2746607.22234875994342335',
      percentage_relative_to_total_supply: 3.64085549569e-7
    },
    //...
  ]
}

Fetching blockchain data via RPC methods doesn’t have to be more complicated than this when using Moralis. For a more detailed tutorial, follow along with this guide or visit our Extended RPC Methods documentation page.

Excited to start using our Extended RPC Methods? Sign up with Moralis today! Create a free account to access our Extended RPC Methods, RPC Nodes, and premier APIs immediately.

Overview

In the context of Web3, RPC refers to communication protocols that streamline the interaction between decentralized applications (dapps) and blockchain networks. There are multiple RPC protocols, and they feature standardized methods, allowing developers to seamlessly read and write blockchain data. However, standard RPC methods are typically quite limited, not allowing for common queries like “What ERC-20 tokens are wallet X holding?” To get this information, you must make several requests and connect the dots yourself. Fortunately, you can now circumvent these challenges with Moralis’ Extended RPC Methods.


Our Extended RPC Methods allow you to query decoded, human-readable blockchain data seamlessly using RPC-style methods: fetch ERC-20 balances, token prices, metadata, and much more with single calls.

But how does this work? If you’d like to learn more, join us in this guide as we lay it all out for you. Let’s dive straight in!

What are RPC Methods

RPC, short for “Remote Procedure Call,” refers to communication protocols that allow one software system to call and request a service from another software system on a different computer. In the world of crypto, RPC enables dapps and other Web3 platforms (clients) to interact with a blockchain network (server).

What are RPC methods?

There are standardized protocols, one example being JSON-RPC, that feature predefined methods. These so-called RPC methods allow you to seamlessly perform various operations, such as reading blockchain data, sending transactions, and managing wallets.

Here is a list of common RPC methods for Ethereum:

eth_blockNumber: Returns the number of the most recent block.

eth_call: Executes a new message call.

eth_chainId: Returns the current chain ID.

eth_getBalance: Returns the balance of an account.

eth_gasPrice: Returns the current gas price.

Overall, RPC methods simplify interaction with blockchain networks, facilitating the effortless development of dapps and other Web3 projects.

Exploring the Limitations of Standard RPC Methods

While RPC protocols simplify dapp development, they come with significant limitations that you need to consider. Typically, standard RPC methods only provide basic blockchain data. As such, common RPC methods are not designed to handle queries such as, “What ERC-20 tokens does wallet X hold?”

Limitations of RPC methods.

To obtain this kind of information using conventional RPC methods, developers must make multiple requests and manually compile the data. This process is cumbersome and time-consuming, demanding considerable development effort and resources.

To address these challenges, Moralis introduces Extended RPC Methods. But what exactly are these methods, and how do they benefit developers?

Find out in the next section!

Introducing Moralis’ Extended RPC Methods

Our Extended RPC Methods significantly improve our node solution, delivering the same enhanced functionalities found in Moralis’ APIs, but through RPC-style methods. These advanced methods simplify the process of querying decoded, human-readable data, streamlining your Web3 developer experience.

Moralis logo.

What do Moralis’ Enhanced RPC Methods include?

eth_getTransactions: Get all native transactions for a given wallet.

eth_getDecodedTransactions: Obtain a detailed transaction history for a specific wallet address.

eth_getTokenBalances: Retrieve ERC-20 token balances for a given wallet address.

eth_getTokenPrice: Fetch current prices for ERC-20 tokens.

eth_getTokenMetadata: Obtain metadata for ERC-20 tokens.

eth_getNFTBalances: Fetch all NFTs held by a wallet.

eth_getNFTCollections: Obtain all NFT collections owned by a specific wallet address.

In summary, Moralis’ Enhanced RPC Methods significantly extend the capabilities of our nodes, giving you the same enhanced data you would get using our APIs, but via RPC-style requests!

3-Step Tutorial: How to Get All Blockchain Data via Extended RPC Methods

Now, with an overview of what Moralis’ Extended RPC Methods entail, we’ll show you how to use them in practice. More specifically, we’ll demonstrate how you can get the token balance for any given wallet in three simple steps:

Sign up with Moralis & create a node

Write a script

Execute the code

Step 1: Sign Up with Moralis & Create a Node

If you haven’t already, click the “Start for Free” button at the top right to sign up with Moralis:

Red arrow pointing at "Start for Free"

Once you log in, go to the “Nodes” tab and click the “+ Create Node” button:

Red arrows pointing at "Nodes" tab and "+ Create Node" button.

Select “Ethereum,” followed by “Mainnet,” and hit “Create Node”:

"Ethereum" and "Mainnet" selected when creating node.

Copy one of your node URLs and keep it for now, as you’ll need it in the next step:

Red arrows pointing at copy button for node URLs.

Step



Source link

Tags: accessAdvancedAPIsblockchainbusinessesCompleteEnhancedFunctionsInformationMethodsMoralisRPCWeb3

ShareTweetShare
Previous Post

Judge Rules Canadian Cryptocurrency Exchange Responsible for Losing $9.5 Million in User Funds – Decrypt

Next Post

Enhanced RPC Methods for Developers with Moralis: Accessing All Blockchain Data through RPC Methods | Enterprise-Ready Web3 APIs

Next Post
Market Analyst Proclaims Ethereum’s Scaling Journey to Be Irreversible, Explained | Bitcoinist.com

Market Analyst Proclaims Ethereum's Scaling Journey to Be Irreversible, Explained | Bitcoinist.com

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

No Result
View All Result
  • Trending
  • Comments
  • Latest
Waitlist Now Open for Virgin Red Credit Card Issued by Synchrony – NerdWallet

Waitlist Now Open for Virgin Red Credit Card Issued by Synchrony – NerdWallet

August 14, 2024
rewrite this title Bitcoin Price Consolidates In Tight Zone: Why A Crash To ,000 Is Likely

rewrite this title Bitcoin Price Consolidates In Tight Zone: Why A Crash To $84,000 Is Likely

February 24, 2025
rewrite this title with good SEO Solana Price Holds 0–0 as Breakout Looms

rewrite this title with good SEO Solana Price Holds $120–$130 as Breakout Looms

December 14, 2025
rewrite this title Klarna CEO wants to turn the platform into a ‘super app’ with help from AI

rewrite this title Klarna CEO wants to turn the platform into a ‘super app’ with help from AI

June 18, 2025
How Real Could Aaron Rodgers To The Giants Be In 2025? | Pat McAfee Reacts

How Real Could Aaron Rodgers To The Giants Be In 2025? | Pat McAfee Reacts

March 3, 2025
rewrite this title Stranger Things Creators Defend Will’s Coming Out Scene, ‘I Believe’ Series Ending

rewrite this title Stranger Things Creators Defend Will’s Coming Out Scene, ‘I Believe’ Series Ending

January 2, 2026
They Make 0,000 a Year and Still Live Paycheck-to-Paycheck

They Make $500,000 a Year and Still Live Paycheck-to-Paycheck

February 9, 2026
Apple Watch vs. Oura Ring: The One Feature That Tipped the Scale

Apple Watch vs. Oura Ring: The One Feature That Tipped the Scale

February 9, 2026
rewrite this title Alibaba’s Qwen temporarily stops issuing coupons due to customer overload, hampering Alibaba’s Agentic AI ad campaign; Qwen began offering coupons on February 6 (Eduardo Baptista/Reuters)

rewrite this title Alibaba’s Qwen temporarily stops issuing coupons due to customer overload, hampering Alibaba’s Agentic AI ad campaign; Qwen began offering coupons on February 6 (Eduardo Baptista/Reuters)

February 9, 2026
rewrite this title and make it good for SEOWon’t allow impediments to SIR, says SC; extends Bengal voter list deadline

rewrite this title and make it good for SEOWon’t allow impediments to SIR, says SC; extends Bengal voter list deadline

February 9, 2026
rewrite this title The W2 Employee’s Roadmap to Financial Freedom (Buy Rentals While Working 8-6)

rewrite this title The W2 Employee’s Roadmap to Financial Freedom (Buy Rentals While Working 8-6)

February 9, 2026
rewrite this title China Replaces Crypto Ban with Stricter Regime, Carves Out Narrow Path for State-Controlled RWA

rewrite this title China Replaces Crypto Ban with Stricter Regime, Carves Out Narrow Path for State-Controlled RWA

February 9, 2026
DeFi Daily

Stay updated with DeFi Daily, your trusted source for the latest news, insights, and analysis in finance and cryptocurrency. Explore breaking news, expert analysis, market data, and educational resources to navigate the world of decentralized finance.

  • About Us
  • Blogs
  • DeFi-IRA | Learn More.
  • Advertise with Us
  • Disclaimer
  • Privacy Policy
  • DMCA
  • Cookie Privacy Policy
  • Terms and Conditions
  • Contact us

Copyright © 2024 Defi Daily.
Defi Daily is not responsible for the content of external sites.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Cryptocurrency
    • Bitcoin
    • Ethereum
    • Altcoins
    • DeFi-IRA
  • DeFi
    • NFT
    • Metaverse
    • Web 3
  • Finance
    • Business Finance
    • Personal Finance
  • Markets
    • Crypto Market
    • Stock Market
    • Analysis
  • Other News
    • World & US
    • Politics
    • Entertainment
    • Tech
    • Sports
    • Health
  • Videos

Copyright © 2024 Defi Daily.
Defi Daily is not responsible for the content of external sites.