Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some Questions regarding "change_methods" equivalent in near-api-js #2

Closed
Wabinab opened this issue Apr 2, 2022 · 1 comment
Closed

Comments

@Wabinab
Copy link

Wabinab commented Apr 2, 2022

Hi, I figured function call is NearApi::Action.call(...), but how exactly do you make one? When I try tracking it down, it seems like there's some problem with access key:

Particularly,

key = NearApi::Key.new
api.view_access_key(key)

=> {"jsonrpc"=>"2.0",
 "result"=>
  {"block_hash"=>"ARj9AriWfpfBWo5m7V6bob55Q57YUaE13SXhrkqXj3c",
   "block_height"=>86533146,
   "error"=>
    "access key ed25519:dKYi64UHPLfD4C7qUUWD3eWw1rv5GjLnTCzsNxo4W6Z does not exist while viewing",
   "logs"=>[]},
 "id"=>"dontcare"}

have an error.

That is, I assume the public key is the "Hash" from the Explorer, but am I correct about that? If not, how do I get the key?

And is there a login function to login with wallet for this?

Thanks in advance.

@2rba
Copy link
Collaborator

2rba commented Mar 20, 2024

the function call is supposed to be signed with private key (keypair)

@Wabinab Wabinab closed this as completed Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants