Skip to content

Commit 836830b

Browse files
authored
add account id to atom redelegate (#74)
1 parent 0298e0b commit 836830b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/services/atom.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,14 @@ export class AtomService extends Service {
103103

104104
/**
105105
* Craft atom redelegate transaction
106+
* @param accountId id of the kiln account to use for the new stake
106107
* @param pubkey wallet pubkey, this is different from the wallet address
107108
* @param validatorSourceAddress validator address of the current delegation
108109
* @param validatorDestinationAddress validator address to which the delegation will be moved
109110
* @param amountAtom how many tokens to redelegate in ATOM
110111
*/
111112
async craftRedelegateTx(
113+
accountId: string,
112114
pubkey: string,
113115
validatorSourceAddress: string,
114116
validatorDestinationAddress: string,
@@ -118,6 +120,7 @@ export class AtomService extends Service {
118120
const { data } = await api.post<AtomTx>(
119121
`/v1/atom/transaction/redelegate`,
120122
{
123+
account_id: accountId,
121124
pubkey: pubkey,
122125
validator_source: validatorSourceAddress,
123126
validator_destination: validatorDestinationAddress,

0 commit comments

Comments
 (0)