diff --git a/docs/rpc/transaction/experimental-receipt-to-tx.mdx b/docs/rpc/transaction/experimental-receipt-to-tx.mdx new file mode 100644 index 00000000..a1155a92 --- /dev/null +++ b/docs/rpc/transaction/experimental-receipt-to-tx.mdx @@ -0,0 +1,16 @@ +--- +title: Receipt to Transaction (Experimental) +description: Resolve a receipt ID to the transaction hash and signer that produced it on the NEAR blockchain +slug: /rpc/transaction/experimental-receipt-to-tx +sidebar_position: 7 +hide_table_of_contents: true +--- + +import FastnearDirectOperation from '@site/src/components/FastnearDirectOperation'; + +# Receipt to Transaction (Experimental) + +`EXPERIMENTAL_receipt_to_tx` request type + + + diff --git a/i18n/ru/docusaurus-plugin-content-docs/current/rpc/transaction/experimental-receipt-to-tx.mdx b/i18n/ru/docusaurus-plugin-content-docs/current/rpc/transaction/experimental-receipt-to-tx.mdx new file mode 100644 index 00000000..9fa40f08 --- /dev/null +++ b/i18n/ru/docusaurus-plugin-content-docs/current/rpc/transaction/experimental-receipt-to-tx.mdx @@ -0,0 +1,16 @@ +--- +title: "Квитанция → транзакция (экспериментальный)" +description: "По ID квитанции получите хеш транзакции и подписавший её аккаунт в блокчейне NEAR." +slug: /rpc/transaction/experimental-receipt-to-tx +sidebar_position: 7 +hide_table_of_contents: true +--- + +import FastnearDirectOperation from '@site/src/components/FastnearDirectOperation'; + +# Квитанция → транзакция (экспериментальный) + +`EXPERIMENTAL_receipt_to_tx` — тип запроса. + + + diff --git a/scripts/audit-generated-page-models.js b/scripts/audit-generated-page-models.js index f1991197..bf1b9215 100644 --- a/scripts/audit-generated-page-models.js +++ b/scripts/audit-generated-page-models.js @@ -11,7 +11,7 @@ const EXPECTED_FAMILY_COUNTS = { "rpcs/block": 3, "rpcs/contract": 5, "rpcs/protocol": 20, - "rpcs/transaction": 6, + "rpcs/transaction": 7, "rpcs/validators": 3, "apis/fastnear": 14, "apis/kv-fastdata": 9, diff --git a/sidebars.js b/sidebars.js index 34f4e621..6dd58a09 100644 --- a/sidebars.js +++ b/sidebars.js @@ -155,6 +155,7 @@ const rpcSidebar = withExamplesFooter( 'rpc/transaction/broadcast-tx-commit', 'rpc/transaction/experimental-receipt', 'rpc/transaction/experimental-tx-status', + 'rpc/transaction/experimental-receipt-to-tx', ], }, { diff --git a/src/data/generatedFastnearPageModels.json b/src/data/generatedFastnearPageModels.json index 64f8eefd..bb33a7dc 100644 --- a/src/data/generatedFastnearPageModels.json +++ b/src/data/generatedFastnearPageModels.json @@ -11883,6 +11883,353 @@ ], "sourceSpec": "rpcs/transaction/EXPERIMENTAL_receipt.yaml" }, + { + "canonicalPath": "/rpcs/transaction/EXPERIMENTAL_receipt_to_tx", + "info": { + "description": "Resolve a receipt ID to the transaction hash and signer that produced it. Requires a node with `save_receipt_to_tx` enabled; unindexed receipts return `UNKNOWN_RECEIPT`.", + "operationId": "EXPERIMENTAL_receipt_to_tx", + "summary": "Resolve receipt to transaction", + "title": "NEAR Protocol RPC: Resolve receipt to transaction", + "version": "1.0.0" + }, + "interaction": { + "authTransport": "bearer", + "defaultId": "fastnear", + "fields": [ + { + "description": "Optional hint: block height near where the receipt was created, to bound the fallback scan.", + "label": "Block Height", + "location": "body", + "name": "block_height", + "required": false, + "schema": { + "type": "integer", + "nullable": true, + "description": "Optional hint: block height near where the receipt was created, to bound the fallback scan.", + "format": "uint64" + } + }, + { + "description": "Base58-encoded receipt ID to resolve to its originating transaction.", + "label": "Receipt Id", + "location": "body", + "name": "receipt_id", + "required": true, + "schema": { + "type": "string", + "description": "Base58-encoded receipt ID to resolve to its originating transaction." + } + }, + { + "description": "Optional hint: shard to scan at the hint height; omit to scan all tracked shards.", + "label": "Shard Id", + "location": "body", + "name": "shard_id", + "required": false, + "schema": { + "type": "integer", + "nullable": true, + "description": "Optional hint: shard to scan at the hint height; omit to scan all tracked shards." + } + }, + { + "description": "Optional hint: ± block-height window scanned around the hint before walking ancestor blocks.", + "label": "Window", + "location": "body", + "name": "window", + "required": false, + "schema": { + "type": "integer", + "nullable": true, + "description": "Optional hint: ± block-height window scanned around the hint before walking ancestor blocks.", + "format": "uint64" + } + } + ], + "kind": "rpc-EXPERIMENTAL-receipt-to-tx", + "networks": [ + { + "defaultFields": { + "receipt_id": "FcFKrKQziMPCgYMFiLMZwecBtA7vqxdkatkhc1j3GYj8" + }, + "key": "mainnet", + "label": "Mainnet", + "url": "https://rpc.mainnet.fastnear.com" + }, + { + "defaultFields": { + "receipt_id": "ExampleReceiptId", + "shard_id": 0 + }, + "key": "testnet", + "label": "Testnet", + "url": "https://rpc.testnet.fastnear.com" + } + ], + "requestMethod": "EXPERIMENTAL_receipt_to_tx", + "supportsFinality": false, + "transport": "json-rpc" + }, + "pageModelId": "rpc-EXPERIMENTAL-receipt-to-tx", + "replaceOperationPage": true, + "request": { + "bodySchema": { + "type": "object", + "required": [ + "jsonrpc", + "id", + "method", + "params" + ], + "properties": [ + { + "name": "jsonrpc", + "required": true, + "schema": { + "type": "string", + "enum": [ + "2.0" + ] + } + }, + { + "name": "id", + "required": true, + "schema": { + "type": "string", + "example": "fastnear" + } + }, + { + "name": "method", + "required": true, + "schema": { + "type": "string", + "enum": [ + "EXPERIMENTAL_receipt_to_tx" + ] + } + }, + { + "name": "params", + "required": true, + "schema": { + "type": "object", + "required": [ + "receipt_id" + ], + "properties": [ + { + "name": "block_height", + "required": false, + "schema": { + "type": "integer", + "nullable": true, + "description": "Optional hint: block height near where the receipt was created, to bound the fallback scan.", + "format": "uint64" + } + }, + { + "name": "receipt_id", + "required": true, + "schema": { + "type": "string", + "description": "Base58-encoded receipt ID to resolve to its originating transaction." + } + }, + { + "name": "shard_id", + "required": false, + "schema": { + "type": "integer", + "nullable": true, + "description": "Optional hint: shard to scan at the hint height; omit to scan all tracked shards." + } + }, + { + "name": "window", + "required": false, + "schema": { + "type": "integer", + "nullable": true, + "description": "Optional hint: ± block-height window scanned around the hint before walking ancestor blocks.", + "format": "uint64" + } + } + ] + } + } + ] + }, + "examples": [ + { + "id": "mainnet", + "label": "Resolve receipt to transaction (Mainnet)", + "network": "mainnet", + "request": { + "body": { + "jsonrpc": "2.0", + "id": "fastnear", + "method": "EXPERIMENTAL_receipt_to_tx", + "params": { + "receipt_id": "FcFKrKQziMPCgYMFiLMZwecBtA7vqxdkatkhc1j3GYj8" + } + }, + "headers": {}, + "path": {}, + "query": {} + } + }, + { + "id": "testnet", + "label": "Resolve receipt to transaction (Testnet)", + "network": "testnet", + "request": { + "body": { + "jsonrpc": "2.0", + "id": "fastnear", + "method": "EXPERIMENTAL_receipt_to_tx", + "params": { + "block_height": null, + "receipt_id": "ExampleReceiptId", + "shard_id": 0, + "window": null + } + }, + "headers": {}, + "path": {}, + "query": {} + } + } + ], + "mediaType": "application/json", + "parameters": { + "header": [], + "path": [], + "query": [] + }, + "required": true + }, + "responses": [ + { + "description": "Successful response", + "mediaType": "application/json", + "schema": { + "type": "object", + "required": [ + "jsonrpc", + "id" + ], + "properties": [ + { + "name": "jsonrpc", + "required": true, + "schema": { + "type": "string", + "enum": [ + "2.0" + ] + } + }, + { + "name": "id", + "required": true, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + } + ] + } + }, + { + "name": "result", + "required": false, + "schema": { + "type": "object", + "required": [ + "transaction_hash", + "sender_account_id" + ], + "properties": [ + { + "name": "sender_account_id", + "required": true, + "schema": { + "type": "string", + "description": "NEAR account ID" + } + }, + { + "name": "transaction_hash", + "required": true, + "schema": { + "type": "string", + "description": "Base58-encoded hash" + } + } + ] + } + }, + { + "name": "error", + "required": false, + "schema": { + "type": "object", + "properties": [ + { + "name": "code", + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "message", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "data", + "required": false, + "schema": { + "type": "object" + } + } + ] + } + } + ], + "refName": "JsonRpcResponse" + }, + "status": "200" + } + ], + "route": { + "method": "POST", + "path": "/", + "transport": "json-rpc" + }, + "routeAliases": [ + "/rpcs/transaction/EXPERIMENTAL_receipt_to_tx/other/EXPERIMENTAL_receipt_to_tx", + "/reference/operation/EXPERIMENTAL_receipt_to_tx" + ], + "securitySchemes": [ + { + "description": "The OpenAPI contract describes the FastNEAR API key as a query parameter named apiKey.", + "id": "ApiKeyAuth", + "in": "query", + "name": "apiKey", + "type": "apiKey" + } + ], + "sourceSpec": "rpcs/transaction/EXPERIMENTAL_receipt_to_tx.yaml" + }, { "canonicalPath": "/rpcs/transaction/EXPERIMENTAL_tx_status", "info": { @@ -17608,7 +17955,7 @@ } } ], - "refName": "ApiError" + "refName": "ErrorResponse" }, "status": "400" }, @@ -17630,7 +17977,7 @@ } } ], - "refName": "ApiError" + "refName": "ErrorResponse" }, "status": "500" } @@ -17986,7 +18333,7 @@ } } ], - "refName": "ApiError" + "refName": "ErrorResponse" }, "status": "400" }, @@ -18008,7 +18355,7 @@ } } ], - "refName": "ApiError" + "refName": "ErrorResponse" }, "status": "500" } @@ -18410,7 +18757,7 @@ } } ], - "refName": "ApiError" + "refName": "ErrorResponse" }, "status": "400" }, @@ -18432,7 +18779,7 @@ } } ], - "refName": "ApiError" + "refName": "ErrorResponse" }, "status": "500" } @@ -18859,7 +19206,7 @@ } } ], - "refName": "ApiError" + "refName": "ErrorResponse" }, "status": "400" }, @@ -18881,7 +19228,7 @@ } } ], - "refName": "ApiError" + "refName": "ErrorResponse" }, "status": "500" } @@ -19182,7 +19529,7 @@ } } ], - "refName": "ApiError" + "refName": "ErrorResponse" }, "status": "500" } @@ -19558,7 +19905,7 @@ } } ], - "refName": "ApiError" + "refName": "ErrorResponse" }, "status": "400" }, @@ -19580,7 +19927,7 @@ } } ], - "refName": "ApiError" + "refName": "ErrorResponse" }, "status": "500" } @@ -19981,7 +20328,7 @@ } } ], - "refName": "ApiError" + "refName": "ErrorResponse" }, "status": "400" }, @@ -20003,7 +20350,7 @@ } } ], - "refName": "ApiError" + "refName": "ErrorResponse" }, "status": "500" } @@ -20304,7 +20651,7 @@ } } ], - "refName": "ApiError" + "refName": "ErrorResponse" }, "status": "500" } @@ -20606,7 +20953,7 @@ } } ], - "refName": "ApiError" + "refName": "ErrorResponse" }, "status": "400" }, @@ -20628,7 +20975,7 @@ } } ], - "refName": "ApiError" + "refName": "ErrorResponse" }, "status": "500" } diff --git a/src/data/generatedFastnearStructuredGraph.json b/src/data/generatedFastnearStructuredGraph.json index db664da4..23b1177f 100644 --- a/src/data/generatedFastnearStructuredGraph.json +++ b/src/data/generatedFastnearStructuredGraph.json @@ -1008,6 +1008,20 @@ ], "pageModelId": "rpc-EXPERIMENTAL-receipt" }, + { + "canonicalPath": "/rpcs/transaction/EXPERIMENTAL_receipt_to_tx", + "items": [ + { + "label": "Transaction RPC", + "path": "/rpc" + }, + { + "label": "Resolve receipt to transaction", + "path": "/rpcs/transaction/EXPERIMENTAL_receipt_to_tx" + } + ], + "pageModelId": "rpc-EXPERIMENTAL-receipt-to-tx" + }, { "canonicalPath": "/rpcs/transaction/EXPERIMENTAL_tx_status", "items": [ @@ -1210,7 +1224,7 @@ "branch": "HEAD", "commitSha": "499283a5e3a6f8ea52bc068c28e3a7bebb1e38c0", "dirty": true, - "generatedAt": "2026-07-14T21:45:20.697Z", + "generatedAt": "2026-07-14T21:02:40.181Z", "releaseUrl": "https://github.com/near/nearcore/releases/tag/2.13.0", "repoRoot": "../nearcore", "repoUrl": "https://github.com/near/nearcore", @@ -3127,6 +3141,33 @@ "summary": "Get receipt by ID", "transport": "json-rpc" }, + { + "authSummary": "API key via query apiKey", + "canonicalPath": "/rpcs/transaction/EXPERIMENTAL_receipt_to_tx", + "description": "Resolve a receipt ID to the transaction hash and signer that produced it. Requires a node with `save_receipt_to_tx` enabled; unindexed receipts return `UNKNOWN_RECEIPT`.", + "docsPath": "/rpc/transaction/experimental-receipt-to-tx", + "familyId": "rpc-transaction", + "headline": "NEAR Protocol RPC: Resolve receipt to transaction", + "httpMethod": "POST", + "id": "rpc-EXPERIMENTAL-receipt-to-tx", + "name": "NEAR Protocol RPC: Resolve receipt to transaction", + "networkKeys": [ + "mainnet", + "testnet" + ], + "operationId": "EXPERIMENTAL_receipt_to_tx", + "pageModelId": "rpc-EXPERIMENTAL-receipt-to-tx", + "requestPath": "/", + "requestType": null, + "routeAliases": [ + "/rpcs/transaction/EXPERIMENTAL_receipt_to_tx/other/EXPERIMENTAL_receipt_to_tx", + "/reference/operation/EXPERIMENTAL_receipt_to_tx" + ], + "schemaType": "APIReference", + "sourceSpec": "rpcs/transaction/EXPERIMENTAL_receipt_to_tx.yaml", + "summary": "Resolve receipt to transaction", + "transport": "json-rpc" + }, { "authSummary": "API key via query apiKey", "canonicalPath": "/rpcs/transaction/EXPERIMENTAL_tx_status", diff --git a/src/pages/rpcs/transaction/EXPERIMENTAL_receipt_to_tx.js b/src/pages/rpcs/transaction/EXPERIMENTAL_receipt_to_tx.js new file mode 100644 index 00000000..45318011 --- /dev/null +++ b/src/pages/rpcs/transaction/EXPERIMENTAL_receipt_to_tx.js @@ -0,0 +1,6 @@ +import React from "react"; +import FastnearHostedOperationPage from "@site/src/components/FastnearHostedOperationPage"; + +export default function GeneratedBespokeHostPage() { + return ; +} diff --git a/static/ru/rpc/transaction/experimental-receipt-to-tx.md b/static/ru/rpc/transaction/experimental-receipt-to-tx.md new file mode 100644 index 00000000..dc3477b5 --- /dev/null +++ b/static/ru/rpc/transaction/experimental-receipt-to-tx.md @@ -0,0 +1,254 @@ +# NEAR Protocol RPC: Resolve receipt to transaction +Resolve receipt to transaction +Resolve a receipt ID to the transaction hash and signer that produced it. Requires a node with `save_receipt_to_tx` enabled; unindexed receipts return `UNKNOWN_RECEIPT`. +## Ссылки на источник +- https://docs.fastnear.com/ru/rpc/transaction/experimental-receipt-to-tx +- https://docs.fastnear.com/ru/rpcs/transaction/EXPERIMENTAL_receipt_to_tx +- https://docs.fastnear.com/ru/rpcs/transaction/EXPERIMENTAL_receipt_to_tx/other/EXPERIMENTAL_receipt_to_tx +- https://docs.fastnear.com/ru/reference/operation/EXPERIMENTAL_receipt_to_tx +## Операция +- Транспорт: json-rpc +- Метод: POST +- Путь: `/` +- Исходная спецификация: `rpcs/transaction/EXPERIMENTAL_receipt_to_tx.yaml` +## Сети +- Mainnet: https://rpc.mainnet.fastnear.com/ +- Testnet: https://rpc.testnet.fastnear.com/ +## Авторизация +- API-ключ через query `apiKey`: Контракт OpenAPI описывает API-ключ FastNEAR как параметр запроса с именем apiKey. +- Этот экспорт намеренно не включает локально сохранённые учётные данные +## Текущий запрос +- Сеть: Mainnet +- Финальность: final +- Эндпоинт: https://rpc.mainnet.fastnear.com/ +### Тело запроса +```json +{ + "jsonrpc": "2.0", + "id": "fastnear", + "method": "EXPERIMENTAL_receipt_to_tx", + "params": { + "receipt_id": "FcFKrKQziMPCgYMFiLMZwecBtA7vqxdkatkhc1j3GYj8" + } +} +``` +## Справка по запросу +### Активный пример +```json +{ + "body": { + "jsonrpc": "2.0", + "id": "fastnear", + "method": "EXPERIMENTAL_receipt_to_tx", + "params": { + "receipt_id": "FcFKrKQziMPCgYMFiLMZwecBtA7vqxdkatkhc1j3GYj8" + } + }, + "headers": {}, + "path": {}, + "query": {} +} +``` +### Входные данные +- `block_height` (body, integer): Optional hint: block height near where the receipt was created, to bound the fallback scan. +- `receipt_id` (body, обязательный, string): Base58-encoded receipt ID to resolve to its originating transaction. +- `shard_id` (body, integer): Optional hint: shard to scan at the hint height; omit to scan all tracked shards. +- `window` (body, integer): Optional hint: ± block-height window scanned around the hint before walking ancestor blocks. +### Схема запроса +```json +{ + "type": "object", + "required": [ + "jsonrpc", + "id", + "method", + "params" + ], + "properties": [ + { + "name": "jsonrpc", + "required": true, + "schema": { + "type": "string", + "enum": [ + "2.0" + ] + } + }, + { + "name": "id", + "required": true, + "schema": { + "type": "string", + "example": "fastnear" + } + }, + { + "name": "method", + "required": true, + "schema": { + "type": "string", + "enum": [ + "EXPERIMENTAL_receipt_to_tx" + ] + } + }, + { + "name": "params", + "required": true, + "schema": { + "type": "object", + "required": [ + "receipt_id" + ], + "properties": [ + { + "name": "block_height", + "required": false, + "schema": { + "type": "integer", + "nullable": true, + "description": "Optional hint: block height near where the receipt was created, to bound the fallback scan.", + "format": "uint64" + } + }, + { + "name": "receipt_id", + "required": true, + "schema": { + "type": "string", + "description": "Base58-encoded receipt ID to resolve to its originating transaction." + } + }, + { + "name": "shard_id", + "required": false, + "schema": { + "type": "integer", + "nullable": true, + "description": "Optional hint: shard to scan at the hint height; omit to scan all tracked shards." + } + }, + { + "name": "window", + "required": false, + "schema": { + "type": "integer", + "nullable": true, + "description": "Optional hint: ± block-height window scanned around the hint before walking ancestor blocks.", + "format": "uint64" + } + } + ] + } + } + ] +} +``` +## Справка по ответу +- Статус: 200 +- Тип данных: application/json +- Краткое описание: Успешный ответ +### Схема ответа +```json +{ + "type": "object", + "required": [ + "jsonrpc", + "id" + ], + "properties": [ + { + "name": "jsonrpc", + "required": true, + "schema": { + "type": "string", + "enum": [ + "2.0" + ] + } + }, + { + "name": "id", + "required": true, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + } + ] + } + }, + { + "name": "result", + "required": false, + "schema": { + "type": "object", + "required": [ + "transaction_hash", + "sender_account_id" + ], + "properties": [ + { + "name": "sender_account_id", + "required": true, + "schema": { + "type": "string", + "description": "ID аккаунта NEAR" + } + }, + { + "name": "transaction_hash", + "required": true, + "schema": { + "type": "string", + "description": "Base58-encoded hash" + } + } + ] + } + }, + { + "name": "error", + "required": false, + "schema": { + "type": "object", + "properties": [ + { + "name": "код", + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "message", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "data", + "required": false, + "schema": { + "type": "object" + } + } + ] + } + } + ], + "refName": "JsonRpcResponse" +} +``` +--- +## О FastNear + +- FastNear обрабатывает более 10 млрд запросов в месяц. +- FastNear управляет более чем 100 нодами по всему миру. +- Один API-ключ FastNear работает и для RPC, и для индексированных API. +- Получите API-ключ на [dashboard.fastnear.com](https://dashboard.fastnear.com). diff --git a/static/ru/rpc/transaction/experimental-receipt-to-tx/index.md b/static/ru/rpc/transaction/experimental-receipt-to-tx/index.md new file mode 100644 index 00000000..dc3477b5 --- /dev/null +++ b/static/ru/rpc/transaction/experimental-receipt-to-tx/index.md @@ -0,0 +1,254 @@ +# NEAR Protocol RPC: Resolve receipt to transaction +Resolve receipt to transaction +Resolve a receipt ID to the transaction hash and signer that produced it. Requires a node with `save_receipt_to_tx` enabled; unindexed receipts return `UNKNOWN_RECEIPT`. +## Ссылки на источник +- https://docs.fastnear.com/ru/rpc/transaction/experimental-receipt-to-tx +- https://docs.fastnear.com/ru/rpcs/transaction/EXPERIMENTAL_receipt_to_tx +- https://docs.fastnear.com/ru/rpcs/transaction/EXPERIMENTAL_receipt_to_tx/other/EXPERIMENTAL_receipt_to_tx +- https://docs.fastnear.com/ru/reference/operation/EXPERIMENTAL_receipt_to_tx +## Операция +- Транспорт: json-rpc +- Метод: POST +- Путь: `/` +- Исходная спецификация: `rpcs/transaction/EXPERIMENTAL_receipt_to_tx.yaml` +## Сети +- Mainnet: https://rpc.mainnet.fastnear.com/ +- Testnet: https://rpc.testnet.fastnear.com/ +## Авторизация +- API-ключ через query `apiKey`: Контракт OpenAPI описывает API-ключ FastNEAR как параметр запроса с именем apiKey. +- Этот экспорт намеренно не включает локально сохранённые учётные данные +## Текущий запрос +- Сеть: Mainnet +- Финальность: final +- Эндпоинт: https://rpc.mainnet.fastnear.com/ +### Тело запроса +```json +{ + "jsonrpc": "2.0", + "id": "fastnear", + "method": "EXPERIMENTAL_receipt_to_tx", + "params": { + "receipt_id": "FcFKrKQziMPCgYMFiLMZwecBtA7vqxdkatkhc1j3GYj8" + } +} +``` +## Справка по запросу +### Активный пример +```json +{ + "body": { + "jsonrpc": "2.0", + "id": "fastnear", + "method": "EXPERIMENTAL_receipt_to_tx", + "params": { + "receipt_id": "FcFKrKQziMPCgYMFiLMZwecBtA7vqxdkatkhc1j3GYj8" + } + }, + "headers": {}, + "path": {}, + "query": {} +} +``` +### Входные данные +- `block_height` (body, integer): Optional hint: block height near where the receipt was created, to bound the fallback scan. +- `receipt_id` (body, обязательный, string): Base58-encoded receipt ID to resolve to its originating transaction. +- `shard_id` (body, integer): Optional hint: shard to scan at the hint height; omit to scan all tracked shards. +- `window` (body, integer): Optional hint: ± block-height window scanned around the hint before walking ancestor blocks. +### Схема запроса +```json +{ + "type": "object", + "required": [ + "jsonrpc", + "id", + "method", + "params" + ], + "properties": [ + { + "name": "jsonrpc", + "required": true, + "schema": { + "type": "string", + "enum": [ + "2.0" + ] + } + }, + { + "name": "id", + "required": true, + "schema": { + "type": "string", + "example": "fastnear" + } + }, + { + "name": "method", + "required": true, + "schema": { + "type": "string", + "enum": [ + "EXPERIMENTAL_receipt_to_tx" + ] + } + }, + { + "name": "params", + "required": true, + "schema": { + "type": "object", + "required": [ + "receipt_id" + ], + "properties": [ + { + "name": "block_height", + "required": false, + "schema": { + "type": "integer", + "nullable": true, + "description": "Optional hint: block height near where the receipt was created, to bound the fallback scan.", + "format": "uint64" + } + }, + { + "name": "receipt_id", + "required": true, + "schema": { + "type": "string", + "description": "Base58-encoded receipt ID to resolve to its originating transaction." + } + }, + { + "name": "shard_id", + "required": false, + "schema": { + "type": "integer", + "nullable": true, + "description": "Optional hint: shard to scan at the hint height; omit to scan all tracked shards." + } + }, + { + "name": "window", + "required": false, + "schema": { + "type": "integer", + "nullable": true, + "description": "Optional hint: ± block-height window scanned around the hint before walking ancestor blocks.", + "format": "uint64" + } + } + ] + } + } + ] +} +``` +## Справка по ответу +- Статус: 200 +- Тип данных: application/json +- Краткое описание: Успешный ответ +### Схема ответа +```json +{ + "type": "object", + "required": [ + "jsonrpc", + "id" + ], + "properties": [ + { + "name": "jsonrpc", + "required": true, + "schema": { + "type": "string", + "enum": [ + "2.0" + ] + } + }, + { + "name": "id", + "required": true, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + } + ] + } + }, + { + "name": "result", + "required": false, + "schema": { + "type": "object", + "required": [ + "transaction_hash", + "sender_account_id" + ], + "properties": [ + { + "name": "sender_account_id", + "required": true, + "schema": { + "type": "string", + "description": "ID аккаунта NEAR" + } + }, + { + "name": "transaction_hash", + "required": true, + "schema": { + "type": "string", + "description": "Base58-encoded hash" + } + } + ] + } + }, + { + "name": "error", + "required": false, + "schema": { + "type": "object", + "properties": [ + { + "name": "код", + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "message", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "data", + "required": false, + "schema": { + "type": "object" + } + } + ] + } + } + ], + "refName": "JsonRpcResponse" +} +``` +--- +## О FastNear + +- FastNear обрабатывает более 10 млрд запросов в месяц. +- FastNear управляет более чем 100 нодами по всему миру. +- Один API-ключ FastNear работает и для RPC, и для индексированных API. +- Получите API-ключ на [dashboard.fastnear.com](https://dashboard.fastnear.com). diff --git a/static/ru/rpcs/transaction/EXPERIMENTAL_receipt_to_tx.md b/static/ru/rpcs/transaction/EXPERIMENTAL_receipt_to_tx.md new file mode 100644 index 00000000..3149c606 --- /dev/null +++ b/static/ru/rpcs/transaction/EXPERIMENTAL_receipt_to_tx.md @@ -0,0 +1,253 @@ +# NEAR Protocol RPC: Resolve receipt to transaction +Resolve receipt to transaction +Resolve a receipt ID to the transaction hash and signer that produced it. Requires a node with `save_receipt_to_tx` enabled; unindexed receipts return `UNKNOWN_RECEIPT`. +## Ссылки на источник +- https://docs.fastnear.com/ru/rpcs/transaction/EXPERIMENTAL_receipt_to_tx +- https://docs.fastnear.com/ru/rpcs/transaction/EXPERIMENTAL_receipt_to_tx/other/EXPERIMENTAL_receipt_to_tx +- https://docs.fastnear.com/ru/reference/operation/EXPERIMENTAL_receipt_to_tx +## Операция +- Транспорт: json-rpc +- Метод: POST +- Путь: `/` +- Исходная спецификация: `rpcs/transaction/EXPERIMENTAL_receipt_to_tx.yaml` +## Сети +- Mainnet: https://rpc.mainnet.fastnear.com/ +- Testnet: https://rpc.testnet.fastnear.com/ +## Авторизация +- API-ключ через query `apiKey`: Контракт OpenAPI описывает API-ключ FastNEAR как параметр запроса с именем apiKey. +- Этот экспорт намеренно не включает локально сохранённые учётные данные +## Текущий запрос +- Сеть: Mainnet +- Финальность: final +- Эндпоинт: https://rpc.mainnet.fastnear.com/ +### Тело запроса +```json +{ + "jsonrpc": "2.0", + "id": "fastnear", + "method": "EXPERIMENTAL_receipt_to_tx", + "params": { + "receipt_id": "FcFKrKQziMPCgYMFiLMZwecBtA7vqxdkatkhc1j3GYj8" + } +} +``` +## Справка по запросу +### Активный пример +```json +{ + "body": { + "jsonrpc": "2.0", + "id": "fastnear", + "method": "EXPERIMENTAL_receipt_to_tx", + "params": { + "receipt_id": "FcFKrKQziMPCgYMFiLMZwecBtA7vqxdkatkhc1j3GYj8" + } + }, + "headers": {}, + "path": {}, + "query": {} +} +``` +### Входные данные +- `block_height` (body, integer): Optional hint: block height near where the receipt was created, to bound the fallback scan. +- `receipt_id` (body, обязательный, string): Base58-encoded receipt ID to resolve to its originating transaction. +- `shard_id` (body, integer): Optional hint: shard to scan at the hint height; omit to scan all tracked shards. +- `window` (body, integer): Optional hint: ± block-height window scanned around the hint before walking ancestor blocks. +### Схема запроса +```json +{ + "type": "object", + "required": [ + "jsonrpc", + "id", + "method", + "params" + ], + "properties": [ + { + "name": "jsonrpc", + "required": true, + "schema": { + "type": "string", + "enum": [ + "2.0" + ] + } + }, + { + "name": "id", + "required": true, + "schema": { + "type": "string", + "example": "fastnear" + } + }, + { + "name": "method", + "required": true, + "schema": { + "type": "string", + "enum": [ + "EXPERIMENTAL_receipt_to_tx" + ] + } + }, + { + "name": "params", + "required": true, + "schema": { + "type": "object", + "required": [ + "receipt_id" + ], + "properties": [ + { + "name": "block_height", + "required": false, + "schema": { + "type": "integer", + "nullable": true, + "description": "Optional hint: block height near where the receipt was created, to bound the fallback scan.", + "format": "uint64" + } + }, + { + "name": "receipt_id", + "required": true, + "schema": { + "type": "string", + "description": "Base58-encoded receipt ID to resolve to its originating transaction." + } + }, + { + "name": "shard_id", + "required": false, + "schema": { + "type": "integer", + "nullable": true, + "description": "Optional hint: shard to scan at the hint height; omit to scan all tracked shards." + } + }, + { + "name": "window", + "required": false, + "schema": { + "type": "integer", + "nullable": true, + "description": "Optional hint: ± block-height window scanned around the hint before walking ancestor blocks.", + "format": "uint64" + } + } + ] + } + } + ] +} +``` +## Справка по ответу +- Статус: 200 +- Тип данных: application/json +- Краткое описание: Успешный ответ +### Схема ответа +```json +{ + "type": "object", + "required": [ + "jsonrpc", + "id" + ], + "properties": [ + { + "name": "jsonrpc", + "required": true, + "schema": { + "type": "string", + "enum": [ + "2.0" + ] + } + }, + { + "name": "id", + "required": true, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + } + ] + } + }, + { + "name": "result", + "required": false, + "schema": { + "type": "object", + "required": [ + "transaction_hash", + "sender_account_id" + ], + "properties": [ + { + "name": "sender_account_id", + "required": true, + "schema": { + "type": "string", + "description": "ID аккаунта NEAR" + } + }, + { + "name": "transaction_hash", + "required": true, + "schema": { + "type": "string", + "description": "Base58-encoded hash" + } + } + ] + } + }, + { + "name": "error", + "required": false, + "schema": { + "type": "object", + "properties": [ + { + "name": "код", + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "message", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "data", + "required": false, + "schema": { + "type": "object" + } + } + ] + } + } + ], + "refName": "JsonRpcResponse" +} +``` +--- +## О FastNear + +- FastNear обрабатывает более 10 млрд запросов в месяц. +- FastNear управляет более чем 100 нодами по всему миру. +- Один API-ключ FastNear работает и для RPC, и для индексированных API. +- Получите API-ключ на [dashboard.fastnear.com](https://dashboard.fastnear.com). diff --git a/static/ru/rpcs/transaction/EXPERIMENTAL_receipt_to_tx/index.md b/static/ru/rpcs/transaction/EXPERIMENTAL_receipt_to_tx/index.md new file mode 100644 index 00000000..3149c606 --- /dev/null +++ b/static/ru/rpcs/transaction/EXPERIMENTAL_receipt_to_tx/index.md @@ -0,0 +1,253 @@ +# NEAR Protocol RPC: Resolve receipt to transaction +Resolve receipt to transaction +Resolve a receipt ID to the transaction hash and signer that produced it. Requires a node with `save_receipt_to_tx` enabled; unindexed receipts return `UNKNOWN_RECEIPT`. +## Ссылки на источник +- https://docs.fastnear.com/ru/rpcs/transaction/EXPERIMENTAL_receipt_to_tx +- https://docs.fastnear.com/ru/rpcs/transaction/EXPERIMENTAL_receipt_to_tx/other/EXPERIMENTAL_receipt_to_tx +- https://docs.fastnear.com/ru/reference/operation/EXPERIMENTAL_receipt_to_tx +## Операция +- Транспорт: json-rpc +- Метод: POST +- Путь: `/` +- Исходная спецификация: `rpcs/transaction/EXPERIMENTAL_receipt_to_tx.yaml` +## Сети +- Mainnet: https://rpc.mainnet.fastnear.com/ +- Testnet: https://rpc.testnet.fastnear.com/ +## Авторизация +- API-ключ через query `apiKey`: Контракт OpenAPI описывает API-ключ FastNEAR как параметр запроса с именем apiKey. +- Этот экспорт намеренно не включает локально сохранённые учётные данные +## Текущий запрос +- Сеть: Mainnet +- Финальность: final +- Эндпоинт: https://rpc.mainnet.fastnear.com/ +### Тело запроса +```json +{ + "jsonrpc": "2.0", + "id": "fastnear", + "method": "EXPERIMENTAL_receipt_to_tx", + "params": { + "receipt_id": "FcFKrKQziMPCgYMFiLMZwecBtA7vqxdkatkhc1j3GYj8" + } +} +``` +## Справка по запросу +### Активный пример +```json +{ + "body": { + "jsonrpc": "2.0", + "id": "fastnear", + "method": "EXPERIMENTAL_receipt_to_tx", + "params": { + "receipt_id": "FcFKrKQziMPCgYMFiLMZwecBtA7vqxdkatkhc1j3GYj8" + } + }, + "headers": {}, + "path": {}, + "query": {} +} +``` +### Входные данные +- `block_height` (body, integer): Optional hint: block height near where the receipt was created, to bound the fallback scan. +- `receipt_id` (body, обязательный, string): Base58-encoded receipt ID to resolve to its originating transaction. +- `shard_id` (body, integer): Optional hint: shard to scan at the hint height; omit to scan all tracked shards. +- `window` (body, integer): Optional hint: ± block-height window scanned around the hint before walking ancestor blocks. +### Схема запроса +```json +{ + "type": "object", + "required": [ + "jsonrpc", + "id", + "method", + "params" + ], + "properties": [ + { + "name": "jsonrpc", + "required": true, + "schema": { + "type": "string", + "enum": [ + "2.0" + ] + } + }, + { + "name": "id", + "required": true, + "schema": { + "type": "string", + "example": "fastnear" + } + }, + { + "name": "method", + "required": true, + "schema": { + "type": "string", + "enum": [ + "EXPERIMENTAL_receipt_to_tx" + ] + } + }, + { + "name": "params", + "required": true, + "schema": { + "type": "object", + "required": [ + "receipt_id" + ], + "properties": [ + { + "name": "block_height", + "required": false, + "schema": { + "type": "integer", + "nullable": true, + "description": "Optional hint: block height near where the receipt was created, to bound the fallback scan.", + "format": "uint64" + } + }, + { + "name": "receipt_id", + "required": true, + "schema": { + "type": "string", + "description": "Base58-encoded receipt ID to resolve to its originating transaction." + } + }, + { + "name": "shard_id", + "required": false, + "schema": { + "type": "integer", + "nullable": true, + "description": "Optional hint: shard to scan at the hint height; omit to scan all tracked shards." + } + }, + { + "name": "window", + "required": false, + "schema": { + "type": "integer", + "nullable": true, + "description": "Optional hint: ± block-height window scanned around the hint before walking ancestor blocks.", + "format": "uint64" + } + } + ] + } + } + ] +} +``` +## Справка по ответу +- Статус: 200 +- Тип данных: application/json +- Краткое описание: Успешный ответ +### Схема ответа +```json +{ + "type": "object", + "required": [ + "jsonrpc", + "id" + ], + "properties": [ + { + "name": "jsonrpc", + "required": true, + "schema": { + "type": "string", + "enum": [ + "2.0" + ] + } + }, + { + "name": "id", + "required": true, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + } + ] + } + }, + { + "name": "result", + "required": false, + "schema": { + "type": "object", + "required": [ + "transaction_hash", + "sender_account_id" + ], + "properties": [ + { + "name": "sender_account_id", + "required": true, + "schema": { + "type": "string", + "description": "ID аккаунта NEAR" + } + }, + { + "name": "transaction_hash", + "required": true, + "schema": { + "type": "string", + "description": "Base58-encoded hash" + } + } + ] + } + }, + { + "name": "error", + "required": false, + "schema": { + "type": "object", + "properties": [ + { + "name": "код", + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "message", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "data", + "required": false, + "schema": { + "type": "object" + } + } + ] + } + } + ], + "refName": "JsonRpcResponse" +} +``` +--- +## О FastNear + +- FastNear обрабатывает более 10 млрд запросов в месяц. +- FastNear управляет более чем 100 нодами по всему миру. +- Один API-ключ FastNear работает и для RPC, и для индексированных API. +- Получите API-ключ на [dashboard.fastnear.com](https://dashboard.fastnear.com).