wss://api.blocknative.com/v0
. A successful connection will receive a response object that contains a status parameter with a value of 'ok'
.timeStamp
YYYY-MM-DDThh:mm:ss.sTZD
(see example for usage and https://www.w3.org/TR/NOTE-datetime for more details)dappId
version
blockchain
system
and network
of the blockchain (see next)system
ethereum
and bitcoin
network
main
, ropsten
, rinkeby
, goerli
, kovan
, xdai
, bsc-main
, matic-main
, fantom-main
Bitcoin - main
, test
dappId
in the Blocknative websocket protocol. scope
'global'
filters
jsql
, a JavaScript query language to filter events. Documentation for how to create filter queries can be found here​abi
scope
watchAddress
scope
scope
establishes the context in which a filter is applied. The global
scope applies the filter to all transactions/addresses watched. Therefore a global
scope only supports generic transaction elements. A scope
set to an address can include filters, such as methodName,
that are specific to the contract at that address. Similarly, the abi
field only works for a contract specific scope
.eventCode
parameter in the event
object which indicates the type of event. Detailed documentation for event codes can be found in the here.parameter
watchedAddress
direction
incoming
or outgoing
indicating whether the watched address is sending or receiving the transactioncounterparty
confirmed
will have the following additional properties that are not included in other statuses:parameter
timePending
blocksPending
blockHash
blockNumber
gasUsed
speedup
or cancel
will have the following additional properties that are not included in other statuses:parameter
originalHash
status
= 'error'
and a reason string explaining the error.dappId
) parameter is missing:dappId
) is invalid:system
used (bitcoin or ethereum).retryMs
parameter to wait for that time period to continue sending messages. If a message was blocked due to a rate limit it will be included in the payload in the blockedMsg
parameter so you can re-send that message after the retry delay, ensuring that no messages are dropped.