API ReferenceHistoryGet historyVersion: 2.2Get historyGEThttps://api.moralis-streams.com/historyGet all historyQUERY PARAMSlimitnumberrequiredcursorstringexcludePayloadbooleanfalsetrueResponses200 OkobjectAPI KEYTest Live APINode.jsPythoncURLGoPHPimport Moralis from 'moralis';try { await Moralis.start({ apiKey: "YOUR_API_KEY" }); const response = Moralis.Streams.getHistory({ "network": "mainnet" }); console.log(response.raw);} catch (e) { console.error(e);}from moralis import streamsapi_key = "YOUR_API_KEY"params = { "network": "mainnet"}result = streams.history.get_history( api_key=api_key, params=params,)print(result)curl --request GET \ --url 'https://api.moralis-streams.com/history' \ --header 'accept: application/json' \ --header 'X-API-Key: YOUR_API_KEY' package mainimport ( "fmt" "net/http" "io/ioutil")func main() { url := "https://api.moralis-streams.com/history" req, _ := http.NewRequest("GET", url, payload) req.Header.Add("Accept", "application/json") req.Header.Add("X-API-Key", "YOUR_API_KEY") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body))}<?php// Dependencies to install:// $ composer require guzzlehttp/guzzlerequire_once('vendor/autoload.php');$client = new \GuzzleHttp\Client();$response = $client->request('GET', 'https://api.moralis-streams.com/history', [ 'headers' => [ 'Accept' => 'application/json', 'X-API-Key' => 'YOUR_API_KEY', ],]);echo $response->getBody();Response Example200 Ok{ "result": { "id": "", "date": "", "payload": { "block": { "number": "", "hash": "", "timestamp": "" }, "chainId": "", "logs": [ { "triggers": [ { "value": "", "name": "" } ], "logIndex": "", "transactionHash": "", "address": "", "data": "", "topic0": "", "topic1": "", "topic2": "", "topic3": "" } ], "txs": [ { "triggers": [ { "value": "", "name": "" } ], "hash": "", "gas": "", "gasPrice": "", "nonce": "", "input": "", "transactionIndex": "", "fromAddress": "", "toAddress": "", "value": "", "type": "", "v": "", "r": "", "s": "", "receiptCumulativeGasUsed": "", "receiptGasUsed": "", "receiptContractAddress": "", "receiptRoot": "", "receiptStatus": "" } ], "txsInternal": [ { "from": "", "to": "", "value": "", "transactionHash": "", "gas": "" } ], "abi": [ "" ], "retries": "", "confirmed": "", "tag": "", "streamId": "" }, "tinyPayload": { "chainId": "", "confirmed": "", "block": "", "records": "", "retries": "" }, "errorMessage": "", "webhookUrl": "", "streamId": "", "tag": "" }, "cursor": "", "total": ""}