Skip to main content
Version: mainnet (v0.75)

blockexplorer.proto

path blockexplorer/api/v1/blockexplorer.proto

package blockexplorer.api.v1


Messages

GetTransactionRequest

NameTypeDescription
hashstringHash of the transaction

GetTransactionResponse

NameTypeDescription
transactionTransactionTransaction corresponding to the hash

InfoRequest

node information

NameTypeDescription

InfoResponse

NameTypeDescription
versionstringSemver formatted version of the data node
commit_hashstringCommit hash from which the data node was built

ListTransactionsRequest

NameTypeDescription
beforeoptional stringCursor to paginate the request. It can be used in conjunction with the `after` cursor.
afteroptional stringCursor to paginate the request. It can be used in conjunction with the `before` cursor.
filtersrepeated ListTransactionsRequest.FiltersEntryFilters to apply to the request
cmd_typesrepeated stringTransaction command types filter, for listing transactions with specified command types
exclude_cmd_typesrepeated stringTransaction command types exclusion filter, for listing all the transactions except the ones with specified command types
partiesrepeated stringParty IDs filter, can be sender or receiver
firstuint32Number of transactions to be returned from the blockchain. Use in conjunction with the `after` cursor to paginate forwards. Paginating forwards means toward the most recent transactions. It cannot be used in conjunction with the `before` cursor. On its own, this will return the `first` most recent transactions.
lastuint32Number of transactions to be returned from the blockchain. Use in conjunction with the `before` cursor to paginate backwards. Paginating forwards means toward the least recent transactions. It cannot be used in conjunction with the `after` cursor. On its own, this will return the `last` oldest transactions.

ListTransactionsRequest.FiltersEntry

NameTypeDescription
keystring
valuestring

ListTransactionsResponse

NameTypeDescription
transactionsrepeated TransactionTransaction corresponding to the specific request and filters

Transaction

NameTypeDescription
blockuint64Height of the block the transaction was found in
indexuint32Index of the transaction in the block
hashstringHash of the transaction
submitterstringVega public key of the transaction's submitter
typestringType of transaction
codeuint32Results code of the transaction. 0 indicates the transaction was successful
cursorstringCursor for this transaction. This is used for paginating results
commandvega.commands.v1.InputDataActual command of the transaction
signaturevega.commands.v1.SignatureSignature generated by the submitter for the transaction
erroroptional stringOptional error happening when processing / checking the transaction This should be set if error code is not 0
created_atstringTimestamp when the transaction happened, using RFC3399 format.
versionvega.commands.v1.TxVersionVersion format of the transaction
powvega.commands.v1.ProofOfWorkProof of Work parameters of the transaction

Services

BlockExplorerService

GetTransaction

MethodGetTransaction
RequestGetTransactionRequest
ResponseGetTransactionResponse
DescriptionGet transaction Get a transaction from the Vega blockchain

ListTransactions

MethodListTransactions
RequestListTransactionsRequest
ResponseListTransactionsResponse
DescriptionList transactions List transactions from the Vega blockchain from the newest to the oldest transactions.

Info

MethodInfo
RequestInfoRequest
ResponseInfoResponse
DescriptionInfo Get information about the block explorer. Response contains a semver formatted version of the data node and the commit hash, from which the block explorer was built