Skip to content

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

@LeilaWang

Description

@LeilaWang

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions