Kernel Account API
Submit a Transaction
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Authorization", "Bearer {{access_token}}");
var raw = JSON.stringify({
"userId": "test:elonmusk",
"chain": "matic",
"to": [
"0x74427681c620DE258Aa53a382d6a4C865738A06C"
],
"value": [
"10000000000000"
],
"data": [
"0x"
],
"delegatecall": 0, // Optional parameter. Set to 1 for a delegatecall().
"auth": ""
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://paymagicapi.com/v1/kernel/tx", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));Sign a Message
Last updated