API ReferenceStreamsUpdate streamVersion: 2.2Update streamPOSThttps://api.moralis-streams.com/streams/aptos/:idUpdates a new aptos stream.PATH PARAMSidstringrequiredBODY PARAMallAddressesbooleanInclude events for all addresses (only applied when at least one event or function is provided)falsetruedemobooleanIndicator if it is a demo streamfalsetruedescriptionstringA description for this streamincludeChangesbooleanInclude or not raw changes for every transaction in webhook defaults to falsefalsetrueincludeEventsbooleanInclude or not events in webhook defaults to falsefalsetrueincludePayloadbooleanInclude or not payload for every transaction in webhook defaults to falsefalsetruenetworkarrayThe network to listen toNo items in the arrayAdd ItemeventsarrayAn Array of events in string-signature format ex: ['0x1::coin::WithdrawEvent']No items in the arrayAdd ItemfunctionsarrayAn Array of events in string-signature format ex: ['0x1::aptos_account::transfer']No items in the arrayAdd ItemtagstringA user-provided tag that will be send along the webhook, the user can use this tag to identify the specific stream if multiple streams are presentwebhookUrlstringWebhook URL where moralis will send the POST request.Responses200 OkobjectAPI KEYTest Live APINode.jsPythoncURLGoPHP// Dependencies to install:// $ npm install node-fetch --save// add "type": "module" to package.jsonimport fetch from 'node-fetch';const options = { method: 'POST', headers: { accept: 'application/json', 'X-API-Key': 'YOUR_API_KEY' },};fetch('https://api.moralis-streams.com/streams/aptos/%3Aid', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));# Dependencies to install:# $ python -m pip install requestsimport requestsurl = "https://api.moralis-streams.com/streams/aptos/%3Aid"headers = { "Accept": "application/json", "X-API-Key": "YOUR_API_KEY"}response = requests.request("POST", url, headers=headers)print(response.text)curl --request POST \ --url 'https://api.moralis-streams.com/streams/aptos/%3Aid' \ --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/streams/aptos/%3Aid" req, _ := http.NewRequest("POST", 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('POST', 'https://api.moralis-streams.com/streams/aptos/%3Aid', [ 'headers' => [ 'Accept' => 'application/json', 'X-API-Key' => 'YOUR_API_KEY', ],]);echo $response->getBody();Response Example200 Ok{ "id": "", "allAddresses": "", "demo": "", "description": "", "includeChanges": "", "includeEvents": "", "includePayload": "", "isErrorSince": "", "network": [ "" ], "status": "", "statusMessage": "", "events": [ "" ], "functions": [ "" ], "tag": "", "webhookUrl": "", "amountOfAddresses": ""}