Replies: 1 comment
-
To get a singed transaction, you need to sign a hash of a borsh-serialized unsigned |
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
-
This is how to create signed transactions https://github.com/near/nearcore/blob/master/nearcore/src/runtime/mod.rs#L2245-L2253
The
&signer
object contains public and private key.Then used here https://github.com/near/near-jsonrpc-client-rs/blob/master/src/methods.rs#L294-L296
Converts signed transaction to json here https://github.com/near/near-jsonrpc-client-rs/blob/master/src/methods.rs#L312-L314
Sent over network here https://github.com/near/near-jsonrpc-client-rs/blob/master/src/lib.rs#L264
Can we not send signed transactions without including private key?
Beta Was this translation helpful? Give feedback.
All reactions