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.
The client takes a server url in constructor and calls the server for each method call:
Default serverUrl:
localhost:45730We should be able to generate the client and the server using the json-rpc package, which will be moved to
foundationlater.