Skip to main content

Module: @moralisweb3/common-streams-utils

moralis-monorepo / @moralisweb3/common-streams-utils

Module: @moralisweb3/common-streams-utils

Table of contents

Type Aliases

Interfaces

DataType Classes

DataTypexw Classes

Variables

Type Aliases

AddAddressAptosJSONRequest

Ƭ AddAddressAptosJSONRequest: ReturnType<typeof serializeRequest>


AddAddressAptosJSONResponse

Ƭ AddAddressAptosJSONResponse: SuccessResponse


AddAddressAptosResponse

Ƭ AddAddressAptosResponse: ReturnType<typeof deserializeResponse>


AddAddressEvmJSONRequest

Ƭ AddAddressEvmJSONRequest: ReturnType<typeof serializeRequest>


AddAddressEvmJSONResponse

Ƭ AddAddressEvmJSONResponse: SuccessResponse


AddAddressEvmResponse

Ƭ AddAddressEvmResponse: ReturnType<typeof deserializeResponse>


AptosStreamJSON

Ƭ AptosStreamJSON: Object

Type declaration

NameType
allAddressesboolean
amountOfAddressesnumber
demoboolean
descriptionstring
eventsstring[]
functionsstring[]
idstring
includeChangesboolean
includeEventsboolean
includePayloadboolean
isErrorSincestring | null
networkstring[]
statusStreamStatus
statusMessagestring
tagstring
webhookUrlstring

AptosStreamish

Ƭ AptosStreamish: AptosStreamInput | AptosStream


CreateStreamAptosJSONRequest

Ƭ CreateStreamAptosJSONRequest: ReturnType<typeof serializeRequest>


CreateStreamAptosJSONResponse

Ƭ CreateStreamAptosJSONResponse: SuccessResponse


CreateStreamAptosResponse

Ƭ CreateStreamAptosResponse: ReturnType<typeof deserializeResponse>


CreateStreamEvmJSONRequest

Ƭ CreateStreamEvmJSONRequest: ReturnType<typeof serializeRequest>


CreateStreamEvmJSONResponse

Ƭ CreateStreamEvmJSONResponse: SuccessResponse


CreateStreamEvmResponse

Ƭ CreateStreamEvmResponse: ReturnType<typeof deserializeResponse>


DeleteAddressAptosJSONRequest

Ƭ DeleteAddressAptosJSONRequest: ReturnType<typeof serializeRequest>


DeleteAddressAptosJSONResponse

Ƭ DeleteAddressAptosJSONResponse: SuccessResponse


DeleteAddressAptosResponse

Ƭ DeleteAddressAptosResponse: ReturnType<typeof deserializeResponse>


DeleteAddressEvmJSONRequest

Ƭ DeleteAddressEvmJSONRequest: ReturnType<typeof serializeRequest>


DeleteAddressEvmJSONResponse

Ƭ DeleteAddressEvmJSONResponse: SuccessResponse


DeleteAddressEvmResponse

Ƭ DeleteAddressEvmResponse: ReturnType<typeof deserializeResponse>


DeleteStreamAptosJSONRequest

Ƭ DeleteStreamAptosJSONRequest: ReturnType<typeof serializeRequest>


DeleteStreamAptosJSONResponse

Ƭ DeleteStreamAptosJSONResponse: SuccessResponse


DeleteStreamAptosResponse

Ƭ DeleteStreamAptosResponse: ReturnType<typeof deserializeResponse>


DeleteStreamEvmJSONRequest

Ƭ DeleteStreamEvmJSONRequest: ReturnType<typeof serializeRequest>


DeleteStreamEvmJSONResponse

Ƭ DeleteStreamEvmJSONResponse: SuccessResponse


DeleteStreamEvmResponse

Ƭ DeleteStreamEvmResponse: ReturnType<typeof deserializeResponse>


EvmAbi

Ƭ EvmAbi: any[]


EvmStreamAdvancedOptions

Ƭ EvmStreamAdvancedOptions: Object

Type declaration

NameType
filter?Record<string, any>
includeNativeTxs?boolean
topic0string

EvmStreamJSON

Ƭ EvmStreamJSON: Object

Type declaration

NameType
abi?EvmAbi
advancedOptions?EvmStreamAdvancedOptions[]
allAddressesboolean
chainIds(string | number)[]
descriptionstring
getNativeBalances?{ selectors: string[] ; type: GetNativeBalanceType }[]
idstring
includeAllTxLogsboolean
includeContractLogsboolean
includeInternalTxsboolean
includeNativeTxsboolean
statusstring
statusMessagestring
tagstring
topic0?string[]
triggers?StreamTriggerJSON[]
webhookUrlstring

EvmStreamResultInput

Ƭ EvmStreamResultInput: IWebhook


EvmStreamResultish

Ƭ EvmStreamResultish: EvmStreamResultInput | EvmStreamResult


EvmStreamish

Ƭ EvmStreamish: EvmStreamInput | EvmStream


GetAddressesAptosJSONRequest

Ƭ GetAddressesAptosJSONRequest: ReturnType<typeof serializeRequest>


GetAddressesAptosJSONResponse

Ƭ GetAddressesAptosJSONResponse: SuccessResponse


GetAddressesAptosResponse

Ƭ GetAddressesAptosResponse: ReturnType<typeof deserializeResponse>


GetAddressesEvmJSONRequest

Ƭ GetAddressesEvmJSONRequest: ReturnType<typeof serializeRequest>


GetAddressesEvmJSONResponse

Ƭ GetAddressesEvmJSONResponse: SuccessResponse


GetAddressesEvmResponse

Ƭ GetAddressesEvmResponse: ReturnType<typeof deserializeResponse>


GetHistoryJSONRequest

Ƭ GetHistoryJSONRequest: ReturnType<typeof serializeRequest>


GetHistoryJSONResponse

Ƭ GetHistoryJSONResponse: SuccessResponse


GetHistoryResponse

Ƭ GetHistoryResponse: ReturnType<typeof deserializeResponse>


GetLogsJSONRequest

Ƭ GetLogsJSONRequest: ReturnType<typeof serializeRequest>


GetLogsJSONResponse

Ƭ GetLogsJSONResponse: SuccessResponse


GetLogsResponse

Ƭ GetLogsResponse: ReturnType<typeof deserializeResponse>


GetNativeBalanceType

Ƭ GetNativeBalanceType: "tx" | "log" | "erc20transfer" | "erc20approval" | "nfttransfer" | "internalTx"


GetSettingsJSONRequest

Ƭ GetSettingsJSONRequest: undefined


GetSettingsJSONResponse

Ƭ GetSettingsJSONResponse: SuccessResponse


GetSettingsResponse

Ƭ GetSettingsResponse: ReturnType<typeof deserializeResponse>


GetStatsByIdJSONRequest

Ƭ GetStatsByIdJSONRequest: ReturnType<typeof serializeRequest>


GetStatsByIdJSONResponse

Ƭ GetStatsByIdJSONResponse: SuccessResponse


GetStatsByIdResponse

Ƭ GetStatsByIdResponse: ReturnType<typeof deserializeResponse>


GetStatsJSONRequest

Ƭ GetStatsJSONRequest: undefined


GetStatsJSONResponse

Ƭ GetStatsJSONResponse: SuccessResponse


GetStatsResponse

Ƭ GetStatsResponse: ReturnType<typeof deserializeResponse>


GetStreamAptosJSONRequest

Ƭ GetStreamAptosJSONRequest: ReturnType<typeof serializeRequest>


GetStreamAptosJSONResponse

Ƭ GetStreamAptosJSONResponse: SuccessResponse


GetStreamAptosResponse

Ƭ GetStreamAptosResponse: ReturnType<typeof deserializeResponse>


GetStreamEvmJSONRequest

Ƭ GetStreamEvmJSONRequest: ReturnType<typeof serializeRequest>


GetStreamEvmJSONResponse

Ƭ GetStreamEvmJSONResponse: SuccessResponse


GetStreamEvmResponse

Ƭ GetStreamEvmResponse: ReturnType<typeof deserializeResponse>


GetStreamsAptosJSONRequest

Ƭ GetStreamsAptosJSONRequest: ReturnType<typeof serializeRequest>


GetStreamsAptosJSONResponse

Ƭ GetStreamsAptosJSONResponse: SuccessResponse


GetStreamsAptosResponse

Ƭ GetStreamsAptosResponse: ReturnType<typeof deserializeResponse>


GetStreamsEvmJSONRequest

Ƭ GetStreamsEvmJSONRequest: ReturnType<typeof serializeRequest>


GetStreamsEvmJSONResponse

Ƭ GetStreamsEvmJSONResponse: SuccessResponse


GetStreamsEvmResponse

Ƭ GetStreamsEvmResponse: ReturnType<typeof deserializeResponse>


ReplayHistoryJSONRequest

Ƭ ReplayHistoryJSONRequest: ReturnType<typeof serializeRequest>


ReplayHistoryJSONResponse

Ƭ ReplayHistoryJSONResponse: SuccessResponse


ReplayHistoryResponse

Ƭ ReplayHistoryResponse: ReturnType<typeof deserializeResponse>


SetSettingsJSONRequest

Ƭ SetSettingsJSONRequest: ReturnType<typeof serializeRequest>


SetSettingsJSONResponse

Ƭ SetSettingsJSONResponse: SuccessResponse


SetSettingsResponse

Ƭ SetSettingsResponse: ReturnType<typeof deserializeResponse>


StreamErc1155ApprovalJSON

Ƭ StreamErc1155ApprovalJSON: Object

Type declaration

NameType
accountstring
approvedboolean
chainnumber | string
contractstring
logIndexnumber | string
operatorstring
tokenContractTypestring
tokenNamestring
tokenSymbolstring
transactionHashstring
triggers?StreamTriggerOutputJSON[]

StreamErc1155Approvalish

Ƭ StreamErc1155Approvalish: StreamErc1155ApprovalInput | StreamErc1155Approval


StreamErc20ApprovalJSON

Ƭ StreamErc20ApprovalJSON: Object

Type declaration

NameType
chainnumber | string
contractstring
logIndexstring | number
ownerstring
spenderstring
tokenDecimals?number
tokenNamestring
tokenSymbolstring
transactionHashstring
triggers?StreamTriggerOutputJSON[]
valuestring
valueWithDecimals?string

StreamErc20Approvalish

Ƭ StreamErc20Approvalish: StreamErc20ApprovalInput | StreamErc20Approval


StreamErc20TransferJSON

Ƭ StreamErc20TransferJSON: Object

Type declaration

NameType
chainnumber | string
contractstring
fromstring
logIndexstring | number
tostring
tokenDecimals?number
tokenNamestring
tokenSymbolstring
transactionHashstring
triggers?StreamTriggerOutputJSON[]
valuestring
valueWithDecimals?string

StreamErc20Transferish

Ƭ StreamErc20Transferish: StreamErc20TransferInput | StreamErc20Transfer


StreamErc721ApprovalJSON

Ƭ StreamErc721ApprovalJSON: Object

Type declaration

NameType
approvedstring
chainnumber | string
contractstring
logIndexnumber
ownerstring
tokenContractTypestring
tokenIdstring
tokenNamestring
tokenSymbolstring
transactionHashstring
triggers?StreamTriggerOutputJSON[]

StreamErc721Approvalish

Ƭ StreamErc721Approvalish: StreamErc721ApprovalInput | StreamErc721Approval


StreamEvmInternalTransactionJSON

Ƭ StreamEvmInternalTransactionJSON: Object

Type declaration

NameType
chainstring | number
from?string
gas?string
to?string
transactionHashstring
triggers?StreamTriggerOutputJSON[]
value?string

StreamEvmInternalTransactionish

Ƭ StreamEvmInternalTransactionish: StreamEvmInternalTransactionInput | StreamEvmInternalTransaction


StreamEvmNftTokenApprovalData

Ƭ StreamEvmNftTokenApprovalData: INFTApproval & { chain: EvmChain }


StreamEvmNftTokenApprovalish

Ƭ StreamEvmNftTokenApprovalish: INFTApproval & { chain: EvmChainish }


StreamEvmNftTransferJSON

Ƭ StreamEvmNftTransferJSON: Object

Type declaration

NameType
amountnumber
chainstring | number
contractstring
fromstring
logIndexnumber
operator?string
tostring
tokenContractTypestring
tokenIdstring
tokenNamestring
tokenSymbolstring
transactionHashstring
triggers?StreamTriggerOutputJSON[]

StreamEvmTransactionJSON

Ƭ StreamEvmTransactionJSON: Object

Type declaration

NameType
chainstring | number
fromAddressstring
gas?string
gasPrice?string
hashstring
input?string
nonce?string
r?string
receiptContractAddress?string
receiptCumulativeGasUsed?string
receiptGasUsed?string
receiptRoot?string
receiptStatus?number
s?string
toAddress?string
transactionIndexnumber
triggers?StreamTriggerOutputJSON[]
type?number
v?number
value?string

StreamEvmTransactionLogJSON

Ƭ StreamEvmTransactionLogJSON: Object

Type declaration

NameType
addressstring
chainstring | number
datastring
logIndexnumber
topic0?string
topic1?string
topic2?string
topic3?string
transactionHashstring
triggers?StreamTriggerOutputJSON[]

StreamStatus

Ƭ StreamStatus: "active" | "paused" | "error" | "terminated"


StreamTriggerJSON

Ƭ StreamTriggerJSON: Object

Type declaration

NameType
callFrom?string
contractAddressstring
functionAbiany
inputs?(string | string[])[]
topic0?string
type"tx" | "log" | "erc20transfer" | "erc20approval" | "nfttransfer"

StreamTriggerOutputJSON

Ƭ StreamTriggerOutputJSON: Object

Type declaration

NameType
namestring
valuestring

StreamTriggerOutputish

Ƭ StreamTriggerOutputish: StreamTriggerOutput | StreamTriggerOutputInput | StreamTriggerOutputData


StreamTriggerish

Ƭ StreamTriggerish: StreamTrigger | StreamTriggerInput | StreamTriggerData


UpdateStreamAptosJSONRequest

Ƭ UpdateStreamAptosJSONRequest: ReturnType<typeof serializeRequest>


UpdateStreamAptosJSONResponse

Ƭ UpdateStreamAptosJSONResponse: SuccessResponse


UpdateStreamAptosResponse

Ƭ UpdateStreamAptosResponse: ReturnType<typeof deserializeResponse>


UpdateStreamEvmJSONRequest

Ƭ UpdateStreamEvmJSONRequest: ReturnType<typeof serializeRequest>


UpdateStreamEvmJSONResponse

Ƭ UpdateStreamEvmJSONResponse: SuccessResponse


UpdateStreamEvmResponse

Ƭ UpdateStreamEvmResponse: ReturnType<typeof deserializeResponse>


UpdateStreamStatusAptosJSONRequest

Ƭ UpdateStreamStatusAptosJSONRequest: ReturnType<typeof serializeRequest>


UpdateStreamStatusAptosJSONResponse

Ƭ UpdateStreamStatusAptosJSONResponse: SuccessResponse


UpdateStreamStatusAptosResponse

Ƭ UpdateStreamStatusAptosResponse: ReturnType<typeof deserializeResponse>


UpdateStreamStatusEvmJSONRequest

Ƭ UpdateStreamStatusEvmJSONRequest: ReturnType<typeof serializeRequest>


UpdateStreamStatusEvmJSONResponse

Ƭ UpdateStreamStatusEvmJSONResponse: SuccessResponse


UpdateStreamStatusEvmResponse

Ƭ UpdateStreamStatusEvmResponse: ReturnType<typeof deserializeResponse>

Variables

addAddressAptosOperation

Const addAddressAptosOperation: Operation<AddAddressAptosRequest, AddAddressAptosJSONRequest, AddAddressAptosResponse, AddAddressAptosJSONResponse>


addAddressEvmOperation

Const addAddressEvmOperation: Operation<AddAddressEvmRequest, AddAddressEvmJSONRequest, AddAddressEvmResponse, AddAddressEvmJSONResponse>


createStreamAptosOperation

Const createStreamAptosOperation: Operation<CreateStreamAptosRequest, CreateStreamAptosJSONRequest, CreateStreamAptosResponse, CreateStreamAptosJSONResponse>


createStreamEvmOperation

Const createStreamEvmOperation: Operation<CreateStreamEvmRequest, CreateStreamEvmJSONRequest, CreateStreamEvmResponse, CreateStreamEvmJSONResponse>


deleteAddressAptosOperation

Const deleteAddressAptosOperation: Operation<DeleteAddressAptosRequest, DeleteAddressAptosJSONRequest, DeleteAddressAptosResponse, DeleteAddressAptosJSONResponse>


deleteAddressEvmOperation

Const deleteAddressEvmOperation: Operation<DeleteAddressEvmRequest, DeleteAddressEvmJSONRequest, DeleteAddressEvmResponse, DeleteAddressEvmJSONResponse>


deleteStreamAptosOperation

Const deleteStreamAptosOperation: Operation<DeleteStreamAptosRequest, DeleteStreamAptosJSONRequest, DeleteStreamAptosResponse, DeleteStreamAptosJSONResponse>


deleteStreamEvmOperation

Const deleteStreamEvmOperation: Operation<DeleteStreamEvmRequest, DeleteStreamEvmJSONRequest, DeleteStreamEvmResponse, DeleteStreamEvmJSONResponse>


getAddressesAptosOperation

Const getAddressesAptosOperation: PaginatedOperation<GetAddressesAptosRequest, GetAddressesAptosJSONRequest, GetAddressesAptosResponse, GetAddressesAptosJSONResponse["result"]>


getAddressesEvmOperation

Const getAddressesEvmOperation: PaginatedOperation<GetAddressesEvmRequest, GetAddressesEvmJSONRequest, any[], GetAddressesEvmJSONResponse["result"]>


getHistoryOperation

Const getHistoryOperation: PaginatedOperation<GetHistoryRequest, GetHistoryJSONRequest, any[], GetHistoryJSONResponse["result"]>


getLogsOperation

Const getLogsOperation: PaginatedOperation<GetLogsRequest, GetLogsJSONRequest, any[], GetLogsJSONResponse["result"]>


getSettingsOperation

Const getSettingsOperation: Operation<GetSettingsRequest, GetSettingsJSONRequest, GetSettingsResponse, GetSettingsJSONResponse>


getStatsByIdOperation

Const getStatsByIdOperation: Operation<GetStatsByIdRequest, GetStatsByIdJSONRequest, GetStatsByIdResponse, GetStatsByIdJSONResponse>


getStatsOperation

Const getStatsOperation: Operation<GetStatsRequest, GetStatsJSONRequest, GetStatsResponse, GetStatsJSONResponse>


getStreamAptosOperation

Const getStreamAptosOperation: Operation<GetStreamAptosRequest, GetStreamAptosJSONRequest, GetStreamAptosResponse, GetStreamAptosJSONResponse>


getStreamEvmOperation

Const getStreamEvmOperation: Operation<GetStreamEvmRequest, GetStreamEvmJSONRequest, GetStreamEvmResponse, GetStreamEvmJSONResponse>


getStreamsAptosOperation

Const getStreamsAptosOperation: PaginatedOperation<GetStreamsAptosRequest, GetStreamsAptosJSONRequest, any[], GetStreamsAptosJSONResponse["result"]>


getStreamsEvmOperation

Const getStreamsEvmOperation: PaginatedOperation<GetStreamsEvmRequest, GetStreamsEvmJSONRequest, any[], GetStreamsEvmJSONResponse["result"]>


replayHistoryOperation

Const replayHistoryOperation: Operation<ReplayHistoryRequest, ReplayHistoryJSONRequest, ReplayHistoryResponse, ReplayHistoryJSONResponse>


setSettingsOperation

Const setSettingsOperation: Operation<SetSettingsRequest, SetSettingsJSONRequest, SetSettingsResponse, SetSettingsJSONResponse>


updateStreamAptosOperation

Const updateStreamAptosOperation: Operation<UpdateStreamAptosRequest, UpdateStreamAptosJSONRequest, UpdateStreamAptosResponse, UpdateStreamAptosJSONResponse>


updateStreamEvmOperation

Const updateStreamEvmOperation: Operation<UpdateStreamEvmRequest, UpdateStreamEvmJSONRequest, UpdateStreamEvmResponse, UpdateStreamEvmJSONResponse>


updateStreamStatusAptosOperation

Const updateStreamStatusAptosOperation: Operation<UpdateStreamStatusAptosRequest, UpdateStreamStatusAptosJSONRequest, UpdateStreamStatusAptosResponse, UpdateStreamStatusAptosJSONResponse>


updateStreamStatusEvmOperation

Const updateStreamStatusEvmOperation: Operation<UpdateStreamStatusEvmRequest, UpdateStreamStatusEvmJSONRequest, UpdateStreamStatusEvmResponse, UpdateStreamStatusEvmJSONResponse>