API ReferenceStreamsCreate streamVersion: 2.2Create streamPUThttps://api.moralis-streams.com/streams/aptosCreates a new aptos stream.BODY PARAMwebhookUrlstringWebhook URL where moralis will send the POST request.tagstringA 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 presentfunctionsarrayAn Array of events in string-signature format ex: ['0x1::aptos_account::transfer']No items in the arrayAdd ItemeventsarrayAn Array of events in string-signature format ex: ['0x1::coin::WithdrawEvent']No items in the arrayAdd ItemnetworkarrayThe network to listen toNo items in the arrayAdd ItemincludePayloadbooleanInclude or not payload for every transaction in webhook defaults to falsefalsetrueincludeEventsbooleanInclude or not events in webhook defaults to falsefalsetrueincludeChangesbooleanInclude or not raw changes for every transaction in webhook defaults to falsefalsetruedescriptionstringA description for this streamdemobooleanIndicator if it is a demo streamfalsetrueallAddressesbooleanInclude events for all addresses (only applied when at least one event or function is provided)falsetrueResponses200 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: 'PUT', headers: { accept: 'application/json', 'X-API-Key': 'YOUR_API_KEY' },};fetch('https://api.moralis-streams.com/streams/aptos', 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"headers = { "Accept": "application/json", "X-API-Key": "YOUR_API_KEY"}response = requests.request("PUT", url, headers=headers)print(response.text)curl --request PUT \ --url 'https://api.moralis-streams.com/streams/aptos' \ --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" req, _ := http.NewRequest("PUT", 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('PUT', 'https://api.moralis-streams.com/streams/aptos', [ '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": ""}