chain/getBlock
Gets a block from the chain from a given hash or sequence.
One of hash or sequence must be provided.
Request
{
search?: string
hash?: string
sequence?: number
confirmations?: number
}
Response
{
block: {
graffiti: string
difficulty: string
hash: string
previousBlockHash: string
sequence: number
timestamp: number
noteSize: number
noteCommitment: string
transactions: Array<{
fee: string
hash: string
signature: string
notes: number
spends: number
}>
}
metadata: {
main: boolean
confirmed: boolean
}
}