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

Provide an HTTPAztecRPCClient that connects to an HTTP server. #52

Closed
LeilaWang opened this issue Mar 15, 2023 · 1 comment
Closed

Provide an HTTPAztecRPCClient that connects to an HTTP server. #52

LeilaWang opened this issue Mar 15, 2023 · 1 comment
Assignees

Comments

@LeilaWang
Copy link
Collaborator

The client takes a server url in constructor and calls the server for each method call:

class HTTPAztecRPCClient implements AztecRPCClient {
  constructor(serverUrl: string) {}

  sendTx(tx) {
    return this.server.post('aztec_sendTx', [tx]);
  }
}

Default serverUrl: localhost:45730

We should be able to generate the client and the server using the json-rpc package, which will be moved to foundation later.

@LeilaWang LeilaWang added this to A3 Mar 15, 2023
@github-project-automation github-project-automation bot moved this to Todo in A3 Mar 15, 2023
@LeilaWang LeilaWang added this to the 📜 Deploy a Contract milestone Mar 15, 2023
@ludamad
Copy link
Collaborator

ludamad commented May 1, 2023

Going through my assigned issues, too easy to miss them :D. We simply don't do this over HTTP yet, right?

@ludamad ludamad closed this as completed Jun 12, 2023
@github-project-automation github-project-automation bot moved this from Todo to Done in A3 Jun 12, 2023
ludamad pushed a commit that referenced this issue Jul 14, 2023
…te now that barretenberg is in its own submodule. (#52)
@iAmMichaelConnor iAmMichaelConnor removed this from A3 Jul 26, 2023
codygunton pushed a commit that referenced this issue Jan 23, 2024
…te now that barretenberg is in its own submodule. (#52)
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