Ok
Ok
const response = await fetch('https://alephium.nownodes.io/blockflow/blocks-with-events?fromTs=0', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"blocksAndEvents": [
[
{
"block": {
"hash": "text",
"timestamp": 0,
"chainFrom": 0,
"chainTo": 0,
"height": 0,
"deps": [
"text"
],
"transactions": [
{
"unsigned": {
"txId": "text",
"version": 0,
"networkId": 0,
"scriptOpt": "text",
"gasAmount": 0,
"gasPrice": "text",
"inputs": [
{
"outputRef": {
"hint": 0,
"key": "text"
},
"unlockScript": "text"
}
],
"fixedOutputs": [
{
"hint": 0,
"key": "text",
"attoAlphAmount": "text",
"address": "text",
"tokens": [
{
"id": "text",
"amount": "text"
}
],
"lockTime": 0,
"message": "text"
}
]
},
"scriptExecutionOk": false,
"contractInputs": [
{
"hint": 0,
"key": "text"
}
],
"generatedOutputs": [
{
"hint": 0,
"key": "text",
"attoAlphAmount": "text",
"address": "text",
"tokens": [
{
"id": "text",
"amount": "text"
}
],
"lockTime": 0,
"message": "text",
"type": "text"
}
],
"inputSignatures": [
"text"
],
"scriptSignatures": [
"text"
]
}
],
"nonce": "text",
"version": 0,
"depStateHash": "text",
"txsHash": "text",
"target": "text",
"ghostUncles": [
{
"blockHash": "text",
"miner": "text"
}
]
},
"events": [
{
"txId": "text",
"contractAddress": "text",
"eventIndex": 0,
"fields": [
{
"value": "text",
"type": "text"
}
]
}
]
}
]
]
}
const response = await fetch('https://alephium.nownodes.io/blockflow/blocks-with-events/{block_hash}', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"block": {
"hash": "text",
"timestamp": 0,
"chainFrom": 0,
"chainTo": 0,
"height": 0,
"deps": [
"text"
],
"transactions": [
{
"unsigned": {
"txId": "text",
"version": 0,
"networkId": 0,
"scriptOpt": "text",
"gasAmount": 0,
"gasPrice": "text",
"inputs": [
{
"outputRef": {
"hint": 0,
"key": "text"
},
"unlockScript": "text"
}
],
"fixedOutputs": [
{
"hint": 0,
"key": "text",
"attoAlphAmount": "text",
"address": "text",
"tokens": [
{
"id": "text",
"amount": "text"
}
],
"lockTime": 0,
"message": "text"
}
]
},
"scriptExecutionOk": false,
"contractInputs": [
{
"hint": 0,
"key": "text"
}
],
"generatedOutputs": [
{
"hint": 0,
"key": "text",
"attoAlphAmount": "text",
"address": "text",
"tokens": [
{
"id": "text",
"amount": "text"
}
],
"lockTime": 0,
"message": "text",
"type": "text"
}
],
"inputSignatures": [
"text"
],
"scriptSignatures": [
"text"
]
}
],
"nonce": "text",
"version": 0,
"depStateHash": "text",
"txsHash": "text",
"target": "text",
"ghostUncles": [
{
"blockHash": "text",
"miner": "text"
}
]
},
"events": [
{
"txId": "text",
"contractAddress": "text",
"eventIndex": 0,
"fields": [
{
"value": "text",
"type": "text"
}
]
}
]
}