signKdaTransaction = async () => {
if (!window.clover_kadena) {
this.console('wallet not injected!')
var mkReq = function(cmd) {
"Content-Type": "application/json"
body: JSON.stringify(cmd)
const account = await window.clover_kadena.getAccount()
await new Promise((resolve) => setTimeout(resolve, 3000))
pactCode: `(free.hello-world.set-message ${JSON.stringify('hello test')})`,
Pact.lang.mkCap("Gas capability", "description of gas cap", "coin.GAS", []).cap,
const result = await window.clover_kadena.sign(signCmd)
const txRes = await fetch(`https://api.testnet.chainweb.com/chainweb/0.0/testnet04/chain/0/pact/api/v1/send`, mkReq(result));
const tx = await txRes.json();