Skip to content

Watch Pending Transactions #1553

Answered by jxom
real-lazy-coder asked this question in Question
Discussion options

You must be logged in to vote

You can use the raw subscribe method from the websocket transport... if you're using a websocket transport, you can do

client.transport.subscribe({
  params: ['alchemy_pendingTransactions'],
  onData(data) {
    console.log(data)
  }
})

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@real-lazy-coder
Comment options

Answer selected by real-lazy-coder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants