From 5142c028c010f6b95bc3dfadca4946de788779c8 Mon Sep 17 00:00:00 2001 From: Elliott Denis Date: Mon, 23 Dec 2024 14:25:11 +0000 Subject: [PATCH] up url --- examples/trx.ts | 4 ++-- src/fireblocks.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/trx.ts b/examples/trx.ts index 64b71c6..570af00 100644 --- a/examples/trx.ts +++ b/examples/trx.ts @@ -19,7 +19,7 @@ const vault: FireblocksIntegration = { try { console.log('crafting...'); - const tx = await k.client.POST('/trx/stake' as '/trx/transaction/stake', { + const tx = await k.client.POST('/trx/transaction/stake', { body: { account_id: '', owner_address: 'TAERHY5gyzDRmAaeqqa6C4Fuyc9HLnnHx7', @@ -34,7 +34,7 @@ try { const signResponse = await k.fireblocks.signTrxTx(vault, tx.data.data); console.log('broadcasting...'); - const broadcastedTx = await k.client.POST('/trx/broadcast' as '/trx/transaction/broadcast', { + const broadcastedTx = await k.client.POST('/trx/transaction/broadcast', { body: { signed_tx_serialized: signResponse.signed_tx.data.signed_tx_serialized, }, diff --git a/src/fireblocks.ts b/src/fireblocks.ts index 2ab0e88..fc7e264 100644 --- a/src/fireblocks.ts +++ b/src/fireblocks.ts @@ -1088,7 +1088,7 @@ export class FireblocksService { const signature = `${fbTx.signedMessages[0].signature.fullSig}0${fbTx.signedMessages[0].signature.v}`; - const preparedTx = await this.client.POST('/trx/prepare' as '/trx/transaction/prepare', { + const preparedTx = await this.client.POST('/trx/transaction/prepare', { body: { unsigned_tx_serialized: tx.unsigned_tx_serialized, signature: signature,