Creates a low-level farm API from an initialized provider.
Provider containing the farm package and object addresses.
ReadonlyaddressesPackage and shared-object addresses used by the farm contracts.
Complete transaction ready for signing and execution
Builds a transaction for granting a one-time admin capability for a staking pool
Complete transaction ready for signing and execution
Complete transaction ready for signing and execution
Builds a transaction for locking a staked position
Complete transaction ready for signing and execution
Complete transaction ready for signing and execution
Builds a transaction for renewing the lock on a staked position
Complete transaction ready for signing and execution
Builds a V2 transaction that updates the pool's maximum lock duration in milliseconds.
Builds a V2 transaction that updates the pool's minimum lock duration in milliseconds.
Complete transaction ready for signing and execution
Builds a transaction for setting the minimum stake amount for a staking pool
Complete transaction ready for signing and execution
Complete transaction ready for signing and execution
Builds a transaction for unlocking a staked position
Complete transaction ready for signing and execution
Builds a transaction for updating a staked position
Complete transaction ready for signing and execution
Complete transaction ready for signing and execution
ReadonlyeventFully qualified event types used by the farm event queries.
V1 reward-added event type.
V2 reward-added event type.
V1 pool-created event type.
V2 pool-created event type.
V1 principal-deposit event type.
V2 principal-deposit event type.
V1 reward-harvest event type.
V2 reward-harvest event type.
V1 emission-increase event type.
V1 reward-initialized event type.
V2 reward-initialized event type.
V1 lock event type.
V2 lock event type.
V1 relaxed-stake event type.
V1 strict-stake event type.
V2 strict-stake event type.
V1 unlock event type.
V2 unlock event type.
V2 emission-update event type.
V1 principal-withdrawal event type.
V2 principal-withdrawal event type.
ReadonlymoveMove abort messages keyed by package, module, and numeric error code.
ReadonlyobjectFully qualified object types used for V1 and V2 ownership reads.
V1 staked-position object type.
V2 staked-position object type.
V1 one-time-admin-cap object type.
V2 one-time-admin-cap object type.
V1 owner-cap object type.
V2 owner-cap object type, including its authority type arguments.
Begin harvest parameters including transaction, pool ID, and coin type
Transaction object argument for the harvest metadata
Creates a transaction to begin the reward harvesting process
Begin harvest parameters including transaction, position ID, pool ID, and coin type
Transaction object argument for the harvest cap
Pool creation parameters including wallet address, lock enforcements, durations, multiplier, stake amount, and coin type
Complete transaction ready for signing and execution
Builds a complete transaction for creating a new staking pool
Pool creation parameters including wallet address, lock enforcements, durations, multiplier, stake amount, and coin type
Complete transaction ready for signing and execution
Harvest parameters including wallet address, position IDs, pool ID, reward coin types, and optional claim as AfSui flag
Complete transaction ready for signing and execution
Builds a complete transaction for harvesting rewards from staked positions
Harvest parameters including wallet address, position IDs, pool ID, reward coin types, and optional claim as AfSui flag
Complete transaction ready for signing and execution
Increase emissions parameters including wallet address, owner cap ID, pool ID, rewards array with emission parameters and coin types, and stake coin type
Complete transaction ready for signing and execution
Builds a complete transaction for increasing the emission rate of rewards for a staking pool
Increase emissions parameters including wallet address, owner cap ID, pool ID, rewards array with emission parameters and coin types, and stake coin type
Complete transaction ready for signing and execution
Builds a transaction for removing undistributed reward coins from a staking pool (V1).
Requires the pool OwnerCap. The removal is specific to a rewardCoinType.
Complete transaction ready for signing and execution
Builds a transaction for removing undistributed reward coins from a staking pool (V2). Requires the pool OwnerCap and includes the on-chain version object.
Complete transaction ready for signing and execution
Unstake parameters including wallet address, position ID, pool ID, reward coin types, and coin type
Complete transaction ready for signing and execution
Builds a complete transaction for unstaking (withdrawing and destroying a position)
Unstake parameters including wallet address, position ID, pool ID, reward coin types, and coin type
Complete transaction ready for signing and execution
Withdraw parameters including wallet address, position ID, pool ID, withdraw amount, and coin type
Complete transaction ready for signing and execution
Builds a complete transaction for withdrawing principal from a staked position
Withdraw parameters including wallet address, position ID, pool ID, withdraw amount, and coin type
Complete transaction ready for signing and execution
Deposit parameters including transaction, position ID, pool ID, coin ID, and coin type
Transaction command to deposit principal
Creates a transaction to deposit additional principal to a staked position
Deposit parameters including transaction, position ID, pool ID, coin ID, and coin type
Transaction command to deposit principal
Destroy parameters including transaction, position ID, pool ID, and coin type
Transaction command to destroy the position
Creates a transaction to destroy a staked position
Destroy parameters including transaction, position ID, and coin type
Transaction command to destroy the position
End harvest parameters including transaction and harvest metadata
Transaction command to end the harvest
Creates a transaction to end the reward harvesting process
End harvest parameters including transaction and harvest cap
Transaction command to end the harvest
Deposit parameters including wallet address, position ID, pool ID, deposit amount, and coin type
Complete transaction ready for signing and execution
Builds a complete transaction for depositing additional principal to a staked position
Deposit parameters including wallet address, position ID, pool ID, deposit amount, and coin type
Complete transaction ready for signing and execution
Initialize rewards parameters including wallet address, owner cap ID, pool ID, reward amount, emission parameters, stake coin type, and reward coin type
Complete transaction ready for signing and execution
Builds a complete transaction for initializing rewards for a staking pool
Initialize rewards parameters including wallet address, owner cap ID, pool ID, reward amount, emission parameters, stake coin type, and reward coin type
Complete transaction ready for signing and execution
Staking parameters including wallet address, lock enforcement, stake amount, pool ID, lock duration, and coin type
Complete transaction ready for signing and execution
Builds a complete transaction for staking coins
Staking parameters including wallet address, lock enforcement, stake amount, pool ID, lock duration, and coin type
Complete transaction ready for signing and execution
Top up rewards parameters including wallet address, owner cap ID, pool ID, rewards array with amounts and coin types, and stake coin type
Complete transaction ready for signing and execution
Builds a complete transaction for adding more rewards to a staking pool
Top up rewards parameters including wallet address, owner cap ID, pool ID, rewards array with amounts and coin types, and stake coin type
Complete transaction ready for signing and execution
Object containing wallet address
Array of PartialFarmsStakedPositionObject
Object containing wallet address
Array of StakingPoolOneTimeAdminCapObject
Object containing wallet address
Array of StakingPoolOwnerCapObject
Grant parameters including transaction, owner cap ID, recipient address, and reward coin type
Transaction command to grant the one-time admin cap
Creates a transaction to grant a one-time admin capability for a staking pool
Grant parameters including transaction, owner cap ID, recipient address, and reward coin type
Transaction command to grant the one-time admin cap
Harvest parameters including transaction, position ID, pool ID, harvest metadata, stake coin type, and reward coin type
Transaction object argument for the harvested rewards
Creates a transaction to harvest rewards from a staked position
Harvest parameters including transaction, harvest cap, position ID, pool ID, stake coin type, and reward coin type
Transaction object argument for the harvested rewards
Increase emissions parameters including transaction, owner cap ID, pool ID, emission parameters, stake coin type, and reward coin type
Transaction command to update emissions
Creates a transaction to increase the emission rate for a staking pool reward
Increase emissions parameters including transaction, owner cap ID, pool ID, emission parameters, stake coin type, and reward coin type
Transaction command to update emissions
Initialize reward parameters including transaction, pool ID, reward coin ID, emission parameters, stake coin type, and reward coin type
Transaction command to initialize the reward
Creates a transaction to initialize rewards for a staking pool
Initialize reward parameters including transaction, pool ID, reward coin ID, emission parameters, stake coin type, and reward coin type
Transaction command to initialize the reward
Creates a transaction to check if a staking pool is unlocked
Check parameters including transaction, pool ID, and coin type
Transaction object argument for the boolean result
Lock parameters including transaction, position ID, pool ID, lock duration, and coin type
Transaction command to lock the position
Creates a transaction to lock a staked position for a specific duration
Lock parameters including transaction, position ID, pool ID, lock duration, and coin type
Transaction command to lock the position
Pool creation parameters including transaction, lock enforcement, durations, multiplier, stake amount, and coin type
Transaction objects for the vault and owner cap
Creates a transaction for the current version of staking pool creation
Pool creation parameters including transaction, lock enforcements array, durations, multiplier, stake amount, and coin type
Transaction objects for the vault and authority cap
Creates a transaction to get the remaining rewards for a staking pool
Remaining rewards parameters including transaction, pool ID, and coin type
Transaction object argument for the vector of remaining rewards
Creates a Move call (V1) to remove undistributed reward coins from a staking pool.
Only callable by the pool owner (validated via ownerCapId). This does not claw back
rewards already accrued/claimed by stakers—only reduces the remaining reward balance
for the specified rewardCoinType.
Transaction assembly parameters
OwnerCap object ID authorizing the removal
Amount to remove (base units, encoded as u64)
Reward coin type to be removed
Stake coin type argument for the vault module
The staking pool (vault) object ID
Transaction instance to append the command to
The transaction command added to tx
Creates a Move call (V2) to remove undistributed reward coins from a staking pool.
Only callable by the pool owner (validated via ownerCapId). Includes the protocol
version object as required by V2 modules.
Transaction assembly parameters
OwnerCap object ID authorizing the removal
Amount to remove (base units, encoded as u64)
Reward coin type to be removed
Stake coin type argument for the vault module
The staking pool (vault) object ID
Transaction instance to append the command to
The transaction command added to tx
Renew lock parameters including transaction, position ID, pool ID, and coin type
Transaction command to renew the lock
Creates a transaction to renew the lock on a staked position
Renew lock parameters including transaction, position ID, pool ID, and coin type
Transaction command to renew the lock
Creates a transaction command to set the maximum lock duration (ms) for a staking pool. Owner-cap only; V2 vault module.
Creates a transaction command to set the minimum lock duration (ms) for a
staking pool. Owner-cap only; V2 vault module. Mirrors
setStakingPoolMinStakeAmountTxV2.
Min stake amount parameters including transaction, owner cap ID, pool ID, minimum amount, and stake coin type
Transaction command to set the minimum stake amount
Creates a transaction to set the minimum stake amount for a staking pool
Min stake amount parameters including transaction, owner cap ID, pool ID, minimum amount, and stake coin type
Transaction command to set the minimum stake amount
Share pool parameters including transaction, pool ID, and coin type
Transaction command to share the pool
Creates a transaction to share a staking pool, making it public
Share pool parameters including transaction, pool ID, and coin type
Transaction command to share the pool
Staking parameters including transaction, pool ID, coin ID, lock duration, and coin type
Transaction object argument for StakedPosition
Creates a transaction to stake coins in a staking pool
Staking parameters including transaction, pool ID, coin ID, lock duration, lock enforcement, and coin type
Transaction object argument for StakedPosition
Top up parameters including transaction, pool ID, reward coin ID, stake coin type, and reward coin type
Transaction command to add rewards
Creates a transaction to add more rewards to a staking pool
Top up parameters including transaction, pool ID, reward coin ID, stake coin type, and reward coin type
Transaction command to add rewards
Transfer parameters including transaction, owner cap ID, and recipient address
Transaction command to transfer the owner cap
Unlock parameters including transaction, position ID, pool ID, and coin type
Transaction command to unlock the position
Creates a transaction to unlock a staked position
Unlock parameters including transaction, position ID, pool ID, and coin type
Transaction command to unlock the position
Update parameters including transaction, position ID, pool ID, and coin type
Transaction command to update the position
Creates a transaction to update a staked position, recalculating rewards
Update parameters including transaction, position ID, pool ID, and coin type
Transaction command to update the position
Withdrawal parameters including transaction, position ID, pool ID, amount, and coin type
Transaction object argument for the withdrawn Coin
Creates a transaction to withdraw principal from a staked position
Withdrawal parameters including transaction, position ID, pool ID, amount, and coin type
Transaction object argument for the withdrawn Coin
Low-level farm API for reading farm-owned objects and composing Move transaction commands for V1 and V2 staking pools.
stakeTxV2append one Move command to aTransaction. Methods beginning withbuildorfetchBuildfetchBuildmethods may read owned coins throughAftermathApibefore they append commands. None of these methods submits a transaction to the network.Move abort descriptions are exposed through moveErrors. On-chain validation still applies when the completed transaction executes.