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

feat: open up avalanche methods CP-9587 #100

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

gergelylovas
Copy link
Contributor

Description

Opens up avalanche methods to allow external developers and dApps to interact with the P and X chains.
It exposes:

  • avalanche_sendTransaction. When user signs the transaction, it is sent immediately. Prompts the user with an approval window.
  • avalanche_signTransaction. Signs the transaction and returns the signed transaction to the caller. Prompts the user with an approval window.
  • avalanche_signMessage. Sign messages using the X/P derivation path. Can be used to prove owneship of the account simiar to how personal_sign works for eth. Prompts the user with an approval window.
  • avalanche_getAccountPubKey. Returns the the current account's evm and pvm public keys.

Changes

Change Core only method list.

Testing

Attempt to call the above mentioned RPC methods from a non Core and non localhost domains.

Checklist for the author

Tick each of them when done or if not applicable.

  • I've covered new/modified business logic with Jest test cases.
  • I've tested the changes myself before sending it to code review and QA.

@gergelylovas gergelylovas changed the title feat: open up avalanche methods feat: open up avalanche methods CP-9587 Nov 26, 2024
@gergelylovas gergelylovas merged commit 889e563 into main Nov 26, 2024
6 checks passed
@gergelylovas gergelylovas deleted the feat/open-up-avalanche-methods branch November 26, 2024 16:28
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

Successfully merging this pull request may close these issues.

3 participants