Ethereum: How do I access information on blockexplorer.com or blockchain.info without issuing requests to those websites?

*h

As a user of Ethereum, he is probably familiar with the use of websites such as [Block explorer.com] ( and [blockchain.info] ( to administer your account. However, one of the restrictions on these platforms is that they require a request for information for specific addresses or transactions. But what happens if you want to access this information without really asking it? Things are getting interesting here.

In recent years, Ethereum developers have been working on the introduction of new APIs and tools that allow users to interact with their portfolios without issuing direct applications. One of these innovative solutions is Ethereum Network Explorer (JAN), which launches in 2020.

What is Ethereum Network Explorer (Jan)?

Ethereum: How do I access information on blockexplorer.com or blockchain.info without issuing requests to those websites?

ENE is a net -based interface developed by Ethereum’s team using Web 3.js. It provides an alternative way to access your Ethereum account without directly consulting the block circuit. This API allows you to consult a few data on your portfolio and intelligent real -time contract interactions.

How can I access ENE without giving up apps?

To start with Yang, follow these steps:

  • Create a new Ethereum portfolio at [ETHEREUM.com] ( : Generate Ethereum portfolio using the “portfolio test” option or create a new one from zero.

  • Installing the Web3.js Library : You can do so by starting NPM installation of Web3 in its terminal. This will allow you to interact with Ethereum and API contracts.

  • Believe a new account in ENE

    : Go to [yang] ( and sign up to get an account using your Ethereum portfolio credentials.

  • Activate API “Web3.js” : In your terminal, launch Ether.json to load the web library.

Access to data with Yang

Now that he has an Ener account that works and has installed the Web3.js library, you can use it to access a few Ethereum data. Here are some examples:

* Get the balance at the address : You can use the ‘ETH_BALANTEOOFfeature to get the balance in a particular direction.

Javascript

CONST Web3 = Requirement ("Web3");

CONST ETERS = Require ('Web3'). Web3 ();

Const a provider = New Ethhers.providers.WebsocketProvider ("wss: //mainnet.infura.io/v3/your_infura_project_id");

Const Contractadress = "0xyourContractaddress";

CONST accounts = ethhers.utils account.fromprivatekey ("your_private_key");

Const Balance = Wait Web3.et Balancef (Account, Contractaddress);

Console.log;

* Get all the transactions recently made : You can use the 'ETH_GETTRANSACTICount feature to get a list of recent transactions.

Javascript

Const a provider = New Ethhers.providers.WebsocketProvider ("wss: //mainnet.infura.io/v3/your_infura_project_id");

CONST accounts = ethhers.utils account.fromprivatekey ("your_private_key");

const TXS = alea web3.eth.gettransacticount (account, 'Last');

Console.log (TXS);

* Get all intelligent contracts : You can use the "ETH_GETCONTRACTADRESS" feature to get a list of all intelligent contract addresses.

Javascript

Const a provider = New Ethhers.providers.WebsocketProvider ("wss: //mainnet.infura.io/v3/your_infura_project_id");

CONST accounts = ethhers.utils account.fromprivatekey ("your_private_key");

CONST contracts = wait web3.eth.getContractaddresses ();

Console.log (contracts);

`

Conclusion

Although this article has shown how to access certain Ethereum data without issuing direct applications, it is essential to take into account that they are still a relatively new feature. As the API develops and more characteristics are added, users will have even more ways to interact with their portfolios.

By taking advantage of web3.js and jan, you can take advantage of this innovative technology while maintaining your safety protocols under control.

Stark Strk Ledger