Skip to content

Commit

Permalink
rpcv05 remove pendingTransactions() (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
rianhughes committed Oct 12, 2023
1 parent a3676e6 commit 6a543f0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ go run main.go
| `starknet_blockNumber` | :heavy_check_mark: |
| `starknet_blockHashAndNumber` | :heavy_check_mark: |
| `starknet_chainId` | :heavy_check_mark: |
| `starknet_pendingTransactions` | :heavy_check_mark: |
| `starknet_syncing` | :heavy_check_mark: |
| `starknet_getEvents` | :heavy_check_mark: |
| `starknet_getNonce` | :heavy_check_mark: |
Expand Down
9 changes: 0 additions & 9 deletions rpc/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,6 @@ func (provider *Provider) TransactionByBlockIdAndIndex(ctx context.Context, bloc
return adaptTransaction(tx)
}

// PendingTransaction returns the transactions in the transaction pool, recognized by this sequencer.
func (provider *Provider) PendingTransaction(ctx context.Context) ([]Transaction, error) {
txs := []Transaction{}
if err := do(ctx, provider.c, "starknet_pendingTransactions", &txs, []interface{}{}); err != nil {
return nil, err
}
return txs, nil
}

// TxnReceipt gets the transaction receipt by the transaction hash.
func (provider *Provider) TransactionReceipt(ctx context.Context, transactionHash *felt.Felt) (TransactionReceipt, error) {
var receipt UnknownTransactionReceipt
Expand Down

0 comments on commit 6a543f0

Please sign in to comment.