Last modified: 2024-08-12
sendrawtransaction Method
Broadcasts transactions over the NEO network.
You must install the plugin RpcServer before you can invoke the method.
Parameter Description
transaction: A Base64-encoded string that has been serialized after the transaction signed in the program.
Example
Request body:
Response body in successful cases:
Response body in unsuccessful cases:
Response Description:
When result is false, the current transaction has failed to broadcast and an exception occurs. In this example, a confirmed transaction is broadcast, which fails due to the double cost.
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) |