Last modified: 2024-09-23
submitblock Method
Broadcasts a new block in the NEO network.
You must install the plugin RpcServer before you can invoke the method.
Parameter Description
base64: A Base64-encoded string of a serialized block.
Exception
-
-500, Inventory verification failed.
-
-501, Inventory already exists.
-
-502, Memory pool capacity reached.
-
-503, Already in pool.
-
-505, Policy check failed.
-
-506, Invalid transaction script.
-
-507, Invalid transaction attribute.
-
-508, Invalid signature.
-
-509, Invalid inventory size.
-
-510, Expired transaction.
-
-511, Insufficient funds for fee.
Example
Request body:
Response body in successful cases:
Response body in unsuccessful cases:
Response Description:
When result is false, the block has failed to broadcast and an exception occurs. The following error codes can be expected
Error codes | Message | Description |
---|---|---|
500 | AlreadyExists | Block or transaction already exists and cannot be sent repeatedly. |
OutOfMemory | The memory pool is full and no more transactions can be sent. | |
UnableToVerify | The block cannot be validated. | |
Invalid | The format or parameter is incorrect | |
Expired | The block information is expired | |
InsufficientFunds | Insufficient funds | |
PolicyFail | The behavior is not allowed (such as blacklist address trading) |