This endpoint is only available to Growth and Enterprise plans.

Product demo

Coming soon.

Endpoint details

  • URL: wss://production-stream.mobula.io
  • Message (string):
{
    "name": "MyWalletTransactions",
    "chainIds": ["evm:1", "evm:56"],
    "events": ["trace", "log", "trasaction", "block", "swap"],
};

Parameters

Implementation example

Let’s take a look at:

const socket = new WebSocket("wss://production-stream.mobula.io");

socket.addEventListener("open", () => {
  socket.send(`{
    "type": "stream",
    "payload": {
      "chainIds": ["evm:1", "evm:56"],
      "events": ["trace", "log", "trasaction", "block", "swap"],
    }
}`);
});

socket.addEventListener("message", (event) => {
  const data = JSON.parse(event.data);

  if (event.reorg) {
    // Handle reorg
    return;
  }
});

// No need to close the socket, it will close automatically.
You can use the Network tab in your browser to see the WSS requests.

Can’t find what you’re looking for? Reach out to us, response times < 1h.