I am writing a project in Ruby using JSON-RPC to communicate with blockchain.info. The API is available here: https://blockchain.info/api/json_rpc_api

Is it possible to create a op_return txout using the given JSON-RPC API ?

  • Since they don't support signtransaction or createrawtransaction, I don't think so.
    – Nick ODell
    Nov 18 '14 at 22:10
  • Well, in that case I will need to run my own node to broadcast a message with OP_RETURN, the only way will to be run my own node?
    – fyquah95
    Nov 18 '14 at 22:17

Blockchain.info and bitoind/qt out of the box doesn't support pushing transaction out with the OP_RETURN op code. They will mark the transaction as invalid and refuse to broadcast it.

I have an open source project with a program that will push out transactions to the network directly at https://github.com/kaykurokawa/pushtx. It doesn't do any error checking on the transaction so transactions with OP_RETURN will get relayed.

I've successfully used this in combination with pybitcointools for crafting a transaction with OP_RETURN in it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.