# CreateTransaction Failed UNKNOWN\_ERROR

**URL:** <https://community.fireblocks.com/t/createtransaction-failed-unknown-error/1937>\
**Category:** Developer Discussion\
**Created:** [November 26, 2024, 3:37pm UTC](https://community.fireblocks.com/t/createtransaction-failed-unknown-error/1937 "2024-11-26T15:37:46Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![dinob](https://avatars.discourse-cdn.com/v4/letter/d/ec9cab/32.png) [@dinob](https://community.fireblocks.com/u/dinob)\
**Post date:** [November 26, 2024, 3:37pm UTC](https://community.fireblocks.com/t/createtransaction-failed-unknown-error/1937/1 "2024-11-26T15:37:46Z")

</div>

Hi,

I’m trying to deploy a simple the Simple Counter smart contract and call its functions.

After creating a Vault and Uploading the Contract Template successfully I call the contract template deploy endpoint which gives me a transaction ID.

I use that ID to send a CONTRACT\_CALL request at **/v1/transactions**.

I get status “SUBMITTED” but I if I look at the transaction history I can see the that it has failed.

```auto
	"status": "FAILED",
	"txHash": "",
	"subStatus": "UNKNOWN_ERROR",

```

is there a way to have more details on what exactly has went wrong?

Thanks  
Dinob

---

<div class="post-metadata">

**Author:** ![SlavaSereb](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@SlavaSereb](https://community.fireblocks.com/u/SlavaSereb)\
**Post date:** [November 27, 2024, 1:02pm UTC](https://community.fireblocks.com/t/createtransaction-failed-unknown-error/1937/2 "2024-11-27T13:02:06Z")

</div>

Hey @dinob,

Can you please share the failed transaction ID so we’ll be able to take a closer look?

---

<div class="post-metadata">

**Author:** ![dinob](https://avatars.discourse-cdn.com/v4/letter/d/ec9cab/32.png) [@dinob](https://community.fireblocks.com/u/dinob)\
**Post date:** [November 27, 2024, 2:02pm UTC](https://community.fireblocks.com/t/createtransaction-failed-unknown-error/1937/3 "2024-11-27T14:02:01Z")

</div>

Thanks Slava,

Id is 3b0deced-733b-456b-a02b-4e07010f7f9e

---

<div class="post-metadata">

**Author:** ![BetsalelKog](https://avatars.discourse-cdn.com/v4/letter/b/e8c25b/32.png) [@BetsalelKog](https://community.fireblocks.com/u/BetsalelKog)\
**Post date:** [December 1, 2024, 7:40am UTC](https://community.fireblocks.com/t/createtransaction-failed-unknown-error/1937/4 "2024-12-01T07:40:47Z")

</div>

Hi @dinob  
when sending a string, it must be a hex string. We got: ‘30fb48c8-0996-46e9-8b11-d578e8119f93’ in the One Time Address in the payload. (type=value\_error)

Please make sure the payload is correct and try it again

---

<div class="post-metadata">

**Author:** ![msantilal](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@msantilal](https://community.fireblocks.com/u/msantilal)\
**Post date:** [December 4, 2024, 2:16pm UTC](https://community.fireblocks.com/t/createtransaction-failed-unknown-error/1937/5 "2024-12-04T14:16:24Z")

</div>

Hey @BetsalelKog

Thanks for your response, we’ve adjusted the payload and can confirm that we get a successful response back from Fireblocks. The below is a response from the `/v1/transactions` endpoint.

```auto
{
  "id": "03cfd4b4-3955-41b4-b768-53e9776b7772",
  "status": "SUBMITTED",
  "systemMessages": null
}

```

Unfortunately, this is where we start to face problems again. Once the above is complete, we carry out a `GET` call to the `/v1/transactions`. In the `GET` call we can see that we’ve got an error.

The first time, the status was

```auto

"status": "FAILED",
"txHash": "",
"subStatus": "INSUFFICIENT_FUNDS_FOR_FEE",

```

The second time, the status is returned as the below.

```auto

"status": "FAILED",
"txHash": "",
"subStatus": "UNKNOWN_ERROR",

```

At this point we’re unsure why this is occurring and what the steps are to resolve these errors. I am unsure on how we’re to interact with our demo counter smart contract. Any help would be appreciated. Thanks!

---

<div class="post-metadata">

**Author:** ![BetsalelKog](https://avatars.discourse-cdn.com/v4/letter/b/e8c25b/32.png) [@BetsalelKog](https://community.fireblocks.com/u/BetsalelKog)\
**Post date:** [December 5, 2024, 6:59am UTC](https://community.fireblocks.com/t/createtransaction-failed-unknown-error/1937/6 "2024-12-05T06:59:28Z")

</div>

Hi @msantilal  
Again I can see you send to this One Time address 24abd0db-0c03-47a9-b114-f5640dcffc5e  
Can you please share the payload you send?

---

<div class="post-metadata">

**Author:** ![msantilal](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@msantilal](https://community.fireblocks.com/u/msantilal)\
**Post date:** [December 5, 2024, 10:35am UTC](https://community.fireblocks.com/t/createtransaction-failed-unknown-error/1937/7 "2024-12-05T10:35:49Z")

</div>

Hey @BetsalelKog,

This is the payload we are sending

```auto
{
  "operation" : "CONTRACT_CALL",
  "note" : "My First CreateTransaction",
  "externalTxId" : "856bdc45-9fc7-4d59-8585-9b1beb12ce46",
  "assetId" : "ETH_TEST5",
  "source" : {
    "type" : "VAULT_ACCOUNT",
    "id" : "32"
  },
  "destination" : {
    "type" : "ONE_TIME_ADDRESS",
    "oneTimeAddress" : {
      "address" : "24abd0db-0c03-47a9-b114-f5640dcffc5e"
    }
  },
  "amount" : "0.001",
  "treatAsGrossAmount" : false,
  "forceSweep" : false,
  "failOnLowFee" : false,
  "extraParameters" : {
    "contractCallData" : "0x3fb5c1cb0000000000000000000000000000000000000000000000000000000000000001"
  },
  "autoStaking" : false,
  "useGasless" : false
}

```

We provide the following headers along with the request

 ![image](https://us1.discourse-cdn.com/flex015/uploads/fireblocks/original/1X/26248b19b847e410abdc04b03e2a6b105ff04a99.png)

---

<div class="post-metadata">

**Author:** ![BetsalelKog](https://avatars.discourse-cdn.com/v4/letter/b/e8c25b/32.png) [@BetsalelKog](https://community.fireblocks.com/u/BetsalelKog)\
**Post date:** [December 5, 2024, 11:05am UTC](https://community.fireblocks.com/t/createtransaction-failed-unknown-error/1937/8 "2024-12-05T11:05:28Z")

</div>

@msantilal The address you put is not a valid one.  
I can see this CONTRACTCALL data is to advance the nonce for this address right?  
0x9E6890662b51914ee5CDd66852132828D93779ca

If yes please enter this address here  
“destination” : {  
“type” : “ONE\_TIME\_ADDRESS”,  
“oneTimeAddress” : {  
“address” : “0x9E6890662b51914ee5CDd66852132828D93779ca”  
}  
},

---

<div class="post-metadata">

**Author:** ![msantilal](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@msantilal](https://community.fireblocks.com/u/msantilal)\
**Post date:** [December 5, 2024, 11:11am UTC](https://community.fireblocks.com/t/createtransaction-failed-unknown-error/1937/9 "2024-12-05T11:11:44Z")

</div>

I can certainly try that and let you know in a few minutes.

Out of curiosity, in the `oneTimeAddress` field, we’re passing through the ID of the deployedContract which is returned to us as `24abd0db-0c03-47a9-b114-f5640dcffc5e`. Where is the `0x9E6890662b51914ee5CDd66852132828D93779ca` address retrieved from?

---

<div class="post-metadata">

**Author:** ![msantilal](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@msantilal](https://community.fireblocks.com/u/msantilal)\
**Post date:** [December 5, 2024, 11:16am UTC](https://community.fireblocks.com/t/createtransaction-failed-unknown-error/1937/10 "2024-12-05T11:16:55Z")

</div>

Gave the provided one time address a try, still getting.

```auto
"status": "FAILED",
"txHash": "",
"subStatus": "UNKNOWN_ERROR",

```

---

<div class="post-metadata">

**Author:** ![BetsalelKog](https://avatars.discourse-cdn.com/v4/letter/b/e8c25b/32.png) [@BetsalelKog](https://community.fireblocks.com/u/BetsalelKog)\
**Post date:** [December 5, 2024, 11:29am UTC](https://community.fireblocks.com/t/createtransaction-failed-unknown-error/1937/11 "2024-12-05T11:29:21Z")

</div>

This 0x9E6890662b51914ee5CDd66852132828D93779ca is the source address of the vault.  
you can see it in the vault in the console.

Please set the address with 0x  
use 0x9E6890662b51914ee5CDd66852132828D93779ca

---

<div class="post-metadata">

**Author:** ![msantilal](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@msantilal](https://community.fireblocks.com/u/msantilal)\
**Post date:** [December 5, 2024, 11:36am UTC](https://community.fireblocks.com/t/createtransaction-failed-unknown-error/1937/12 "2024-12-05T11:36:57Z")

</div>

Have tried with `0x`. Still no change.

Could you provide an example payload on what the system is expecting?

---

<div class="post-metadata">

**Author:** ![BetsalelKog](https://avatars.discourse-cdn.com/v4/letter/b/e8c25b/32.png) [@BetsalelKog](https://community.fireblocks.com/u/BetsalelKog)\
**Post date:** [December 5, 2024, 11:51am UTC](https://community.fireblocks.com/t/createtransaction-failed-unknown-error/1937/13 "2024-12-05T11:51:41Z")

</div>

Because you have 0 balance in the vault.

Use a fauct to get some ETH\_TEST5 and then try the payload with the 0x

---

<div class="post-metadata">

**Author:** ![msantilal](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@msantilal](https://community.fireblocks.com/u/msantilal)\
**Post date:** [December 5, 2024, 12:00pm UTC](https://community.fireblocks.com/t/createtransaction-failed-unknown-error/1937/14 "2024-12-05T12:00:39Z")

</div>

Ok gotcha, so I use a faucet and request ETH on the `0x9E6890662b51914ee5CDd66852132828D93779ca` account?

---

<div class="post-metadata">

**Author:** ![daramir-fb](https://avatars.discourse-cdn.com/v4/letter/d/b2d939/32.png) [@daramir-fb](https://community.fireblocks.com/u/daramir-fb)\
**Post date:** [December 6, 2024, 2:29am UTC](https://community.fireblocks.com/t/createtransaction-failed-unknown-error/1937/15 "2024-12-06T02:29:01Z")

</div>

Hi @msantilal , I’d like to pick it up from this comment of yours:

> [@msantilal](#):
>
> Out of curiosity, in the `oneTimeAddress` field, we’re passing through the ID of the deployedContract which is returned to us as `24abd0db-0c03-47a9-b114-f5640dcffc5e`. (…)

For this field, you need to pass the `contractAddress` (not ID) of your deployment, but it seems you don’t have a valid deployment yet. Please retry this deployment by referring to the pointers below:

- The `/v1/tokenization/templates` endpoint mentioned in one of your other posts will let you create a contract template to later reuse for deployments. I’m assuming you have successfully created the template, as per your initial post. I’m also assuming that now you are trying to deploy a contract instance of such template, to further perform a contract call.
- To deploy your template, for which you should have the template ID, please use the `/v1/tokenization/tokens` endpoint that is described in the OpenAPI spec (search for Fireblocks docs api swagger issueNewToken). This is the recommended endpoint to deploy contracts based on templates.
- **NOTE:** If you are using auto-fueling please revisit [Set Auto Fueling Property](https://developers.fireblocks.com/docs/set-auto-fueling-property) as your vault account still needs to have a gas token balance before the transaction is initiated.
- Your `CONTRACT_CALL` transaction seems mostly correct. The one time address to use, should actually be the address of your deployed contract.
- To find the address of your deployed contract, inspect the response of the “Issue New Token” request from above. If should have a metadata field with the contract address. Please see this sample return object from one of the SDKs, which documents return types and properties: [ts-sdk/docs/models/TokenLinkDto.md at master · fireblocks/ts-sdk · GitHub](https://github.com/fireblocks/ts-sdk/blob/master/docs/models/TokenLinkDto.md)

Happy to continue helping if you have questions on any of the above.
