For the complete documentation index, see llms.txt. This page is also available as Markdown.

author_removeExtrinsic - Midnight

Example code for the author_removeExtrinsic JSON-RPC method. Complete guide on how to use author_removeExtrinsic JSON-RPC in GetBlock Web3 documentation.

This method removes one or more extrinsics from the transaction pool. Most managed RPC providers disable this method since it affects shared node state.

Parameters

Parameter
Type
Required
Description

bytesOrHash

array of object

Yes

Array of either {Hash: '0x…'} or {Extrinsic: '0x…'} entries to remove

Request Example

curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "author_removeExtrinsic",
    "params": [
        [
            {
                "Hash": "0x88df016429689c079f3b2f6ad39fa052532c56795b733da78a91ebe6a713944b"
            }
        ]
    ],
    "id": "getblock.io"
}'

Response Example

Response Parameters

Field
Type
Description

result

array of string

Hashes of the extrinsics that were successfully removed

Use Cases

  • Cleaning up replaced or invalid extrinsics in a local dev node

  • Test harnesses that need to reset pool state

Error Handling

Status Code
Error Message
Cause

403

Forbidden

Missing or invalid <ACCESS-TOKEN>

-32602

Invalid params

Request parameters are missing or malformed

429

Too Many Requests

Rate limit exceeded for your plan

-32601

Method not found

Disabled by most managed RPC providers; available only on dedicated or self-hosted nodes

SDK Integration

Last updated

Was this helpful?