电子钱包jsonRPC身份验证 [英] electrum wallet jsonRPC authentication

查看:102
本文介绍了电子钱包jsonRPC身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Electrum rpc,这给了我身份验证错误.我已经尝试过通过Linux bash上的基本身份验证和php通过用户身份验证,但是它们都不起作用.

i am trying to use electrum rpc , it is giving me authentication error. i have tried user pass via Basic Authentication on Linux bash and via php but non of them works.

在拨片漏洞升级之前,我的php代码工作正常.我也尝试过bash上的curl,但是我得到了同样的错误

My php code was working fine before plectrum vulnerability upgrade. also i have tried curl on bash , but i get same error

Error code explanation: 401 - No permission -- see authorization schemes.

我尝试过

curl --data-binary '{"id":"curltext","method":"listaddresses","params":{"funded":true}}' http://test:abc@127.0.0.1:7777

curl --data-binary '{"id":"curltext","method":"listaddresses","params":{"funded":true}}' http://127.0.0.1:7777

curl -utest http://127.0.0.1:7777

但是electrum服务器从不接受任何身份验证.

but electrum server never accepts any authentication.

我也尝试过禁用rpc身份验证,但仍然出现相同的错误

I have also tried by disabling the rpc authentication , but still I get the same error

推荐答案

您还可以使用传递用户名和密码进行卷曲的其他模式,例如:

You can also use an other schema of passing user and password to curl, for example:

curl --data-binary '{"params": {"amount": 0.0021651117760957575, "expiration": 1212}, "method": "addrequest", "id": "c6cf406e-0c4b-4eb7-b3d2-1712a4d3a553"}' http://user:LMt2FDyG-c543kc23H-NA==@10.78.1.1:7049

这篇关于电子钱包jsonRPC身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆