Create action and transaction with GraphQL API

Hmm, if you want to get a public key of a private key you don’t have, you cannot derive its public key but you can get the public key from other’s transaction. Or if you don’t want to handle your private key in raw, you can use planet key export --public-key command.

If the two answer don’t suit to your case, could you describe your situation in detail?

1 Like

is what i want. thank you

1 Like

Hello.
I’m not sure if this is the right place to ask about the dailyReward mutation in graphQL.
Seems I’m missing something.
Maybe somebody can point me to the right direction please?


Hello, green :slight_smile: If you want to use GraphQL mutation, you should pass your private key to your local headless by --miner-private-key option. I guess it will be gone then.

As a notice, we are planning to obsolete mutations to use private key. We are preparing a library to sign your transactions in your client, not through headless. See also Obsolete APIs to handle private key from headless · Discussion #1567 · planetarium/NineChronicles.Headless · GitHub.

Hi @moreal,

Thank you for your reply.

You mentioned “local headless” but I’m using the RPC node “http://9c-main-rpc-3.nine-chronicles.com/graphql”. Does it mean this is not possible thru RPC?

What I’m currently want to achieve is to claim daily rewards away from my PC thru a simple node.js app. Is this possible?

Again, thank you for your time.

1 Like

I’m sorry for too late reply :crying_cat_face:

You mentioned “local headless” but I’m using the RPC node “http://9c-main-rpc-3.nine-chronicles.com/graphql ”. Does it mean this is not possible thru RPC?

It means that this is not possible through RPC.

What I’m currently want to achieve is to claim daily rewards away from my PC thru a simple node.js app. Is this possible?

Yes. I made lib9c-wasm and our team made sphere, a transaction signing interface. The post may be appeared soon.

Thank you :pray:

1 Like