diff --git a/package.json b/package.json index 03d5247..a65b599 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kilnfi/sdk", - "version": "2.17.0", + "version": "2.17.1", "autor": "Kiln (https://kiln.fi)", "license": "BUSL-1.1", "description": "JavaScript sdk for Kiln API", diff --git a/src/services/ton.ts b/src/services/ton.ts index 4a39e7d..dbf3e2b 100644 --- a/src/services/ton.ts +++ b/src/services/ton.ts @@ -107,18 +107,21 @@ export class TonService extends Service { /** * Craft TON send from a vesting contract tx + * @param accountId id of the kiln account to use for the stake transaction * @param walletAddress sender of the transaction * @param vestingContractAddress vesting contract address * @param destinationAddress the destination to which the TON will be sent to * @param amountTon the amount of TON to send */ async craftSendFromVestingContractTx( + accountId: string, walletAddress: string, vestingContractAddress: string, destinationAddress: string, amountTon: number, ): Promise { const { data } = await api.post(`/v1/ton/transaction/send-from-vesting-contract`, { + account_id: accountId, wallet: walletAddress, vesting_contract_address: vestingContractAddress, destination_address: destinationAddress,