|
| 1 | +--- |
| 2 | +title: "starknet_pendingTransactions" |
| 3 | +--- |
| 4 | + |
| 5 | +import Tabs from '@theme/Tabs'; |
| 6 | +import TabItem from '@theme/TabItem'; |
| 7 | + |
| 8 | +Returns a list of pending transactions. |
| 9 | + |
| 10 | +## Parameters |
| 11 | + |
| 12 | +None. |
| 13 | + |
| 14 | +## Returns |
| 15 | + |
| 16 | +An array of pending |
| 17 | +[Starknet transaction](https://docs.starknet.io/documentation/architecture_and_concepts/Network_Architecture/transactions/) |
| 18 | +objects. |
| 19 | + |
| 20 | +## Example |
| 21 | + |
| 22 | +Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infura.io/dashboard). |
| 23 | + |
| 24 | +### Request |
| 25 | + |
| 26 | +<Tabs> |
| 27 | +<TabItem value="cURL"> |
| 28 | + |
| 29 | +```bash |
| 30 | +curl https://starknet-mainnet.infura.io/v3/6e46ee5c0df54fb48c0fb2a94502c42a \ |
| 31 | + -X POST \ |
| 32 | + -H "Content-Type: application/json" \ |
| 33 | + -d '{"jsonrpc": "2.0", "method": "starknet_pendingTransactions", "params": [], "id": 0}' |
| 34 | +``` |
| 35 | + |
| 36 | +</TabItem> |
| 37 | +</Tabs> |
| 38 | + |
| 39 | +### Response |
| 40 | + |
| 41 | +<Tabs> |
| 42 | +<TabItem value="JSON"> |
| 43 | + |
| 44 | +```json |
| 45 | +{ |
| 46 | + "jsonrpc": "2.0", |
| 47 | + "result": [ |
| 48 | + { |
| 49 | + "type": "INVOKE", |
| 50 | + "transaction_hash": "0x51b20a0fc4372f88251e85b273b3fdd1840abde65cd65861691abd8eae8ae24", |
| 51 | + "max_fee": "0x173ef69c85ddc", |
| 52 | + "version": "0x0", |
| 53 | + "signature": ["0x30f5c0835f649d07e0335bcfe9a2844ff644ba5ae746853ac607b304f4ef551", "0x87428cbd6d283c49652003effa075d1479f6ca24e7e6dae5da5e16a587875"], |
| 54 | + "nonce": "0x0", |
| 55 | + "contract_address": "0x8451e87f44cdadbe0e235804753194d24939603a025324ca380e73806e39a6", |
| 56 | + "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", |
| 57 | + "calldata": ["0x1", "0x7861c4e276294a7e859ff0ae2eec0c68300ad9cbb43219db907da9bad786488", "0x2f0b3c5710379609eb5495f1ecd348cb28167711b73609fe565a72734550354", "0x0", "0x3", "0x3", "0x697066733a2f2f516d543577517453516e4a4173423550377a76436e787574", "0x6d70424b515a756a624e666444734b664c515a363933", "0x0", "0x5"] |
| 58 | + }, { |
| 59 | + "type": "INVOKE", |
| 60 | + "transaction_hash": "0x4a79fbaa6c898a9823ae7d58aa30f70f0cd76da83fcc796b0e8f686d714837a", |
| 61 | + "max_fee": "0x5fb93c8e0320", |
| 62 | + "version": "0x0", |
| 63 | + "signature": ["0x40b94d079352f30849cb1fd11d7e6b7ddb9bf82c0af6a6e59821a1c72607592", "0x7d25b96e4e2664ae0a9aaecf523242a5769773b4a1d2753db97711782fea1c9"], |
| 64 | + "nonce": "0x0", |
| 65 | + "contract_address": "0x1e3415180f65313145bb0c6afa3ea73600f5275fbd22c526bbff5de7f9532ee", |
| 66 | + "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", |
| 67 | + "calldata": ["0x1", "0x3090623ea32d932ca1236595076b00702e7d860696faf300ca9eb13bfe0a78c", "0x2d4c8ea4c8fb9f571d1f6f9b7692fff8e5ceaf73b1df98e7da8c1109b39ae9a", "0x0", "0x2", "0x2", "0x2a92f0f860bf7c63fb9ef42cff4137006b309e0e6e1484e42d0b5511959414d", "0x1", "0x3"] |
| 68 | + }, |
| 69 | + ... |
| 70 | + ], |
| 71 | + "id": 0 |
| 72 | +} |
| 73 | +``` |
| 74 | + |
| 75 | +</TabItem> |
| 76 | +</Tabs> |
0 commit comments