var myHeaders = new Headers();
myHeaders.append("Authorization", "03374415-xxxx-xxxx-xxxx-1277d243034e");
myHeaders.append("Content-Type", "application/json");
var raw = JSON.stringify({
"chainId": 80001,
"dAppId": "DEV_DEMO_PACE_xx_xxxxxxxx",
"request": {
"data": "0x7698exxx",
"from": "0x313bA6399d60ff7c2ee8bCb01c2dc9C5e1xxxxxx",
"gas": 43562,
"nonce": 0,
"to": "0x362149525adee7Axxxxxxxxxxxxxxxxxxxxxx",
"value": 0
},
"signature": "0x"
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://api.krypcore.com/api/v0/gasless/sendTransaction", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));