Skip to main content

claimOwnership

@totemsdk/statechain


@totemsdk/statechain / claimOwnership

Function: claimOwnership()

claimOwnership(chain, leaseProvider): Promise<ClaimPayload>

Cooperative claim — current owner + SE co-sign a claim TX.

Public API: claimOwnership(chain, leaseProvider) -> ClaimPayload

Both chain.currentOwner.sign and leaseProvider.seClient.blindSign sign computeTransactionDigest(tx) — the actual TX body hash — satisfying the MULTISIG(2 STATE(0) SE) spending path. No timelock required.

Parameters

chain

StateChain

Active or claiming statechain.

leaseProvider

StatechainLeaseProvider

Bundle: SE client for countersigning + optional broadcast.

Returns

Promise<ClaimPayload>

ClaimPayload with txHex, claimAddress, chainId, coinId, and optional txpowId.