xmtp / xps-gateway

XPS (XMTP Postal Service) JSON-RPC for xmtp-specific interactions with decentralized networks
https://xmtp.github.io/xps-gateway/
MIT License
2 stars 1 forks source link

Feature request: Add RPC endpoint for retrieving the nonce from the DIDRegistry smart contract #63

Closed insipx closed 8 months ago

insipx commented 8 months ago

Is your feature request related to a problem?

In order to sign things we need the nonce, but xps-gateway does not provide a way to retrieve this so libxmtp ends up pulling in DIDRegistry. in order to remove the dependency on DIDRegistry, xps-gateway should include an endpoint for retrieving the nonce.

Describe the solution to the problem

the DIDRegistry includes a smart-contract call, nonce that should be incorporated into a JSON-RPC endpoint