|
483 | 483 | "/blocks/{block_ref}/extrinsics": { |
484 | 484 | "get": { |
485 | 485 | "tags": [ |
486 | | - "call" |
| 486 | + "extrinsic" |
487 | 487 | ], |
488 | 488 | "summary": "Get block extrinsics", |
489 | 489 | "description": "If a hash is passed, returns the extrinsics for the matching block. If a number is passed, gives the extrinsis for the block by that number - could be multiple blocks if there's a pruned block in that slot.", |
|
729 | 729 | "/blocks/{block_ref}/extrinsics/{extrinsic_index}/events": { |
730 | 730 | "get": { |
731 | 731 | "tags": [ |
732 | | - "call" |
| 732 | + "event" |
733 | 733 | ], |
734 | 734 | "summary": "Get block extrinsic events", |
735 | 735 | "description": "Returns the events for extrinsic in a block by block reference and 0-based extrinsic index.", |
|
1438 | 1438 | "operationId": "get_events", |
1439 | 1439 | "parameters": [ |
1440 | 1440 | { |
1441 | | - "name": "page", |
| 1441 | + "name": "next_cursor", |
1442 | 1442 | "in": "query", |
1443 | | - "description": "Events list page number to retrieve. 1-indexed.", |
| 1443 | + "description": "Opaque cursor for pagination. If provided, all filter params are ignored.", |
1444 | 1444 | "required": false, |
1445 | 1445 | "schema": { |
1446 | | - "type": "integer", |
1447 | | - "format": "int32", |
1448 | | - "default": 1, |
1449 | | - "minimum": 1 |
1450 | | - }, |
1451 | | - "example": 1 |
| 1446 | + "type": "string" |
| 1447 | + } |
1452 | 1448 | }, |
1453 | 1449 | { |
1454 | 1450 | "name": "page_size", |
|
1569 | 1565 | ], |
1570 | 1566 | "responses": { |
1571 | 1567 | "200": { |
1572 | | - "$ref": "#/components/responses/PaginatedEventList" |
| 1568 | + "$ref": "#/components/responses/CursorEventList" |
1573 | 1569 | }, |
1574 | 1570 | "400": { |
1575 | 1571 | "$ref": "#/components/responses/BadRequest" |
|
3541 | 3537 | "type": "object", |
3542 | 3538 | "description": "Call arguments wrapper." |
3543 | 3539 | }, |
| 3540 | + "CursorPaginationData": { |
| 3541 | + "type": "object", |
| 3542 | + "description": "Pagination data for cursor responses.", |
| 3543 | + "required": [ |
| 3544 | + "pageSize" |
| 3545 | + ], |
| 3546 | + "properties": { |
| 3547 | + "nextCursor": { |
| 3548 | + "type": [ |
| 3549 | + "string", |
| 3550 | + "null" |
| 3551 | + ], |
| 3552 | + "description": "Cursor for the next page, `null` if there's no next page." |
| 3553 | + }, |
| 3554 | + "pageSize": { |
| 3555 | + "type": "integer", |
| 3556 | + "format": "int32", |
| 3557 | + "description": "Number of items per cursor page.", |
| 3558 | + "example": 1, |
| 3559 | + "minimum": 1 |
| 3560 | + } |
| 3561 | + }, |
| 3562 | + "example": { |
| 3563 | + "nextCursor": "eyJjdXJzb3JfcG9zaXRpb24iOnsiYmxvY2tfbnVtYmVyIjozMzY0MzMzLCJibG9ja19oYXNoX2hleCI6IjB4ZjdlMjkyYWQ3ZDNkYzE4MzUzOWYwOGM4NDgwMmNiMDc2ZTc5NjNkYjA2NTA3MjAwNTY1M2NjNWU4YzdkMTE3MyIsImluZGV4IjowfSwicXVlcnkiOnsiaW5jbHVkZV9hcmdzIjpmYWxzZX19", |
| 3564 | + "pageSize": 1 |
| 3565 | + } |
| 3566 | + }, |
3544 | 3567 | "Error": { |
3545 | 3568 | "type": "object", |
3546 | 3569 | "description": "Generic error type.", |
|
4918 | 4941 | } |
4919 | 4942 | } |
4920 | 4943 | }, |
| 4944 | + "CursorEventList": { |
| 4945 | + "description": "List of matching events, with a cursor for the next page.", |
| 4946 | + "headers": { |
| 4947 | + "X-RateLimit-Limit": { |
| 4948 | + "schema": { |
| 4949 | + "type": "integer", |
| 4950 | + "format": "int32", |
| 4951 | + "minimum": 0 |
| 4952 | + } |
| 4953 | + }, |
| 4954 | + "X-RateLimit-Remaining": { |
| 4955 | + "schema": { |
| 4956 | + "type": "integer", |
| 4957 | + "format": "int32", |
| 4958 | + "minimum": 0 |
| 4959 | + } |
| 4960 | + } |
| 4961 | + }, |
| 4962 | + "content": { |
| 4963 | + "application/json": { |
| 4964 | + "schema": { |
| 4965 | + "type": "object", |
| 4966 | + "required": [ |
| 4967 | + "data", |
| 4968 | + "pagination" |
| 4969 | + ], |
| 4970 | + "properties": { |
| 4971 | + "data": { |
| 4972 | + "type": "array", |
| 4973 | + "items": { |
| 4974 | + "$ref": "#/components/schemas/Event" |
| 4975 | + }, |
| 4976 | + "example": [ |
| 4977 | + { |
| 4978 | + "args": { |
| 4979 | + "dispatchInfo": { |
| 4980 | + "class": { |
| 4981 | + "type": "Mandatory", |
| 4982 | + "value": [] |
| 4983 | + }, |
| 4984 | + "paysFee": { |
| 4985 | + "type": "Yes", |
| 4986 | + "value": [] |
| 4987 | + }, |
| 4988 | + "weight": { |
| 4989 | + "proofSize": "0", |
| 4990 | + "refTime": "125000000" |
| 4991 | + } |
| 4992 | + } |
| 4993 | + }, |
| 4994 | + "blockHash": "0x5c4de7f2cea658d5d3804d495e8246354f709735d371fd54caaf59e80181bcaa", |
| 4995 | + "blockNumber": 10758052, |
| 4996 | + "blockStatus": "proposed", |
| 4997 | + "blockTimestamp": 1765456362000, |
| 4998 | + "extrinsicHash": "0x6963ce866a54258d9d6ca9222060f7270a8f5f6b83eaac88e899bb73fbbb68cb", |
| 4999 | + "extrinsicIndex": 0, |
| 5000 | + "hash": "0x2c923bb54d06dfb649aaaf1c198eb1af9e19ec52b8e90267984496c128ee7adc", |
| 5001 | + "index": 1, |
| 5002 | + "palletEventIndex": 0, |
| 5003 | + "palletEventName": "ExtrinsicSuccess", |
| 5004 | + "palletIndex": 0, |
| 5005 | + "palletName": "System", |
| 5006 | + "phase": "ApplyExtrinsic", |
| 5007 | + "specVersion": 2000003, |
| 5008 | + "traceIndex": 78 |
| 5009 | + } |
| 5010 | + ] |
| 5011 | + }, |
| 5012 | + "pagination": { |
| 5013 | + "$ref": "#/components/schemas/CursorPaginationData" |
| 5014 | + } |
| 5015 | + } |
| 5016 | + } |
| 5017 | + } |
| 5018 | + } |
| 5019 | + }, |
4921 | 5020 | "EventList": { |
4922 | 5021 | "description": "List of matching events.", |
4923 | 5022 | "headers": { |
|
0 commit comments