Matthew Zipkin
Matthew Zipkin
I assume you are referring to broadcast a transaction? What type of data are you sending to the server? Is it JSON? https://bcoin.io/api-docs/?shell--curl#broadcast-transaction
What is that code snippet from?
Oh sorry I misunderstood. The hex string should be correct if you're passing it to the client like that. I don't understand what is going wrong -- you're using `brq`...
Is `raw` a buffer/byte array? Or is it encoded as a hex string?
Also not sure why you seem to have a double slash `//broadcast` in the url?
Can you try the endpoint without compiling your client code for the browser? Just use the terminal and run the client in nodejs
You may having issues because of the CORS setting: https://stackoverflow.com/questions/1256593/why-am-i-getting-an-options-request-instead-of-a-get-request can you try to set up an environment where the request is not cross-origin?
Note that in [bpanel](http://bpanel.org/) we proxied everything through one server to avoid CORS, which is unsafe anyway. There is a reason why CORS is false by default. Why does you...
See also: https://github.com/bcoin-org/bcoin/issues/728#issuecomment-473385071 You may need to modify the `bweb` dependency. Check out the SO link in that comment as well.
If you're setting up a proxy or a redirect, you're already implementing middleware. Mine as well blacklist the dangerous API endpoints in that module. Again I suggest you look at...