Skip to content

rekeyAccount

rekeyAccount(rekey, algod): Promise<SendTransactionResult>

Defined in: algokit-utils-ts/src/transfer/transfer.ts:125

AlgoRekeyParams

The rekey definition

AlgodClient

An algod client

Promise<SendTransactionResult>

The transaction object and optionally the confirmation if it was sent to the chain (skipSending is false or unset)

Usage example

await algokit.rekeyAccount({ from, rekeyTo }, algod)