sendrawtransaction Method
Broadcasts a transaction over the NEO network. There are many kinds of transactions, as specified in the network protocol documentation .
Parameters
Hex: A hexadecimal string that has been serialized, after the signed transaction in the program.
Example
Request body:
Response body if successful:
Response body if not successful:
Response Description:
When result is true, the current transaction is successfully broadcasted.
When result is false, the current transaction has failed to broadcast and an exception is raised.
In this example, a confirmed transaction is re-sent, so it failed. The following error codes can be expected:
Error code | Message |
---|---|
-501 | Block or transaction already exists and cannot be sent repeatedly. |
-502 | The memory pool is full and no more transactions can be sent. |
-503 | The block cannot be validated. |
-504 | Block or transaction validation failed. |
-505 | One of the Policy filters failed. |
-500 | Unknown error. |