|
741 | 741 | } |
742 | 742 | } |
743 | 743 | }, |
| 744 | + { |
| 745 | + "name": "txpool_content", |
| 746 | + "summary": "Returns all pending and queued transactions (queued are always an empty object {} due to Hedera specifics).", |
| 747 | + "description": "", |
| 748 | + "params": [], |
| 749 | + "result": { |
| 750 | + "name": "Txpool content", |
| 751 | + "schema": { |
| 752 | + "type": "object", |
| 753 | + "required": [ |
| 754 | + "pending", |
| 755 | + "queued" |
| 756 | + ], |
| 757 | + "properties": { |
| 758 | + "pending": { |
| 759 | + "type": "object", |
| 760 | + "patternProperties": { |
| 761 | + "^0x[a-fA-F0-9]{40}$": { |
| 762 | + "type": "object", |
| 763 | + "patternProperties": { |
| 764 | + "^[0-9]+$": { |
| 765 | + "$ref": "#/components/schemas/TxPoolTransaction" |
| 766 | + } |
| 767 | + }, |
| 768 | + "additionalProperties": false |
| 769 | + } |
| 770 | + }, |
| 771 | + "additionalProperties": false |
| 772 | + }, |
| 773 | + "queued": { |
| 774 | + "type": "object", |
| 775 | + "patternProperties": { |
| 776 | + "^0x[a-fA-F0-9]{40}$": { |
| 777 | + "type": "object", |
| 778 | + "patternProperties": { |
| 779 | + "^[0-9]+$": { |
| 780 | + "$ref": "#/components/schemas/TxPoolTransaction" |
| 781 | + } |
| 782 | + }, |
| 783 | + "additionalProperties": false |
| 784 | + } |
| 785 | + }, |
| 786 | + "additionalProperties": false |
| 787 | + } |
| 788 | + }, |
| 789 | + "additionalProperties": false |
| 790 | + } |
| 791 | + } |
| 792 | + }, |
| 793 | + { |
| 794 | + "name": "txpool_contentFrom", |
| 795 | + "summary": "Returns pending and queued transactions (queued are always an empty object {} due to Hedera specifics) of this address, grouped by nonce.", |
| 796 | + "description": "", |
| 797 | + "params": [], |
| 798 | + "result": { |
| 799 | + "name": "Txpool contentFrom", |
| 800 | + "schema": { |
| 801 | + "type": "object", |
| 802 | + "required": [ |
| 803 | + "pending", |
| 804 | + "queued" |
| 805 | + ], |
| 806 | + "properties": { |
| 807 | + "pending": { |
| 808 | + "type": "object", |
| 809 | + "patternProperties": { |
| 810 | + "^[0-9]+$": { |
| 811 | + "$ref": "#/components/schemas/TxPoolTransaction" |
| 812 | + } |
| 813 | + }, |
| 814 | + "additionalProperties": false |
| 815 | + }, |
| 816 | + "queued": { |
| 817 | + "type": "object", |
| 818 | + "patternProperties": { |
| 819 | + "^[0-9]+$": { |
| 820 | + "$ref": "#/components/schemas/TxPoolTransaction" |
| 821 | + } |
| 822 | + }, |
| 823 | + "additionalProperties": false |
| 824 | + } |
| 825 | + }, |
| 826 | + "additionalProperties": false |
| 827 | + } |
| 828 | + } |
| 829 | + }, |
| 830 | + { |
| 831 | + "name": "txpool_status", |
| 832 | + "summary": "Returns the number of transactions in pending and queued states (queued are always 0x0 due to Hedera specifics).", |
| 833 | + "description": "", |
| 834 | + "params": [], |
| 835 | + "result": { |
| 836 | + "name": "Txpool status", |
| 837 | + "schema": { |
| 838 | + "type": "object", |
| 839 | + "properties": { |
| 840 | + "pending": { |
| 841 | + "$ref": "#/components/schemas/uint" |
| 842 | + }, |
| 843 | + "queued": { |
| 844 | + "$ref": "#/components/schemas/uint" |
| 845 | + } |
| 846 | + } |
| 847 | + } |
| 848 | + } |
| 849 | + }, |
744 | 850 | { |
745 | 851 | "name": "eth_maxPriorityFeePerGas", |
746 | 852 | "summary": "Returns a fee per gas that is an estimate of how much you can pay as a priority fee, or 'tip', to get a transaction included in the current block.", |
|
1627 | 1733 | } |
1628 | 1734 | ] |
1629 | 1735 | }, |
| 1736 | + "TxPoolTransaction": { |
| 1737 | + "type": "object", |
| 1738 | + "description": "A transaction currently in the pool.", |
| 1739 | + "required": [ |
| 1740 | + "blockHash", |
| 1741 | + "blockNumber", |
| 1742 | + "transactionIndex", |
| 1743 | + "from", |
| 1744 | + "gas", |
| 1745 | + "hash", |
| 1746 | + "input", |
| 1747 | + "nonce", |
| 1748 | + "to", |
| 1749 | + "value", |
| 1750 | + "type", |
| 1751 | + "v", |
| 1752 | + "r", |
| 1753 | + "s" |
| 1754 | + ], |
| 1755 | + "properties": { |
| 1756 | + "blockHash": { |
| 1757 | + "type": [ |
| 1758 | + "string" |
| 1759 | + ], |
| 1760 | + "pattern": "^0x([A-Fa-f0-9]{64})$", |
| 1761 | + "description": "Zero hex 32 bytes." |
| 1762 | + }, |
| 1763 | + "blockNumber": { |
| 1764 | + "type": [ |
| 1765 | + "null" |
| 1766 | + ], |
| 1767 | + "description": "Null." |
| 1768 | + }, |
| 1769 | + "transactionIndex": { |
| 1770 | + "type": [ |
| 1771 | + "null" |
| 1772 | + ], |
| 1773 | + "description": "Null." |
| 1774 | + }, |
| 1775 | + "from": { |
| 1776 | + "type": "string", |
| 1777 | + "pattern": "^0x[a-fA-F0-9]{40}$", |
| 1778 | + "description": "Address of the sender." |
| 1779 | + }, |
| 1780 | + "gas": { |
| 1781 | + "type": "string", |
| 1782 | + "pattern": "^0x[0-9a-fA-F]+$", |
| 1783 | + "description": "Gas provided by the sender." |
| 1784 | + }, |
| 1785 | + "hash": { |
| 1786 | + "type": "string", |
| 1787 | + "pattern": "^0x[a-fA-F0-9]{64}$", |
| 1788 | + "description": "Transaction hash." |
| 1789 | + }, |
| 1790 | + "input": { |
| 1791 | + "type": "string", |
| 1792 | + "pattern": "^0x([A-Fa-f0-9]*)$", |
| 1793 | + "description": "Input data." |
| 1794 | + }, |
| 1795 | + "nonce": { |
| 1796 | + "type": "string", |
| 1797 | + "pattern": "^0x[0-9a-fA-F]+$", |
| 1798 | + "description": "Nonce of the transaction." |
| 1799 | + }, |
| 1800 | + "to": { |
| 1801 | + "type": [ |
| 1802 | + "string", |
| 1803 | + "null" |
| 1804 | + ], |
| 1805 | + "pattern": "^0x[a-fA-F0-9]{40}$", |
| 1806 | + "description": "Recipient address (null for contract creation)." |
| 1807 | + }, |
| 1808 | + "value": { |
| 1809 | + "type": "string", |
| 1810 | + "pattern": "^0x[0-9a-fA-F]+$", |
| 1811 | + "description": "Value transferred." |
| 1812 | + }, |
| 1813 | + "type": { |
| 1814 | + "type": [ |
| 1815 | + "string" |
| 1816 | + ], |
| 1817 | + "pattern": "^0x[0-9a-fA-F]+$", |
| 1818 | + "description": "Transaction type (EIP-2718 typed transactions)." |
| 1819 | + }, |
| 1820 | + "v": { |
| 1821 | + "type": "string", |
| 1822 | + "pattern": "^0x[0-9a-fA-F]+$", |
| 1823 | + "description": "Signature v component." |
| 1824 | + }, |
| 1825 | + "r": { |
| 1826 | + "type": "string", |
| 1827 | + "pattern": "^0x[0-9a-fA-F]+$", |
| 1828 | + "description": "Signature r component." |
| 1829 | + }, |
| 1830 | + "s": { |
| 1831 | + "type": "string", |
| 1832 | + "pattern": "^0x[0-9a-fA-F]+$", |
| 1833 | + "description": "Signature s component." |
| 1834 | + }, |
| 1835 | + "chainId": { |
| 1836 | + "type": [ |
| 1837 | + "string", |
| 1838 | + "null" |
| 1839 | + ], |
| 1840 | + "pattern": "^0x[0-9a-fA-F]+$", |
| 1841 | + "description": "Chain ID for EIP-155 transactions." |
| 1842 | + }, |
| 1843 | + "gasPrice": { |
| 1844 | + "type": [ |
| 1845 | + "string", |
| 1846 | + "null" |
| 1847 | + ], |
| 1848 | + "pattern": "^0x[0-9a-fA-F]+$", |
| 1849 | + "description": "Gas price." |
| 1850 | + }, |
| 1851 | + "maxFeePerGas": { |
| 1852 | + "type": [ |
| 1853 | + "string", |
| 1854 | + "null" |
| 1855 | + ], |
| 1856 | + "pattern": "^0x[0-9a-fA-F]+$", |
| 1857 | + "description": "For EIP-1559 transactions: maximum fee per gas." |
| 1858 | + }, |
| 1859 | + "maxPriorityFeePerGas": { |
| 1860 | + "type": [ |
| 1861 | + "string", |
| 1862 | + "null" |
| 1863 | + ], |
| 1864 | + "pattern": "^0x[0-9a-fA-F]+$", |
| 1865 | + "description": "For EIP-1559 transactions: max priority fee per gas." |
| 1866 | + } |
| 1867 | + }, |
| 1868 | + "additionalProperties": false |
| 1869 | + }, |
1630 | 1870 | "BlockNumberOrTagOrHash": { |
1631 | 1871 | "title": "Block number, tag, or block hash", |
1632 | 1872 | "oneOf": [ |
|
1720 | 1960 | "BlockTracerType": { |
1721 | 1961 | "title": "Block tracer type", |
1722 | 1962 | "type": "string", |
1723 | | - "enum": ["callTracer", "prestateTracer"] |
| 1963 | + "enum": [ |
| 1964 | + "callTracer", |
| 1965 | + "prestateTracer" |
| 1966 | + ] |
1724 | 1967 | }, |
1725 | 1968 | "TransactionWithSender": { |
1726 | 1969 | "title": "Transaction object with sender", |
1727 | 1970 | "type": "object", |
1728 | 1971 | "allOf": [ |
1729 | 1972 | { |
1730 | | - "required": ["from"], |
| 1973 | + "required": [ |
| 1974 | + "from" |
| 1975 | + ], |
1731 | 1976 | "properties": { |
1732 | 1977 | "from": { |
1733 | 1978 | "title": "from", |
|
1812 | 2057 | "TransactionLegacyUnsigned": { |
1813 | 2058 | "type": "object", |
1814 | 2059 | "title": "Legacy transaction.", |
1815 | | - "required": ["type", "nonce", "gas", "value", "input", "gasPrice"], |
| 2060 | + "required": [ |
| 2061 | + "type", |
| 2062 | + "nonce", |
| 2063 | + "gas", |
| 2064 | + "value", |
| 2065 | + "input", |
| 2066 | + "gasPrice" |
| 2067 | + ], |
1816 | 2068 | "properties": { |
1817 | 2069 | "type": { |
1818 | 2070 | "title": "type", |
|
1868 | 2120 | }, |
1869 | 2121 | { |
1870 | 2122 | "title": "EIP-1559 transaction signature properties.", |
1871 | | - "required": ["yParity", "r", "s", "v"], |
| 2123 | + "required": [ |
| 2124 | + "yParity", |
| 2125 | + "r", |
| 2126 | + "s", |
| 2127 | + "v" |
| 2128 | + ], |
1872 | 2129 | "properties": { |
1873 | 2130 | "yParity": { |
1874 | 2131 | "title": "yParity", |
|
1925 | 2182 | }, |
1926 | 2183 | { |
1927 | 2184 | "title": "Legacy transaction signature properties.", |
1928 | | - "required": ["v", "r", "s"], |
| 2185 | + "required": [ |
| 2186 | + "v", |
| 2187 | + "r", |
| 2188 | + "s" |
| 2189 | + ], |
1929 | 2190 | "properties": { |
1930 | 2191 | "v": { |
1931 | 2192 | "title": "v", |
|
1966 | 2227 | "allOf": [ |
1967 | 2228 | { |
1968 | 2229 | "title": "Contextual information", |
1969 | | - "required": ["blockHash", "blockNumber", "from", "hash", "transactionIndex"], |
| 2230 | + "required": [ |
| 2231 | + "blockHash", |
| 2232 | + "blockNumber", |
| 2233 | + "from", |
| 2234 | + "hash", |
| 2235 | + "transactionIndex" |
| 2236 | + ], |
1970 | 2237 | "properties": { |
1971 | 2238 | "blockHash": { |
1972 | 2239 | "title": "block hash", |
|
1998 | 2265 | "Log": { |
1999 | 2266 | "title": "log", |
2000 | 2267 | "type": "object", |
2001 | | - "required": ["transactionHash"], |
| 2268 | + "required": [ |
| 2269 | + "transactionHash" |
| 2270 | + ], |
2002 | 2271 | "properties": { |
2003 | 2272 | "removed": { |
2004 | 2273 | "title": "removed", |
|
2262 | 2531 | "properties": { |
2263 | 2532 | "type": { |
2264 | 2533 | "type": "string", |
2265 | | - "enum": ["CALL", "CREATE"], |
| 2534 | + "enum": [ |
| 2535 | + "CALL", |
| 2536 | + "CREATE" |
| 2537 | + ], |
2266 | 2538 | "description": "The type of action (CALL for function calls or CREATE for contract creation)." |
2267 | 2539 | }, |
2268 | 2540 | "from": { |
|
2309 | 2581 | "description": "Sub-calls made during this call frame." |
2310 | 2582 | } |
2311 | 2583 | }, |
2312 | | - "required": ["from", "gas", "input"] |
| 2584 | + "required": [ |
| 2585 | + "from", |
| 2586 | + "gas", |
| 2587 | + "input" |
| 2588 | + ] |
2313 | 2589 | } |
2314 | 2590 | } |
2315 | 2591 | } |
|
0 commit comments