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.
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.
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) |