Skip to content

Types

All types are returned as SimpleNamespace objects with attribute access. They are not importable classes at runtime — they exist only for documentation and IDE type checking.

Reference to an on-chain object.

FieldTypeDescription
idstrObject ID
versionintObject version
digeststrObject digest

Object reference with owner information.

FieldTypeDescription
idstrObject ID
versionintObject version
digeststrObject digest
ownerstrOwner address

Result of transaction execution.

FieldTypeDescription
statusstrExecution status ("success" or error)
gas_usedGasUsedGas usage breakdown
transaction_digeststrTransaction digest
createdlist[OwnedObjectRef]Objects created
mutatedlist[OwnedObjectRef]Objects mutated
deletedlist[str]Object IDs deleted

Gas usage breakdown.

FieldTypeDescription
computation_costintComputation gas cost
storage_costintStorage gas cost
storage_rebateintStorage rebate
non_refundable_storage_feeintNon-refundable portion

Information about an epoch.

FieldTypeDescription
epochintEpoch number
first_checkpoint_idintFirst checkpoint in this epoch
epoch_total_transactionsintTotal transactions in epoch
reference_gas_priceintReference gas price
epoch_start_timestamp_msintEpoch start time (ms since Unix epoch)
end_of_epoch_infoEndOfEpochInfo?Present only for completed epochs
FieldTypeDescription
last_checkpoint_idintLast checkpoint in the epoch
epoch_end_timestamp_msintEpoch end time
reference_gas_priceintFinal gas price

Full system state for the current epoch.

FieldTypeDescription
epochintCurrent epoch
protocol_versionintProtocol version
validatorsValidatorSetActive and pending validators
parametersSystemParametersOn-chain protocol parameters
epoch_start_timestamp_msintEpoch start time
validator_report_recordsdict[str, list[str]]Validator report records
model_registryobjectModel registry state
emission_poolEmissionPoolEmission pool state
target_stateTargetStateTarget generation state
safe_modeboolWhether safe mode is active
safe_mode_accumulated_feesintFees accumulated during safe mode
safe_mode_accumulated_emissionsintEmissions accumulated during safe mode

On-chain protocol configuration.

FieldTypeDescription
epoch_duration_msintEpoch duration in milliseconds
validator_reward_allocation_bpsintValidator reward share (basis points)
model_min_stakeintMinimum model stake (shannons)
model_architecture_versionintRequired model architecture version
model_reveal_slash_rate_bpsintSlash rate for missed reveals
model_tally_slash_rate_bpsintSlash rate for tally failures
target_models_per_targetintModels assigned per target
target_embedding_dimintRequired embedding dimension
target_reward_allocation_bpsintTarget reward share
target_hits_per_epochintTarget hits per epoch
target_submitter_reward_share_bpsintSubmitter’s reward share
target_model_reward_share_bpsintModel owner’s reward share
target_claimer_incentive_bpsintClaimer incentive
submission_bond_per_byteintSubmission bond per byte
challenger_bond_per_byteintChallenger bond per byte
max_submission_data_sizeintMaximum data size
base_feeintBase transaction fee
write_object_feeintFee per object write
FieldTypeDescription
balanceintRemaining emission balance
emission_per_epochintEmissions distributed per epoch
FieldTypeDescription
metadataValidatorMetadataValidator addresses and keys
voting_powerintVoting power
staking_poolStakingPoolStaking pool state
commission_rateintCurrent commission rate (bps)
next_epoch_stakeintProjected stake for next epoch
next_epoch_commission_rateintCommission rate for next epoch
FieldTypeDescription
soma_addressstrValidator’s SOMA address
protocol_pubkeystrProtocol public key
network_pubkeystrNetwork public key
worker_pubkeystrWorker public key
net_addressstrNetwork address
p2p_addressstrP2P address
primary_addressstrPrimary address
proxy_addressstrProxy address
proof_of_possessionstrProof of possession

Pending updates are available as next_epoch_* optional fields.

FieldTypeDescription
total_stakeintTotal staked across all validators
validatorslist[Validator]Active validators
pending_validatorslist[Validator]Pending validators
pending_removalslist[int]Indices of validators pending removal
staking_pool_mappingsdict[str, str]Pool ID → validator address
inactive_validatorsdict[str, Validator]Inactive validators
at_risk_validatorsdict[str, int]Validators at risk of removal
FieldTypeDescription
idstrPool object ID
activation_epochint?Epoch when pool was activated
deactivation_epochint?Epoch when pool was deactivated
soma_balanceintTotal SOMA balance
rewards_poolintAccumulated rewards
pool_token_balanceintPool token supply
exchange_ratesdict[int, PoolTokenExchangeRate]Epoch → exchange rate
pending_stakeintStake pending activation
pending_total_soma_withdrawintSOMA pending withdrawal
pending_pool_token_withdrawintPool tokens pending withdrawal
FieldTypeDescription
soma_amountintSOMA in the rate
pool_token_amountintPool tokens in the rate
FieldTypeDescription
idstrTarget object ID
statusstr"open", "filled", or "claimed"
embeddinglist[float]Target embedding vector
model_idslist[str]Assigned model IDs
distance_thresholdfloatMaximum distance for valid submissions
reward_poolintReward in shannons
generation_epochintEpoch when target was generated
bond_amountintRequired bond amount
submitterstr?Submitter address (if filled)
winning_model_idstr?Winning model ID (if filled)

Global target generation state.

FieldTypeDescription
distance_thresholdobjectCurrent distance threshold
targets_generated_this_epochintTargets generated so far
hits_this_epochintSuccessful submissions this epoch
hits_emaintExponential moving average of hits
reward_per_targetintCurrent reward per target
FieldTypeDescription
targetslist[Target]Target list
next_page_tokenstr?Pagination token

Model weight manifest returned by get_model_manifests().

FieldTypeDescription
urlstrURL of encrypted weights
checksumstrWeights file checksum
sizeintWeights file size in bytes
decryption_keystr?AES decryption key (if revealed)

Tokenized batch from soma_models.v1.tokenizer.tokenize().

FieldTypeDescription
token_idslist[list[int]][batch, seq_len] — input token IDs
targetslist[list[int]][batch, seq_len] — next-token targets
pos_idslist[list[int]][batch, seq_len] — global byte offsets
FieldTypeDescription
challengeChallengeDetailChallenge details
FieldTypeDescription
idstrChallenge object ID
statusstrChallenge status
challengerstrChallenger address
target_idstrTarget being challenged
epochintChallenge epoch
FieldTypeDescription
challengeslist[ChallengeDetail]Challenge list
next_page_tokenstr?Pagination token

Result of scoring a data submission.

FieldTypeDescription
winnerintIndex of the winning model
loss_scorelist[float]Loss score per model
embeddinglist[float]Computed data embedding
distancelist[float]Distance to target per model
FieldTypeDescription
statusstrRequest status
coins_sentlist[FaucetCoinInfo]Coins sent
FieldTypeDescription
amountintCoin amount in shannons
idstrCoin object ID
transfer_tx_digeststrTransfer transaction digest
FieldTypeDescription
dataCheckpointDataCheckpoint data
FieldTypeDescription
sequence_numberintCheckpoint sequence number
epochintEpoch this checkpoint belongs to
network_total_transactionsintCumulative transaction count
content_digeststrContent digest
timestamp_msintCheckpoint timestamp