Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key
Version: 2.0

Add address to stream

POSThttps://api.moralis-streams.com/streams/evm/:id/address

Adds an address to a Stream.

PATH PARAMS
idstringrequired
The id of the stream to add the address to
BODY PARAM
addressoneOfrequired
The address or a list of addresses to be added to the Stream.
string
Responses
API KEY
import Moralis from 'moralis';

try {
await Moralis.start({
apiKey: "YOUR_API_KEY"
});

const response = Moralis.Streams.addAddress({});

console.log(response.raw);
} catch (e) {
console.error(e);
}
Response Example
{
"streamId": "",
"address": ""
}