gateway hot wallet #8
Closed
jac18281828
started this conversation in
Ideas and Features
Replies: 1 comment
-
Discussed in video call with @insipx and @tsachiherman that we will not implement fail safety in this initial version. It will be an operational responsibility to minimize funds in the service hot wallet. If the service fails the funds will be lost. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This request is to implement support for a memory wallet available to all request paths in
xps-gateway
. One of the common tasks supported by thexps-gateway
will be implementation of subsidized transactions for EVM bound transactions. This can be handled by managing an internal wallet that supports a retrieval operation via the gateway RPC.When
xps-gateway
starts it should spin up a memory wallet from a source of cryptographic quality entropy. This wallet should be shared across request paths to implement transaction fee payment. A gateway administrator should query the gateway for the public key. It may then optionally transfer ETH to the wallet for the payment of gas fees.Documentation for JSON RPC Endpoint:
publicKey
Endpoint Name:
publicKey
Description:
The
publicKey
endpoint is designed to retrieve the Ethereum public key associated with an in-memory wallet running on a server. This endpoint is crucial for applications requiring verification of wallet ownership or for initiating blockchain transactions.Request:
POST
/rpc/v1/publicKey
Content-Type: application/json
jsonrpc
:"2.0"
method
:"publicKey"
params
: Array (optional parameters as required)id
: Request identifier (integer or string)Example Request Body:
Response:
200 OK
400 Bad Request
- Invalid request format or parameters.500 Internal Server Error
- Server or wallet-related error.Success Response Body:
Error Response Body:
Error Handling:
Security Considerations:
Usage Example:
Beta Was this translation helpful? Give feedback.
All reactions