21 lines
391 B
TypeScript
21 lines
391 B
TypeScript
export const blockParamSchema = {
|
|
id: '/BlockParam',
|
|
oneOf: [
|
|
{
|
|
type: 'number',
|
|
},
|
|
{
|
|
enum: ['latest', 'earliest', 'pending'],
|
|
},
|
|
],
|
|
};
|
|
|
|
export const blockRangeSchema = {
|
|
id: '/BlockRange',
|
|
properties: {
|
|
fromBlock: {$ref: '/BlockParam'},
|
|
toBlock: {$ref: '/BlockParam'},
|
|
},
|
|
type: 'object',
|
|
};
|