View methods
getStreamId gets parsed result of stream an object with given id.
const result = await streamService.getStreamById({ streamId: "0" });getIncomingStreamsCount gets the parsed result of incoming streams of the given userId.
const params = {
userId: "",
limit: 10;
fromIndex: "0"
}
const result = await streamService.getIncomingStreamsCount(params);getOutgoingStreamsCount gets the parsed result of outgoing streams of the given userId.
const params = {
userId: "",
limit: 10;
fromIndex: "0"
}
const result = await streamService.getOutgoingStreamsCount()getStreamsByUser gets the parsed result of both incoming and outgoing streams of the given userId.
const params = {
userId: "",
limit: 10;
fromIndex: "0"
}
const result = await streamService.getStreamsByUser()getOutgoingStreamsCount gets the count of outgoing streams of the given userId.
const result = await streamService.getOutgoingStreamsCount({userId: ""}); getIncomingStreamsCount gets the count of incoming streams of the given userId.
const result = await streamService.getIncomingStreamsCount({userId: ""});getOutgoingOngoingTotalAmount gets the parsed result of both incoming and outgoing streams of the given userId and tokenId.
const params = {
userId: "",
contractId: "",
fromIndex: "100",
limit: 0,
};
const result = await streamService.getStreamsForToken(params )getStreamsTotalAmount gets the total amount of balance from outgoing and incoming streams for a given token.
const params = {
userId: "",
contractId: "",
fromIndex: "100",
limit: 0,
};
const totalAmount = await streamService.getStreamsTotalAmount();Last updated