我正在为内置于react-native的移动应用程序进行登录过程... https://files.slack.com/files-pri/T039NS2ED-FHARU61LH/image_from_ios.jpg
我想使用某种“发件人选项卡”来自动填写我的密码。我想知道是否有人知道什么可以引导我朝正确的方向前进。
我有一个烧瓶应用
@app.route("/hello")
def generater():
return "hello world
if __name__ == '__main__':
app.run()
Run Code Online (Sandbox Code Playgroud)
我的应用程序运行正常,但是我想知道在编译代码时如何向http://127.0.0.1:5000/hello发出请求
所以我已经连接到合同,这似乎工作正常,我正在尝试使用这个类:来自https://web3py.readthedocs.io/en/stable/web3.personal.html 的web3.personal.Personal和我似乎不明白我错了什么......当我打印(web3.personal.Personal)给我一个类对象但我似乎无法使用与这个类相关的任何函数,说我缺少“self”参数
contract_abi = my_abi
w3 = Web3(HTTPProvider(myurl))
myContract = w3.eth.contract(address ,abi)
ref = ref = web3.personal.Personal('web3')
print(ref) #this works
print(ref.newAccount(password='the-passphrase')) #This crashes
TypeError: newAccount() missing 1 required positional argument: 'self'
TypeError: 'property' object is not callable
Run Code Online (Sandbox Code Playgroud)