Replies: 4 comments 5 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Please be aware that web wallet connects to API nodes directly, just like cli_wallet (which connects to an API node too). And web wallet manages private keys too. In this case, you need to sign the transaction (which contains the "custom_operation") in the web wallet (just like what cli_wallet does), then broadcast the signed transaction to the network via the API node, but not call a wallet API in the web wallet - you should not call "wallet API" in web wallet but only "node APIs". See https://dev.bitshares.works/en/master/development/apps/network_general.html for network structure. |
Beta Was this translation helpful? Give feedback.
-
By signing the transaction in the web wallet, you mean I need to modify the web wallet code to sign a transaction in it by using some library like bitsharesjs ? Also, for signing a transaction I will need a private key but when the user logs-in or creates an account from the web wallet they only have a random password generated by browser. Do you mean to say something like?.... - "I should extract the private key from other part of the codebase of the web wallet (bitshares-ui) in my Update Profile Form, and then sign a transaction in this form itself".
Another thing, the node api as I saw doesn't have the |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
How can I allow the user to store its profile's data on blockchain ? My use case goes something like this :-
I want to store user profile's data like username, age, email and related fields on blockchain itself. However, the problem is when I try to make an API Call to store data, I get a
missing_active_authority
error.Example : Based on my observations, If I am trying to store data inside nathan's account, then nathan's account must satisfy following two conditions inside cli_wallet :-
Cli_Wallet
using theimport_key account_name [private_key]
command.Example :
account_store_map
function. But, the CLI Wallet is giving the missing required active authority error.Missing Required Active Authority Error :-
I wanted to ask, is there any other way to allow user to store data? How a typical user on web wallet perform the operations, why don't they get this error and is there anyway to achieve something similar to this using an API built from scratch ?
The above operation can be easily done through
CLI Wallet
but if I am implementing this functionality in my app, then a typical user will not be using the cli wallet right ? That's why I want to explore if this would be possible, any guidance and help will be greatly appreciated from the community.Beta Was this translation helpful? Give feedback.
All reactions