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

[Feature Request] Support EIP-1193 Provider API #16

Open
BrettCleary opened this issue Mar 31, 2023 · 0 comments
Open

[Feature Request] Support EIP-1193 Provider API #16

BrettCleary opened this issue Mar 31, 2023 · 0 comments

Comments

@BrettCleary
Copy link
Collaborator

Summary

As a user of web3.unreal, I would like to interface directly with a provider object in C++ or in Blueprints that matches the EIP-1193 spec and subscribe to its events.

Provider API Methods

  • request
  • on
  • removeListener

Provider Events

  • message
  • connect
  • disconnect
  • chainChanged
  • accountsChanged

Implementation

Currently only HyperPlay and 3rd party HTTP providers are supported for request only

Support for websocket provider connections to HyperPlay or 3rd party providers should be added

  • or HTTP polling

Use Cases

  • Listening to a contract event from client or server code in Unreal Engine
  • Prompting the user to reconnect if a disconnect event is fired
  • Updating the account address or chainId in game if the user changes which account is connected in hyperplay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant