aboutsummaryrefslogblamecommitdiffstats
path: root/packages/json-schemas/schemas/subscription_opts_schema.ts
blob: a476e6963bd068c791b949b5c72d427b0db375f8 (plain) (tree)



















                                                    
export const blockParamSchema = {
    id: '/BlockParam',
    oneOf: [
        {
            type: 'number',
        },
        {
            enum: ['latest', 'earliest', 'pending'],
        },
    ],
};

export const subscriptionOptsSchema = {
    id: '/SubscriptionOpts',
    properties: {
        fromBlock: {$ref: '/BlockParam'},
        toBlock: {$ref: '/BlockParam'},
    },
    type: 'object',
};