post
signTransaction
https://api.wallet.kaiju3d.com/v1/kms/signTransaction
This API will sign the transaction for the specified blockchain.
HEADERS
Key | Description |
---|---|
authProviderId | Required. The verifier Id of the associated authProvider. |
accessKey | Required. The access key for the related project. |
token |
BODY PARAMETERS
Key | Description |
---|---|
Required. The email address of the user. | |
blockchain | Required. The blockchain being used. |
transactionType | Required. The type of transaction being performed. |
payload | Required. Object containing transaction details. |
RESPONSES TYPES
Status Code | Description |
---|---|
200 | Success. The request was processed successfully. |
401 | Unauthorized. The request requires user authentication, typically due to invalid or missing credentials. Ensure that a valid authentication token or credentials are provided. |
RESPONSE BODY PARAMETERS
Key | Description |
---|---|
The email address of the user. | |
blockchain | The blockchains been used. |
transactionType | The type of transaction performed. |
signedPayload | Object containing signed transaction details. |
CURL REQUEST
curl --request POST \
--url https://api.wallet.kaiju3d.com/v1/kms/signTransaction \
--header 'accept: application/json' \
--header 'accessKey: vj*?pr$1_0fK$7B+p7LbCFQRKUJ=lS1q2w3' \
--header 'authProviderId: 65fc4fa3d948cc6313aca1200o9i8' \
--header 'content-type: application/json' \
--header 'token: eyJhbGciOiJSUzI1NiIsImtpZCI6IjY3NGRiYmE4ZmFlZTY5YWNhZTFiYzFiZTE5MDQ1MzY3OGY0NzI4MDMiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJodHRwczovL2FjY291bnRzLmdvb2dsZS5jb20iLCJhenAiOiIzMDAzNzIwMzQyMDItY2NidmxsdTE2Z2w4NWswMjEyZmdmaHVtcmZhb3Npa3QuYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJhdWQiOiIzMDAzNzIwMzQyMDItY2NidmxsdTE2Z2w4NWswMjEyZmdmaHVtcmZhb3Npa3QuYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJzdWIiOiIxMTI3MjU4MTQwMzY4MTAxNjI2MjEiLCJlbWFpbCI6ImFwcGthaWp1QGdtYWlsLmNvbSIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJhdF9oYXNoIjoiUEVsOEZoeHpLVGxUZzVTeW9PckluZyIsIm5hbWUiOiJLYWlqdSBBcHAiLCJwaWN0dXJlIjoiaHR0cHM6Ly9saDMuZ29vZ2xldXNlcmNvbnRlbnQuY29tL2EvQUNnOG9jTGVIX21PWU9rM0dOOVJqZWJYWVd1WlNXMzFOcGZjOEJUQXJJOUJmeW9HcDlQR2t4ND1zOTYtYyIsImdpdmVuX25hbWUiOiJLYWlqdSIsImZhbWlseV9uYW1lIjoiQXBwIiwiaWF0IjoxNzE3NzI5MTYwLCJleHAiOjE3MTc3MzI3NjB9.bw1IH8tlekgFteySjrbO2k4UR-byiC0PywCK6mz-rcdgnQhfQITL_8GyZNJozs1K2-ldaT0SRkhrErG8WG0CD08bltqD-O5OrUrwQYJO8Rj1u5klgUB44TuF1k8MoEUQ6AmOkiDNd8fbTwl-BDtqzSPmBCEPde6nMlqgmvFDjzKgJvF5P9vMQsiCGX9YjI66tW_pAgNqZFYsdTUKxHBpGTVam7VHoGEPhfN-mZtnd55To6kgWSx_46i4dNJU75h0zfzsPVUWfyIBYOdxAaG4yAn6LjXfxWuOqHH0ZDonT2lxmoAEioru6GlMoSK4SAkF4RgYMrUWKWLzGJQgwHFXgw' \
--data '
{
"email": "youremail@mail.com",
"blockchain": "xrpl",
"transactionType": "transaction",
"payload": {
"transaction": {
"Account": "rJmqaSEz1tLCgcufoFwMnY2rk14qasasqwasadasaa",
"TransactionType": "Payment",
"Fee": "10",
"Sequence": 45198975,
"Flags": 0,
"LastLedgerSequence": 45200023,
"SigningPubKey": "",
"Amount": "22000000",
"Destination": "XVCNuBBuR5ckNVb2g6GDZV922WwsivNGfenAHrnaasacassdfthgrjjy"
},
"transactionHash": ""
}
}
'
RESPONSES
{
"message": "success",
"code": 0,
"data": {
"email": "youremail@mail.com",
"blockchain": "xrpl",
"transactionType": "transaction",
"signedPayload": {
"transaction": {
"Account": "rJmqaSEz1tLCgcufoFwMnY2rk14qasasqwasadasaa",
"TransactionType": "Payment",
"Fee": "10",
"Sequence": 45198975,
"Flags": 0,
"LastLedgerSequence": 45200023,
"SigningPubKey": "EDC989133F5464E8DF5AAFCC78620D69E505203542C999C9FB433ACB7A4EF21DFSASEWAD",
"TxnSignature": "151921C4AFCC3CA4556B10D7577FC64A8B21A9A4B362211293462C28722341FC21617ECE4597B728FA2A946A403280938B708BAF2825C5390694017CF09CE111123",
"Amount": "22000000",
"Destination": "XVCNuBBuR5ckNVb2g6GDZV922WwsivNGfenAHrnaasacassdfthgrjjy"
},
"transactionHash": ""
}
}
}
ℹ️
Each time the signTransaction API is called, a new user token must be generated. This token will have a validation period of 60 seconds and must be called within this timeframe. Above validation only applies to Firebase and Google providers.For Discord, the signTransaction API call will be successful as long as the token is valid.