Show / Hide
Table of Contents
Last modified: 2024-09-04
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.
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) |