SmartContract pay with kdaFee fails

I want to pay a transaction fee with a kda and it fails. The transaction with KLV works without any problems.

let selectedkdaFee = "KONG-3UEQ";

const txOptions = selectedkdaFee ? { kdaFee: selectedkdaFee } : undefined;

const unsignedTx = await kleverInstance.buildTransaction(
      [{
        payload: {
          address: CONTRACT_ADDRESS,
          scType: 0,
          ...payload
        },
        type: Types.TransactionType.SmartContract
      }],
      [encodedData],
      txOptions,
      200000000
    );

The transaction is created, signed and fails during the broadcast.

broadcastResult: {
  "data": null,
  "error": "validation error: invalid transaction 0: invalid signature",
  "code": "bad_request"
}

unsigned tx:

unsignedTx: {
  "RawData": {
    "Nonce": 1250,
    "Sender": "YXePx2qiybMKCl8iISw+JTGURIQolI/KjiWI7s001VM=",
    "Contract": [
      {
        "Type": 63,
        "Parameter": {
          "type_url": "type.googleapis.com/proto.SmartContract",
          "value": "EiAAAAAAAAAAAAUAU0d6hXNjb8rQ5mN4NzxDt3OqanLVUxoMCgNLTFYSBQiAwtcvGhAKCFBJRy0xMjU2EgQIwIQ9"
        }
      }
    ],
    "Data": [
      "YWRkTGlxdWlkaXR5QDUwNDk0NzJkMzEzMjM1MzY="
    ],
    "KAppFee": 2000000,
    "BandwidthFee": 1953404,
    "Version": 1,
    "ChainID": "MTA5",
    "KDAFee": {
      "KDA": "S09ORy0zVUVR",
      "Amount": 3953
    }
  },
  "GasLimit": 100000000
}

@Duka @Nicollas

We’ll cheek it mate and circle back to you

1 Like

@CryptoJaeger are you using the klever extension to broadcast this transaction?

We noticed a bug on the Klever Extension on this situation. We’ve just upload a new version to Chrome Store. Please, update your extension to version 2.19.33 and let us know if the issue was fixed.

Sorry for the late reply. It is now working perfectly. :pray: :flexed_biceps:

SmartContract Transaction with kdaFee

1 Like