Contact Operations – Registry – GrantInstallation #13
Closed
jac18281828
started this conversation in
Ideas and Features
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Initial discussion is here
Device installation is supported by
GrantInstallation
.JSON-RPC Endpoint Documentation
Endpoint:
grantInstallation
Description
The
grantInstallation
endpoint is responsible for storing the contact bundle for the XMTP device installation. The request must be made to a valid did with an XMTP profile.Request
The request for this endpoint should contain the necessary information to authenticate and validate the installation request including the wallet signed payload
Parameters:
DID
(string): Unique XMTP identifier for the user requesting the installation.name
(bytes32): Unique identifier naming bundled contents. NOTE 32 byte maximumvalue
(bytes): Installation bundle bytes payload.V
(int): signature VR
(bytes): signature RS
(bytes): signature SExample Request:
Response
The response will indicate whether the installation is granted and may include additional information or instructions.
Result Fields:
status
(string): The status of the request, e.g., 'completed'.message
(string, optional): Additional information or reason for the decision.tx
(string, optional): transaction receiptExample Response:
Error Handling
In case of an error, the response will include an error object with details.
Error Object Fields:
code
(integer): Numeric code representing the error type.message
(string): Description of the error.Example Error Response:
Security Considerations
All requests to
grantInstallation
must be made over a secure channel. Ensure that user and application IDs are validated, and proper authentication mechanisms are in place to prevent unauthorized requests.Beta Was this translation helpful? Give feedback.
All reactions