Alchemy Documentation
Website
Roadmap
Dashboard
Search…
👋
Welcome to Alchemy
🚀
Introduction
Why Use Alchemy?
Getting Started
Core Products
Contributing to these Docs
Referral Program
Web3 University
✨
Enhanced APIs
NFT API
Transfers API (Tx History)
Transaction Receipts API
Token API
Parity API
Notify API
Debug API
Trace API
Subscription API (Websockets)
Unstoppable Domains APIs
⛓
Chain APIs
Ethereum API
Ethereum API FAQ
eth_blockNumber - Ethereum
eth_getBlockByHash - Ethereum
eth_getBlockByNumber - Ethereum
eth_getTransactionByHash - Ethereum
eth_getTransactionCount - Ethereum
eth_getTransactionReceipt - Ethereum
eth_getBlockTransactionCountByHash - Ethereum
eth_getTransactionByBlockHashAndIndex - Ethereum
eth_getTransactionByBlockNumberAndIndex - Ethereum
eth_getBlockReceipts - Ethereum
eth_sendRawTransaction - Ethereum
eth_sendPrivateTransaction - Ethereum
eth_getBalance - Ethereum
eth_getCode - Ethereum
eth_getStorageAt - Ethereum
eth_accounts - Ethereum
eth_getProof - Ethereum
eth_call - Ethereum
eth_getLogs - Ethereum
eth_protocolVersion - Ethereum
eth_gasPrice - Ethereum
eth_estimateGas - Ethereum
eth_feeHistory - Ethereum
eth_maxPriorityFeePerGas - Ethereum
eth_chainId - Ethereum
net_version - Ethereum
net_listening - Ethereum
eth_getUncleByBlockNumberAndIndex - Ethereum
eth_getUncleByBlockHashAndIndex - Ethereum
eth_getUncleCountByBlockHash - Ethereum
eth_getUncleCountByBlockNumber - Ethereum
eth_getFilterChanges - Ethereum
eth_getFilterLogs - Ethereum
eth_newBlockFilter - Ethereum
eth_newFilter - Ethereum
eth_newPendingTransactionFilter - Ethereum
eth_uninstallFilter - Ethereum
web3_clientVersion - Ethereum
web3_sha3 - Ethereum
eth_subscribe - Ethereum
eth_unsubscribe - Ethereum
Polygon API
Arbitrum API
Optimism API
Flow Docs
Crypto.org Docs
Feature Support By Chain
📖
Documentation
Changelog
Alchemy Web3.js
Error Reference
Compute Units (CUs)
Throughput (Rate Limits)
Gas Limits for eth_call and eth_estimateGas
🎓
Road to Web3
🎉
Welcome
‼
Important Info
🛠
Weekly Hackathons
🧠
Weekly Learning Challenges
💻
Tutorials
Hello World Smart Contract
How to Code and Deploy a Polygon Smart Contract
How to Create an NFT Tutorial
NFT Minter Tutorial: How to Create a Full Stack DApp
How to Deploy Your Own ERC-20 Token
Integrating Historical Transaction Data into your dApp
Adding notifications for Pending Transactions and Mined Transactions to your dApp
Building a dApp with Real-Time Transaction Notifications
📜
Guides
EIP-1559 Resource and Tutorial Hub
Using WebSockets
Dashboard Walkthrough
Deep Dive into eth_getLogs
How to Speed Up MetaMask Transactions
Alchemy Set-up for Macs
Choosing a Web3 Network
Running an Eth2.0 Staking Node or Validator with Alchemy
Internal Playbook: Upgrading Ethereum Nodes
Debugging CORS problems for end-users
📚
Resources
FAQ
Support
Blockchain 101
Web3 Glossary
Powered By
GitBook
eth_unsubscribe - Ethereum
Subscriptions are cancelled with a regular RPC call with eth_unsubscribe as method and the subscription id as first parameter.
Parameters
1.
Subscription ID, as previously returned from an
eth_subscribe
call.
Returns
true
if a subscription was successfully cancelled, or
false
if no subscription existed with the given ID.
Example
Request
wscat
1
wscat -c wss://eth-mainnet.alchemyapi.io/v2/
<
key
>
2
3
{
"jsonrpc"
:
"2.0"
,
"id"
:
1
,
"method"
:
"eth_unsubscribe"
,
"params"
:
[
"0x9cef478923ff08bf67fde6c64013158d"
]}
Copied!
Result
1
{
2
"jsonrpc"
:
"2.0"
,
3
"id"
:
1
,
4
"result"
:
true
5
}
Copied!
Ethereum API
Alchemy Documentation
Previous
eth_subscribe - Ethereum
Next - Chain APIs
Polygon API
Last modified
11d ago
Copy link
Contents
Parameters
Returns
Example
Result