@sentio/sdkType aliases

HandlerOptions

Type Alias in @sentio/sdk

Defined in @sentio/sdk

type HandlerOptions<F, D> = Omit<Partial<F>, "$typeName" | "$unknown"> & object;

Handler options that extend fetch configuration with optional partitioning support.

Type Declaration

NameTypeDescription
partitionKey?string | PartitionHandler<D>Optional partition key for data partitioning. Can be a static string or a function that computes the key from the data.
skipDecoding?booleanOptional whether to skip decoding By default the processor will do decoding (e.g. replace string number to bigint, byte array to base64, etc), however in some case you might skip the decoding (meaning no data_decoded field) and only access the raw data field

Type Parameters

Type ParameterDescription
FThe fetch configuration type (e.g., EthFetchConfig, MoveFetchConfig)
DThe data type that will be processed (e.g., Event, Transaction, Block)

On this page