Waves WebSocket API allows you to receive asynchronous notifications of blockchain events. Use one of the following URLs to establish a WebSocket connection.

WebSocket URL:

ws://ws.wavesplatform.com/api

WebSocket Secure URL:

wss://ws.wavesplatform.com/api

The Simple WebSocket Client tool can be used for testing.


Keep Alive

A WebSocket session may be terminated after 1 minute of inactivity. In order to keep the connection alive, you can ping the server, for example every 30 seconds.

{"op":"ping"}

Server response:

{
  "op" : "pong"
}

Subscribing to Unconfirmed Transactions (utx)

Receive notifications of new unconfirmed transactions.

{"op":"subscribe utx"}

Message on new unconfirmed transaction:

{
  "op" : "utx",
  "msg" : {
    "type" : 4,
    "id" : "FZndbWcDBgsZTKixu6tebDG5QwuT2jYNz2MRE359xG33",
    "sender" : "3PPKDQ3G67gekeobR8MENopXytEf6M8WXhs",
    "senderPublicKey" : "ACrdghi6PDpLn158GQ7SNieaHeJEDiDCZmCPshTstUzx",
    "fee" : 10000000,
    "timestamp" : 1498469420523,
    "signature" : "wd2EbwbJBeBSEQaFQLH3APo1kjkoZsGRDjCV5n4HTswVcY3qxXVrvukoJHmdNLmmfVrUuRdzwfrYsyreYDeThdb",
    "recipient" : "3PQ6wCS3zAkDEJtvGntQZbjuLw24kxTqndr",
    "assetId" : "HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj",
    "amount" : 1,
    "feeAsset" : "HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj",
    "attachment" : "F5v2mb2C4xPK7CJm9Aa9cfUSA5fT"
  }
}

Subscribing to Confirmed Transactions (tx)

Receive notifications of new confirmed transactions.

{"op":"subscribe tx"}

Message on new confirmed transaction:

{
  "op" : "tx",
  "msg" : {
    "type" : 7,
    "id" : "7LbB46JkBjZnSMLpqqQeFTFrHG1g5q5oA2Hipu4rAg3g",
    "sender" : "3PJaDyprvekvPXPuAtxrapacuDJopgJRaU3",
    "senderPublicKey" : "7kPFrHDiGw1rCm7LPszuECwWYL3dMf6iMifLRDJQZMzy",
    "fee" : 300000,
    "timestamp" : 1498487656766,
    "signature" : "4SYAtNxudu1hD88UfTEPotpmydnnLAJvcrGzBdWk4GDLjpkFYvcxcPcFqL417Qsy7JWDARW6dnGsN86eDhnLpM3U",
    "order1" : {
      "id" : "3c6f7kqz62ER5wsdKoY5WcqkdSn49sq2zCZjcaARKwmC",
      "senderPublicKey" : "6LpFs4kDxXTkmBLBGu1RekVnTGx6Ko8h2hLxvBCJLPBP",
      "matcherPublicKey" : "7kPFrHDiGw1rCm7LPszuECwWYL3dMf6iMifLRDJQZMzy",
      "assetPair" : {
        "amountAsset" : null,
        "priceAsset" : "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS"
      },
      "orderType" : "buy",
      "price" : 170078,
      "amount" : 5402596384,
      "timestamp" : 1498487650413,
      "expiration" : 1498487658382,
      "matcherFee" : 300000,
      "signature" : "5ihmSUCjwXGpjUriWGh7zVkRHwhof5LzK6qWUUXQj6cMeZNkmo56oX2zUBjGovaQL7cUzUqBYj6MCuNJ2yQZuoMA"
    },
    "order2" : {
      "id" : "3eYZ1H32vHayZe2Z6gjyAPPaAxWatDdJskNeKeufGGQQ",
      "senderPublicKey" : "6uj6df78drC82VzgxRUKQNN6BCqoZnYe1EjMnS3ph3bj",
      "matcherPublicKey" : "7kPFrHDiGw1rCm7LPszuECwWYL3dMf6iMifLRDJQZMzy",
      "assetPair" : {
        "amountAsset" : null,
        "priceAsset" : "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS"
      },
      "orderType" : "sell",
      "price" : 162274,
      "amount" : 5400000000,
      "timestamp" : 1498487647148,
      "expiration" : 1498487663041,
      "matcherFee" : 300000,
      "signature" : "58wUfumqX6Xqp7UP4ETAUuoEar97zifJJu98fkSTzpNHEUmG8Jy2Y1PsGvpfgNpTkXRdGCt5oK8hwkGPLnuqWCpF"
    },
    "price" : 162274,
    "amount" : 5400000000,
    "buyMatcherFee" : 299855,
    "sellMatcherFee" : 300000
  }
}

Subscribing to Blocks

Receive notifications of new blocks.

{"op":"subscribe block"}

Message on new Block:

{
  "op" : "block",
  "msg" : {
    "version" : 2,
    "timestamp" : 1498487405663,
    "reference" : "5mdKD2Xts8aczPWcUTNgUEYaWubjBQsgnCcMnpCLTNRSJCwKXd9pzQEh8np2FadY6PH6bc7KFRpiLTtP9T3r2udX",
    "nxt-consensus" : {
      "base-target" : 69,
      "generation-signature" : "DawQQwSj54VsjSncmHsmQbFPPk7yMXpa2ZPycEtm49he"
    },
    "transactions" : [ {
      "type" : 4,
      "id" : "H9KLrw3waN4HDXN6YPL6QxUUGngUiSrPhQk1ZkK6Vgig",
      "sender" : "3P8SLUYzHV5ay4hry71xRSXm8XBZCpwYTt4",
      "senderPublicKey" : "3Rqnu9UCnF1WyNjwWqeHSHTBk7BAeN1jJBC1MwXS5y68",
      "fee" : 100000,
      "timestamp" : 1498487303927,
      "signature" : "5QdhZmzQ6cgE2w8vtD1szp8LRnL4Cni6ToYgUq7zkTmTmxbQxnDyL6sGjUHXijrvFD1vpKgEdDbGNFQXTpmL5AKX",
      "recipient" : "3PE5ZLLSdrryLZ6TSCJZhimY9HxmQT8m4Ty",
      "assetId" : "4uK8i4ThRGbehENwa6MxyLtxAjAo1Rj9fduborGExarC",
      "amount" : 1174,
      "feeAsset" : null,
      "attachment" : "Dcwh3CEBYJMgCkpzudenjK"
    }, {
      "type" : 4,
      "id" : "2Ha6QB7UcGE61DeNTs9ATXJB4sw3gcwjwoqYR1u5ZB3u",
      "sender" : "3P31zvGdh6ai6JK6zZ18TjYzJsa1B83YPoj",
      "senderPublicKey" : "46t5F1bUxG4mAQUiDyMKDBpWhHChLQSyhnVJ8R5jaLqH",
      "fee" : 100000,
      "timestamp" : 1498487273748,
      "signature" : "ir7UYPrMH4HZLLkaQMbFbZb9V5FEb7vy9r4TrQiViXmEip6zpitndRi8dVWKBTD8mhdtCLAie2agoceQ1hidS4g",
      "recipient" : "3PFHbFrBib6F3wmqJKmeDVuwJB2KxR14Eqy",
      "assetId" : null,
      "amount" : 22214754621,
      "feeAsset" : null,
      "attachment" : ""
    }, {
      "type" : 4,
      "id" : "TP317NT1i1HW9p6SPFE4j2vdSC2o8QEDR9DgTV4vCqJ",
      "sender" : "3PPKDQ3G67gekeobR8MENopXytEf6M8WXhs",
      "senderPublicKey" : "ACrdghi6PDpLn158GQ7SNieaHeJEDiDCZmCPshTstUzx",
      "fee" : 10000000,
      "timestamp" : 1498487395968,
      "signature" : "3wfwMoUgEZ7DqSZYoRKjuBnnj92u3SoquVKTLPierqKiQXXPD63znArXfjH5LF5Y7ERtmgj9zhA1Wb6osKFtPmuu",
      "recipient" : "3PQ6wCS3zAkDEJtvGntQZbjuLw24kxTqndr",
      "assetId" : "HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj",
      "amount" : 1,
      "feeAsset" : "HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj",
      "attachment" : "GnQQFohQSDtLYuwNf1LnSbhxqhR"
    }, {
      "type" : 4,
      "id" : "CuwEL24oHhjcfPNbJqQB68T9pYpRDr98ACon3hNU4CpQ",
      "sender" : "3PPKDQ3G67gekeobR8MENopXytEf6M8WXhs",
      "senderPublicKey" : "ACrdghi6PDpLn158GQ7SNieaHeJEDiDCZmCPshTstUzx",
      "fee" : 10000000,
      "timestamp" : 1498487380177,
      "signature" : "3F7GXEeP2GRQMnACkcSqw48EuvFQWTHF8d8uACd7PxmvrsvLkwiF9qqox52C5y2xpEKApzmmdoZKay4qj9pNRrHF",
      "recipient" : "3PQ6wCS3zAkDEJtvGntQZbjuLw24kxTqndr",
      "assetId" : "HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj",
      "amount" : 1,
      "feeAsset" : "HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj",
      "attachment" : "GnQQFohQSDtLYuwNf1LnSbhxqhR"
    }, {
      "type" : 4,
      "id" : "9jvKe8QngV8KuE49rwNpwbNkcLmUMjSg1Z3iZYYozKTp",
      "sender" : "3PPKDQ3G67gekeobR8MENopXytEf6M8WXhs",
      "senderPublicKey" : "ACrdghi6PDpLn158GQ7SNieaHeJEDiDCZmCPshTstUzx",
      "fee" : 10000000,
      "timestamp" : 1498487364430,
      "signature" : "gxieQ7FffQSdoNLzpnDXqAeVf6NE64VWbyfJJnhZF18t2hWL2BxAAsYuyZDQT9h6TzW6CpkbNexmMyJbYscVLkJ",
      "recipient" : "3PQ6wCS3zAkDEJtvGntQZbjuLw24kxTqndr",
      "assetId" : "HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj",
      "amount" : 1,
      "feeAsset" : "HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj",
      "attachment" : "GnQQFohQSDtLYuwNf1LnSbhxqhR"
    }, {
      "type" : 4,
      "id" : "GzrwgWfbFdSLmUavY555QeTWzswfiUkv65o1jCXuzGCD",
      "sender" : "3PPKDQ3G67gekeobR8MENopXytEf6M8WXhs",
      "senderPublicKey" : "ACrdghi6PDpLn158GQ7SNieaHeJEDiDCZmCPshTstUzx",
      "fee" : 10000000,
      "timestamp" : 1498487348455,
      "signature" : "5tbBvnsSmxMzBs1SD5bnposTk8n1jFEaC5rBjdQy3CPVY2mHUHCyGuNjaixVEXq6CdjzaoJJqZNgZPcaBFQJW6Sm",
      "recipient" : "3PQ6wCS3zAkDEJtvGntQZbjuLw24kxTqndr",
      "assetId" : "HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj",
      "amount" : 1,
      "feeAsset" : "HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj",
      "attachment" : "GnQQFohQSDtLYuwNf1LnSbhxqhR"
    }, {
      "type" : 4,
      "id" : "Gast8hYtAEVLPGHavXJ4UoAKo7XqubdysYgq7gqbYi4K",
      "sender" : "3PPKDQ3G67gekeobR8MENopXytEf6M8WXhs",
      "senderPublicKey" : "ACrdghi6PDpLn158GQ7SNieaHeJEDiDCZmCPshTstUzx",
      "fee" : 10000000,
      "timestamp" : 1498487332586,
      "signature" : "29Dks8Y4nnmy4APv9WBXHXqRZ1VsoaxuiRwrDiytvCVi3gi9Fwy5Zud4kSS2nE1TtQ5qQKL63ctc6p3Cbm5Xskfk",
      "recipient" : "3PQ6wCS3zAkDEJtvGntQZbjuLw24kxTqndr",
      "assetId" : "HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj",
      "amount" : 1,
      "feeAsset" : "HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj",
      "attachment" : "2SsKTXApnS6nkDyfoPXRBbtmX7"
    }, {
      "type" : 4,
      "id" : "2EWVcfUorCu9Ve8ktvCbsBQHjNn7JQNow3oNjgDstmBg",
      "sender" : "3PPKDQ3G67gekeobR8MENopXytEf6M8WXhs",
      "senderPublicKey" : "ACrdghi6PDpLn158GQ7SNieaHeJEDiDCZmCPshTstUzx",
      "fee" : 10000000,
      "timestamp" : 1498487316562,
      "signature" : "5xTpxAkjSXFTnzDnwMFRNCtb1FtE9rEtg6cr61Ce8oSV4C6arYFdcipu9UnfHHPf1xJsY8MkSpKtWf1o9VKjwaPU",
      "recipient" : "3PQ6wCS3zAkDEJtvGntQZbjuLw24kxTqndr",
      "assetId" : "HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj",
      "amount" : 1,
      "feeAsset" : "HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj",
      "attachment" : "FBQx4u6ewheaqVe4rPXposJsJnNu"
    }, {
      "type" : 4,
      "id" : "3xSjb5A2U4GYpxeSgUuK5x7nfadoGpXsukXjgWWLjouc",
      "sender" : "3PPKDQ3G67gekeobR8MENopXytEf6M8WXhs",
      "senderPublicKey" : "ACrdghi6PDpLn158GQ7SNieaHeJEDiDCZmCPshTstUzx",
      "fee" : 10000000,
      "timestamp" : 1498487300592,
      "signature" : "4APhFXcYggJXh192aENLxsY6Ppr3FjrqRPQiVKLhMhHEkwnPWpJnAAxv2q1yhMs28yDvQAxJsTytxgurcgLPYJrv",
      "recipient" : "3PQ6wCS3zAkDEJtvGntQZbjuLw24kxTqndr",
      "assetId" : "HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj",
      "amount" : 1,
      "feeAsset" : "HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj",
      "attachment" : "FBQx4u6ewheaqVe4rPXposJsJnNu"
    }, {
      "type" : 4,
      "id" : "Az7e73sZ28M4GzbVKT5iciy7aDkJLHzKT3NogoWKSviq",
      "sender" : "3PPKDQ3G67gekeobR8MENopXytEf6M8WXhs",
      "senderPublicKey" : "ACrdghi6PDpLn158GQ7SNieaHeJEDiDCZmCPshTstUzx",
      "fee" : 10000000,
      "timestamp" : 1498487284688,
      "signature" : "7oU6RxuUcjNKaX3H1jKRH26uQBetEWNgPvS4w1F4AS841a9ojKfgpKyqQeZEtZVTnXbAM2PV6pZNgGdL5uRLR1q",
      "recipient" : "3PQ6wCS3zAkDEJtvGntQZbjuLw24kxTqndr",
      "assetId" : "HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj",
      "amount" : 1,
      "feeAsset" : "HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj",
      "attachment" : "FBQx4u6ewheaqVe4rPXposJsJnNu"
    }, {
      "type" : 4,
      "id" : "53t9nGV7KUhWq6RuU9UTGakCd2jF2hAuG1JrpD2gBfvv",
      "sender" : "3PPKDQ3G67gekeobR8MENopXytEf6M8WXhs",
      "senderPublicKey" : "ACrdghi6PDpLn158GQ7SNieaHeJEDiDCZmCPshTstUzx",
      "fee" : 10000000,
      "timestamp" : 1498487268813,
      "signature" : "3hzNc5gTZJjxy9BXXvpFUDbRNC44wCckNc7eR3zFLwCrARBd13ahr2zVLaz2ZcX5TiDcyURYxm1twgQT5zCZZhZB",
      "recipient" : "3PQ6wCS3zAkDEJtvGntQZbjuLw24kxTqndr",
      "assetId" : "HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj",
      "amount" : 1,
      "feeAsset" : "HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj",
      "attachment" : "FEawwsk8L93o6RX7BWbqBh7gkbeZ"
    }, {
      "type" : 4,
      "id" : "BerdQQo4Zd68shQpL8HjzXQPwy19em9CyP9Cdqt5xiCm",
      "sender" : "3PPKDQ3G67gekeobR8MENopXytEf6M8WXhs",
      "senderPublicKey" : "ACrdghi6PDpLn158GQ7SNieaHeJEDiDCZmCPshTstUzx",
      "fee" : 10000000,
      "timestamp" : 1498487253010,
      "signature" : "5MM6pFMfkX7Z8h1PggyMPcJsztrFdoDn6SRVrXN8SNT8iAJa9KkUMyNsgJYaz5CDyFPda2AhyT24qzy4hUKfSpmm",
      "recipient" : "3PQ6wCS3zAkDEJtvGntQZbjuLw24kxTqndr",
      "assetId" : "HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj",
      "amount" : 1,
      "feeAsset" : "HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj",
      "attachment" : "FEawwsk8L93o6RX7BWbqBh7gkbeZ"
    }, {
      "type" : 4,
      "id" : "FrmkiBikKRUHbj1Dtt2G9NtF4oSmJo2TDK8hYmtDTGTY",
      "sender" : "3PPKDQ3G67gekeobR8MENopXytEf6M8WXhs",
      "senderPublicKey" : "ACrdghi6PDpLn158GQ7SNieaHeJEDiDCZmCPshTstUzx",
      "fee" : 10000000,
      "timestamp" : 1498487236975,
      "signature" : "vThcrmfWzKZNkErmGjSxAyfK9ytY4RzdJHhgRvEgx21PbPkfFRz9XnLxQBATLZHueR1NBcXbP59DJv9CjBqqwao",
      "recipient" : "3PQ6wCS3zAkDEJtvGntQZbjuLw24kxTqndr",
      "assetId" : "HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj",
      "amount" : 1,
      "feeAsset" : "HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj",
      "attachment" : "FEawwsk8L93o6RX7BWbqBh7gkbeZ"
    } ],
    "generator" : "3PFrn8EHRhjJGEQxYwWKdJcwcsW1XFRJbmz",
    "signature" : "4ZfdWGUq4LcntWYmb1YKiQCUiRjbeY882ihXaVq66DeGavP7XZrcWoi4BTdwAZ1NaFY4d8LRQaqYhV5u4u1bTzkK",
    "fee" : 110200000,
    "blocksize" : 3223,
    "height" : 555384
  }
}

Subscribing to an Address

Receive notifications of new unconfirmed or confirmed transactions involving the specified address.

{"op":"subscribe address/{ADDRESS}"}            # subscribe to {ADDRESS}
{"op":"subscribe address/{ADDRESS}/utx"}        # subscribe to {ADDRESS} (only unconfirmed txs)
{"op":"subscribe address/{ADDRESS}/tx"}         # subscribe to {ADDRESS} (only confirmed txs)

#Example:
{"op":"subscribe address/3P31zvGdh6ai6JK6zZ18TjYzJsa1B83YPoj"}

Message on new transaction:

{
  "op" : "address/3P31zvGdh6ai6JK6zZ18TjYzJsa1B83YPoj/tx",
  "msg" : {
    "type" : 4,
    "id" : "A5ThoBPBzef413tTZJ5ZFcjQp43uk3Zt5kFgbWvxz15o",
    "sender" : "3P31zvGdh6ai6JK6zZ18TjYzJsa1B83YPoj",
    "senderPublicKey" : "46t5F1bUxG4mAQUiDyMKDBpWhHChLQSyhnVJ8R5jaLqH",
    "fee" : 100000,
    "timestamp" : 1498482309836,
    "signature" : "5i1EdNTtZbAUjS9aLb7uJsnn48XC1UKi13tWjbW3sP7Dui1JfxgutgiPnGcgyw6FzQibjnTQd9NMUrgWEVKznRZL",
    "recipient" : "3P4GE5kPLDi3YgDUvPnueGq1S6NMV5gknMb",
    "assetId" : null,
    "amount" : 892509874,
    "feeAsset" : null,
    "attachment" : ""
  }
}

Subscribing to Balance changes

Receive notifications of balance changes for the specified address (or for any address).

{"op":"subscribe balance/{ADDRESS}"}        # subscribe to balance changes for {ADDRESS}
{"op":"subscribe balance"}                  # subscribe to balance changes for any address

#Example:
{"op":"subscribe balance/3P31zvGdh6ai6JK6zZ18TjYzJsa1B83YPoj"}

Message on balance change:

{
  "op" : "balance/3P31zvGdh6ai6JK6zZ18TjYzJsa1B83YPoj",
  "msg" : {
    "WAVES" : 1264213718872765,
    "28rURQX5YKKVtdg1NBkMZN4iaXMVMr4YUnH3pvQZttzW" : 1,
    "2aNMjB9fe7mKqiG9zws8KvRLLQuKZb3o7vuGixuzwPFX" : 10000,
    "3wqMtvbLgCAHaStSNEoqYRVp1vrrJoaP41DdC5Mfe98L" : 6948,
    "4eWBPyY4XNPsFLoQK3iuVUfamqKLDu5o6zQCYyp9d8Ae" : 1000,
    "4rmhfoscYcjz1imNDvtz45doouvrQqDpbX7xdfLB4guF" : 7,
    "4vV2ZSC8hzADa8Ed4f6mUuSCkreJrCCRksc6NaXhmiYW" : 1000000,
    "5DmkDK1e5j7oGwzZqy1gFwVUsXYskvRLwMYUdVSirSHb" : 162,
    "89C2F79559Hg6bS1Lnxja82BRjW62XHjyC2ihsqCUj4u" : 100000000,
    "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS" : 37417000,
    "8UGsTQJZHgmn3k7TxrPZ8xYokJF9x69xBMD1QjYqFzVh" : 1,
    "8Yiktau4mPvqBZpWJyCVm6D93jtzB2XVDiEvbzMffFzi" : 1000,
    "8juYABzCQpA84eroW3WDKzBzNCpNsXihFssqPyWqKjH2" : 25000000000,
    "8ofu3VpEaVCFjRqLLqzTMNs5URKUUQMrPp3k6oFmiCc6" : 18920097320,
    "9cydYWFAG278V7FaMG1jiECdCYetvMzW4BL2fVKSNyw" : 1,
    "A8NnpikFDyTpWXhsvwRij76BcbcQ3mRmEPTDusNEDJd9" : 2,
    "AnERqFRffNVrCbviXbDEdzrU6ipXCP5Y1PKpFdRnyQAy" : 4938300000000,
    "AzATZpdYT2y9vXEiB8MbojpHDgp5wtvmtGurNHWsDqwS" : 5000000000000,
    "BDMRyZsmDZpgKhdM7fUTknKcUbVVkDpMcqEj31PUzjMy" : 50798248742533,
    "BhHxVxCfjXijwGet6bdwio34mMUFeqJC8iiAcYdV3Mec" : 1000000000000,
    "C6SsECGzJfqQex6PyFQ4Jt2t7jWUQY92zMaPgveJs2oP" : 10000000000,
    "CAyBTqxngcwR4X1cyhcZBTwEhrmFAPu7A4jdx1Eiq6pp" : 1000000000,
    "CaDS3qrR8GsHfQ5XrTCssn8NdRMdCHNgkAtGDaMRkJ5y" : 2,
    "Ck3G6iRDbDYkeCUMxUeWiBkgeRHwPdHdyXMPWuCZ3JLE" : 20000,
    "DHgwrRvVyqJsepd32YbBqUeDH4GJ1N984X8QoekjgH8J" : 15856,
    "DxG3PLganyNzajHGzvWLjc4P3T2CpkBGxY4J9eJAAUPw" : 200000000000000,
    "E4ip4jzTc4PCvebYn1818T4LNoYBVL3Y4Y4dMPatGwa9" : 500000000000,
    "EeLMX9YyjMNr1gEkZm96Tow9niQezWUVXFWSgWhjFbQs" : 1000000000,
    "EsNuaQKWhHxjzJzQVAgky4VXdyYDfmocmED8f1yLensP" : 1000100000000,
    "FLbGXzrpqkvucZqsHDcNxePTkh2ChmEi4GdBfDRRJVof" : 791530900165201,
    "Ftim86CXM6hANxArJXZs2Fq7XLs3nJvgBzzEwQWwQn6N" : 2117290600000000,
    "FzDS7qLsZgVmzJub3yJubvBvyXd6ZJw8HrPiuDZA9CQY" : 1,
    "G6F52cNqSi7v2kuj2anzyKkYgbhsijWvCJDD3WvKzjLH" : 100000000,
    "GQr2fpkfmWjMaZCbqMxefbiwgvpcNgYdev7xpuX6xqcE" : 1000,
    "GaqqYPtdrgkTjijWB4sB876cvLL6txd7564RorF9Tjoq" : 50000000000,
    "HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj" : 1250100006544,
    "J1cNEwbVLfn3skMzDZmpujXUgLDyNh2D5nDq8fbvDwKy" : 1000000000,
    "J3m2Z4PJ5FuQf6kYFr6LocsQFu9Dc7FYsPdNgsweUqQW" : 100000000000,
    "RRBqh2XxcwAdLYEdSickM589Vb4RCemBCPH5mJaWhU9" : 4938300000000,
    "fQkfbgHdvwnfauSfg8a19ACLWKNnLjykAiQVHgMA76R" : 1981800019818
  }
}

Subscribing to an Asset

Receive notifications of new unconfirmed or confirmed transactions involving the specified asset.

{"op":"subscribe asset/{ASSET_ID}"}            # subscribe to {ASSET_ID}
{"op":"subscribe asset/{ASSET_ID}/utx"}        # subscribe to {ASSET_ID} (only unconfirmed txs)
{"op":"subscribe asset/{ASSET_ID}/tx"}         # subscribe to {ASSET_ID} (only confirmed txs)

#Example:
{"op":"subscribe asset/HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj"}

Message on new transaction:

{
  "op" : "asset/HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj/tx",
  "msg" : {
    "type" : 4,
    "id" : "BuDfwWgqcsumWyzWxia399SMfTcAAVZzhvMJk3Z39Hu3",
    "sender" : "3PPKDQ3G67gekeobR8MENopXytEf6M8WXhs",
    "senderPublicKey" : "ACrdghi6PDpLn158GQ7SNieaHeJEDiDCZmCPshTstUzx",
    "fee" : 10000000,
    "timestamp" : 1498482230818,
    "signature" : "5nTQMKVYVsWakPSVJshEQKCvxcxPxvvJcQZnfuxfzH4nu6St6yCEWmXz2biteQvMnPTu17t3Am1ghy6QLsDgQJAD",
    "recipient" : "3PQ6wCS3zAkDEJtvGntQZbjuLw24kxTqndr",
    "assetId" : "HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj",
    "amount" : 1,
    "feeAsset" : "HzfaJp8YQWLvQG4FkUxq2Q7iYWMYQ2k8UF89vVJAjWPj",
    "attachment" : "EychFwTnCg7tuWisqZprfAmwtSD7"
  }
}

Subscribing to Trades

Receive notifications of new confirmed or unconfirmed trades for the specified asset pair (or for any pair).

{"op":"subscribe trades/{AMOUNT_ASSET}/{PRICE_ASSET}"}        # subscribe to trades for the {AMOUNT_ASSET}/{PRICE_ASSET} pair
{"op":"subscribe trades"}                                     # subscribe to all trades

#Example:
{"op":"subscribe trades/WAVES/8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS"}

Message on new trade:

{
  "op" : "trades/WAVES/8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS",
  "msg" : {
    "timestamp" : 1498481625760,
    "id" : "88zw8u1thmyGEm4pRKCXxCkfbMexBeUhCFYTHsJRSxMv",
    "confirmed" : true,
    "type" : "buy",
    "price" : 162799,
    "amount" : 29580000000,
    "buyer" : "3P2EKcmNT9mU32X8iFmxd9k2Hu7xPh5ijVx",
    "seller" : "3PAsPz3V3PDJET2MK5QKimLgRLRCyB5Np9S",
    "matcher" : "7kPFrHDiGw1rCm7LPszuECwWYL3dMf6iMifLRDJQZMzy"
  }
}

Unsubscribing

Stop receiving notifications from a subscribed channel or from all channels

{"op":"unsubscribe {CHANNEL}"}        # unsubscribe from the specified channel
{"op":"unsubscribe all"}              # unsubscribe from all channels

#Example:
{"op":"unsubscribe utx"}

Server response:

{
  "status" : "ok",
  "op" : "unsubscribe utx"
}