Skip to main content
Version: testnet (v0.73)

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
limituint32Number of transactions to be returned from the blockchain. This is deprecated, use first and last instead.
beforestringOptional cursor to paginate the request
afterstringOptional cursor to paginate the request
filtersListTransactionsRequest.FiltersEntryFilters to apply to the request
cmd_typesstringTransaction command types filter, for listing transactions with specified command types
exclude_cmd_typesstringTransaction command types exclusion filter, for listing all the transactions except the ones with specified command types
partiesstringParty 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. On its own, this will return the first `first` transactions.
lastuint32Number of transactions to be returned from the blockchain. Use in conjunction with the `before` cursor to paginate backwards. On its own, this will return the last `last` transactions.

ListTransactionsRequest.FiltersEntry

NameTypeDescription
keystring
valuestring

ListTransactionsResponse

NameTypeDescription
transactionsTransactionTransaction 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
errorstringOptional error happening when processing / checking the transaction This should be set if error code is not 0

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

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