Skip to content

Instantly share code, notes, and snippets.

@greatertomi
Last active July 2, 2024 08:08
Show Gist options
  • Save greatertomi/b114830c604633e00752eb2780c4e601 to your computer and use it in GitHub Desktop.
Save greatertomi/b114830c604633e00752eb2780c4e601 to your computer and use it in GitHub Desktop.
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"description": "The transaction structure for shared wallet",
"properties": {
"version": {
"type": "string",
"description": "The version of the schema you are using",
"pattern": "^\\d+\\.\\d+\\.\\d+$"
},
"metadata": {
"type": "object",
"properties": {
"createdAt": {
"type": "string",
"format": "date-time",
"description": "The date and time the transaction was created"
},
"note": {
"type": "string",
"description": "A note about the transaction"
},
"createdBy": {
"type": "string",
"description": "The public key of the creator of the transaction"
},
"chainId": {
"type": "string",
"description": "The CIP34 formatted chainId the transaction should be submitted to",
"pattern": "^cip34:[01]-\\w+$"
}
},
"required": ["createdAt", "createdBy", "chainId"]
},
"transaction": {
"type": "object",
"properties": {
"cborHex": {
"type": "string",
"description": "This contains the CBOR for the transaction"
}
},
"required": ["cborHex"]
}
},
"required": ["version", "metadata", "transaction"],
"additionalProperties": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment