Replies: 1 comment
-
We have #1559 for crafting a transaction, but it doesn't handle signing (by design). We're actively looking into solutions to this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
💭 Motivation
Currently, there is
ActionMutation
in GraphQL schema. The mutation makes a transaction with chosen action and stage the transaction automatically. To use the feature, you should make the headless have your private key through/set-private-key
HTTP request or--private-key
option. When everyone runs the headless locally, we made the mutation and used the feature in the launcher also. But the launcher became to make the actions through CLI tool and sign the transaction in local because it became default to use RPC mode.I think it cannot be recommended to handle and transfer private key in raw. So I want to obsolete the below APIs:
mutation.aciton
ActionMutation
GraphQL APIquery.keyStore
KeyStoreType
GraphQL APImutation.keyStore
KeyStoreMutation
GraphQL API/set-private-key
HTTP API❓ Migration
There are some ways to migrate your code using
ActionMutation
:actionQuery
GraphQL query. (See https://devforum.nine-chronicles.com/t/transfer-asset-with-graphql-queries/59/3)NineChronicles.Headless.Executable action
command. (Currently it's used by launcher).📆 Plans (not fixed)
@deprecated
directives but you can use them yet. But the launcher will not call/set-private-key
(current) so you must call/set-private-key
with your private key if you want to use the deprecated GraphQL APIs though we don't recommend to use it./set-private-key
request 9c-launcher#1940If you have opinions or questions for this plan, please leave as comments.
Beta Was this translation helpful? Give feedback.
All reactions