Token model
Return token amount, underlying equivalent, rate, block reference, decimals, and accounting behavior.
Review token modelA common staking API must preserve network-specific accounts, authorities, lifecycle clocks, reward mechanics, and withdrawal paths. Use a normalized core plus versioned protocol adapters.
Preserve deposit transaction evidence, validator public key and index, native consensus status, duty observations, exit state, and withdrawal evidence as separate but linked records.
validator_intentdeposit_actionvalidatorduty_observationexit_requestwithdrawal_observationstake_accountauthority_setdelegation_actionactivation_snapshotaccount_lineage_eventreward_observationA stake account is the durable position. Expose stake and withdraw authorities separately, bind every prepared transaction to immutable intent, and describe activation or deactivation with epoch-aware evidence.
Rebasing balances, value-accruing shares, pool tokens, protocol deposits, swaps, wraps, withdrawal queues, and claims need different fields. The resulting asset name is not enough to explain the action.
Return token amount, underlying equivalent, rate, block reference, decimals, and accounting behavior.
Review token modelIdentify deposit, wrap, swap, approval, fee, slippage, contract, and expiration steps.
Review routesTrack request, queue, claimable, claimed, and settled states with destination evidence.
Review withdrawalsCosmos SDK chains and other networks can expose delegation, redelegation, unbonding, validator shares, reward claims, and governance-specific constraints. Keep the normalized core small and retain protocol-native identifiers and states in a typed extension.
| Question | Why the adapter must answer it |
|---|---|
| What is the canonical position identifier? | Wallet, validator, delegation pair, stake account, or token claim can represent different ownership units. |
| Who signs each action? | Delegator, withdraw authority, validator key, multisig, or custody policy may govern different transitions. |
| When does state become effective? | Transaction inclusion, epoch boundaries, queues, unbonding periods, and finality differ. |
| How are rewards represented? | Balances, indexes, claims, distributions, and token exchange rates require different reconciliation. |
| Which actions are currently supported? | Capabilities can vary by network version, provider, environment, and policy. |
Learn how a small common schema, durable workflows, and evidence-aware retries support multi-chain operations.