ZKSync API

zks_sendRawTransactionWithDetailedOutput

Executes a transaction and returns its hash, storage logs, and events that would have been generated if the transaction had already been included in the block. The API has a similar behaviour to eth_sendRawTransaction but with some extra data returned from it. With this API Consumer apps can apply "optimistic" events in their applications instantly without having to wait for ZKsync block confirmation time. It's expected that the optimistic logs of two uncommitted transactions that modify the same state will not have causal relationships between each other.

post/zks_sendRawTransactionWithDetailedOutput

Request body

jsonrpcstring required

JSON-RPC version

methodstring required

The method to call

paramsstring[] required

The signed transaction

idinteger required

Request identifier

Response

Returns transaction hash, storage logs, and events

SendRawTransactionWithDetailedOutputResponse required— unresolved $ref

Changes