Transaction by block height and index
Get transaction full information by block height and index. It returns JSON transaction protobuf encoded. Depending of transaction type will return different types of objects. Current transaction types can be found calling /chain/transactions/cost
Path Parameters
- height integer required
Block height
- index integer required
Transaction index on block
- 200
- 204
OK
- application/json
- Schema
- Example (from schema)
Schema
- signature string
tx object
oneOf- MOD1
- MOD2
- MOD3
- MOD4
- MOD5
- MOD6
- MOD7
- MOD8
- MOD9
vote object
encryptionKeyIndexes integer[]On encrypted votes, contains the (sorted) indexes of the keys used to encrypt
nonce integer[]Unique number per vote attempt, so that replay attacks can't reuse this payload
nullifier integer[]Hash of the private key + processId
processId integer[]The process for which the vote is casted
proof object
payloadTypes that are assignable to Payload:
*Proof_EthereumStorage
*Proof_EthereumAccount
*Proof_Ca
*Proof_Arbo
*Proof_ZkSnark
*Proof_MinimeStorage
*Proof_FarcasterFramevotePackage integer[]JSON string of the Vote Package (potentially encrypted), encoded as bytes.
admin object
address integer[]encryptionPrivateKey integer[]encryptionPublicKey integer[]keyIndex integernonce integerpower integerprocessId integer[]publicKey integer[]txtype integerPossible values: [
0
,1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,13
,15
,17
,18
,19
,20
,21
,22
,23
,24
,25
,26
,27
,28
]setProcess object
censusRoot integer[]censusURI stringduration integernonce integerprocessId integer[]proof object
payloadTypes that are assignable to Payload:
*Proof_EthereumStorage
*Proof_EthereumAccount
*Proof_Ca
*Proof_Arbo
*Proof_ZkSnark
*Proof_MinimeStorage
*Proof_FarcasterFramequestionIndex integerresults object
votes object[]
question array[]status integerPossible values: [
0
,1
,2
,3
,4
,5
]tempSIKs booleantempSIKs flag decides if when the process has finished, the SIKs related to it will be removed or not
txtype integerPossible values: [
0
,1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,13
,15
,17
,18
,19
,20
,21
,22
,23
,24
,25
,26
,27
,28
]registerKey object
newKey integer[]New key to register
nonce integerUnique number per vote attempt, so that replay attacks can't reuse this payload
processId integer[]The process for which the vote is casted
proof object
payloadTypes that are assignable to Payload:
*Proof_EthereumStorage
*Proof_EthereumAccount
*Proof_Ca
*Proof_Arbo
*Proof_ZkSnark
*Proof_MinimeStorage
*Proof_FarcasterFrameweight stringWeight to delegate to newKey
sendTokens object
from integer[]nonce integerto integer[]txtype integerPossible values: [
0
,1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,13
,15
,17
,18
,19
,20
,21
,22
,23
,24
,25
,26
,27
,28
]value integersetTransactionCosts object
nonce integertxtype integerPossible values: [
0
,1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,13
,15
,17
,18
,19
,20
,21
,22
,23
,24
,25
,26
,27
,28
]value integersetAccount object
SIK integer[]account integer[]delegates array[]faucetPackage object
payload integer[]signature integer[]infoURI stringname stringnonce integerpublicKey integer[]txtype integerPossible values: [
0
,1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,13
,15
,17
,18
,19
,20
,21
,22
,23
,24
,25
,26
,27
,28
]collectFaucet object
faucetPackage object
payload integer[]signature integer[]nonce integertxType integerPossible values: [
0
,1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,13
,15
,17
,18
,19
,20
,21
,22
,23
,24
,25
,26
,27
,28
]setKeykeeper object
keykeeper integer[]nonce integertxtype integerPossible values: [
0
,1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,13
,15
,17
,18
,19
,20
,21
,22
,23
,24
,25
,26
,27
,28
]txInfo object
blockHeight int32transactionHash stringtransactionIndex int32transactionNumber int64transactionType stringPossible values: [
vote
,newProcess
,admin
,setProcess
,registerKey
,mintTokens
,sendTokens
,setTransactionCosts
,setAccount
,collectFaucet
,setKeykeeper
]
{
"signature": "string",
"tx": {
"vote": {
"encryptionKeyIndexes": [
0
],
"nonce": [
0
],
"nullifier": [
0
],
"processId": [
0
],
"proof": {},
"votePackage": [
0
]
}
},
"txInfo": {
"blockHeight": 64924,
"transactionHash": "75e8f822f5dd13973ac5158d600f0a2a5fea4bfefce9712ab5195bf17884cfad",
"transactionIndex": 0,
"transactionNumber": 944,
"transactionType": "Vote"
}
}
See errors section