Versions in this module Expand all Collapse all v2 v2.0.1 Dec 15, 2023 Changes in this version + type SuiNamePage = Page[string, sui_types.ObjectID] type SuiObjectData + func (data *SuiObjectData) Reference() sui_types.ObjectRef v2.0.0 May 16, 2023 Changes in this version + const DevNetRpcUrl + const ExecutionStatusFailure + const ExecutionStatusSuccess + const MAX_INPUT_COUNT_MERGE + const MAX_INPUT_COUNT_STAKE + const MainnetRpcUrl + const PickBigger + const PickByOrder + const PickSmaller + const SUI_COIN_TYPE + const StakeStatusActive + const StakeStatusPending + const StakeStatusUnstaked + const SuiCoinType + const SuiTransactionBlockKindGenesis + const SuiTransactionBlockKindProgrammableTransaction + const SuiTransactionBlockKindSuiChangeEpoch + const SuiTransactionBlockKindSuiConsensusCommitPrologue + const TestnetRpcUrl + var ErrCoinsNeedMoreObject = errors.New("you should get more SUI coins and try again") + var ErrCoinsNotMatchRequest = errors.New("coins not match request") + var ErrInsufficientBalance = errors.New("insufficient account balance") + var ErrNeedMergeCoin = errors.New("no coins of such a large amount were found to execute this transaction") + var ErrNeedSplitGasCoin = errors.New("missing an extra coin to use as the transaction fee") + var ErrNoCoinsFound = errors.New("no coins found") + func IsSameStringAddress(addr1, addr2 string) bool + type AuthSignInfo interface + type Balance struct + CoinObjectCount uint64 + CoinType string + LockedBalance map[SafeSuiBigInt[uint64]]SuiBigInt + TotalBalance SuiBigInt + type BalanceChange struct + Amount string + CoinType string + Owner ObjectOwner + type CertifiedTransaction struct + AuthSignInfo *AuthSignInfo + Data *SenderSignedData + TransactionDigest string + TxSignature string + type ChangeEpoch struct + ComputationCharge uint64 + Epoch interface{} + StorageCharge uint64 + type CheckpointSequenceNumber = uint64 + type CheckpointedObjectId struct + AtCheckpoint *SafeSuiBigInt[CheckpointSequenceNumber] + ObjectId sui_types.ObjectID + type Coin struct + Balance SafeSuiBigInt[uint64] + CoinObjectId sui_types.ObjectID + CoinType string + Digest sui_types.ObjectDigest + LockedUntilEpoch *SafeSuiBigInt[uint64] + PreviousTransaction sui_types.TransactionDigest + Version SafeSuiBigInt[uint64] + func (c *Coin) IsSUI() bool + func (c *Coin) Reference() *sui_types.ObjectRef + type CoinPage = Page[Coin, sui_types.ObjectID] + type Coins []Coin + func (cs Coins) PickCoinNoLess(amount uint64) (*Coin, error) + func (cs Coins) PickCoins(amount *big.Int, pickMethod int) (Coins, error) + func (cs Coins) PickSUICoinsWithGas(amount *big.Int, gasAmount uint64, pickMethod int) (Coins, *Coin, error) + func (cs Coins) TotalBalance() *big.Int + type DelegatedStake struct + Stakes []JsonFlatten[Stake] + StakingPool sui_types.ObjectID + ValidatorAddress sui_types.SuiAddress + type DevInspectResult struct + Err string + Ok any + type DevInspectResults struct + Effects lib.TagJson[SuiTransactionBlockEffects] + Error *string + Events []SuiEvent + Results []ExecutionResultType + type DryRunTransactionBlockResponse struct + BalanceChanges []BalanceChange + Effects lib.TagJson[SuiTransactionBlockEffects] + Events []SuiEvent + Input lib.TagJson[SuiTransactionBlockData] + ObjectChanges []lib.TagJson[ObjectChange] + type DynamicFieldInfo struct + BcsName lib.Base58 + Digest sui_types.ObjectDigest + Name sui_types.DynamicFieldName + ObjectId sui_types.ObjectID + ObjectType string + Type lib.TagJson[sui_types.DynamicFieldType] + Version sui_types.SequenceNumber + type DynamicFieldPage = Page[DynamicFieldInfo, sui_types.ObjectID] + type EpochId = uint64 + type EventFilter struct + All *[]EventFilter + Any *[]EventFilter + MoveEventField ... + MoveEventType *string + MoveModule ... + Package *sui_types.ObjectID + Sender *sui_types.SuiAddress + TimeRange ... + Transaction *sui_types.TransactionDigest + type EventId struct + EventSeq SafeSuiBigInt[uint64] + TxDigest sui_types.TransactionDigest + type EventPage = Page[SuiEvent, EventId] + type ExecuteTransactionEffects struct + AuthSignInfo *AuthSignInfo + Effects lib.TagJson[SuiTransactionBlockEffects] + TransactionEffectsDigest string + type ExecuteTransactionRequestType string + const TxnRequestTypeWaitForEffectsCert + const TxnRequestTypeWaitForLocalExecution + type ExecuteTransactionResponse struct + Certificate CertifiedTransaction + ConfirmedLocalExecution bool + Effects ExecuteTransactionEffects + func (r *ExecuteTransactionResponse) TransactionDigest() string + type ExecutionResultType struct + MutableReferenceOutputs []MutableReferenceOutputType + ReturnValues []ReturnValueType + type ExecutionStatus struct + Error string + Status string + type GasCostSummary struct + ComputationCost SafeSuiBigInt[uint64] + NonRefundableStorageFee SafeSuiBigInt[uint64] + StorageCost SafeSuiBigInt[uint64] + StorageRebate SafeSuiBigInt[uint64] + type InputObjectKind map[string]interface + type JsonFlatten struct + Data T + func (s *JsonFlatten[T]) UnmarshalJSON(data []byte) error + type ModulePublish struct + Modules [][]byte + type MoveCall struct + Args []interface{} + Function string + Module string + Package sui_types.ObjectID + TypeArgs []interface{} + type MoveModule struct + Module string + Package sui_types.ObjectID + type MutableReferenceOutputType interface + type ObjectChange struct + Created ... + Deleted ... + Mutated ... + Published ... + Transferred ... + Wrapped ... + func (o ObjectChange) Content() string + func (o ObjectChange) Tag() string + type ObjectOwner struct + func (o *ObjectOwner) UnmarshalJSON(data []byte) error + func (o ObjectOwner) MarshalJSON() ([]byte, error) + type ObjectOwnerInternal struct + AddressOwner *sui_types.SuiAddress + ObjectOwner *sui_types.SuiAddress + Shared ... + SingleOwner *sui_types.SuiAddress + type ObjectsPage = Page[SuiObjectResponse, sui_types.ObjectID] + type OwnedObjectRef struct + Owner lib.TagJson[sui_types.Owner] + Reference SuiObjectRef + type Page struct + Data []T + HasNextPage bool + NextCursor *C + type ParsedTransactionResponse interface + type Pay struct + Amounts []uint64 + Coins []sui_types.ObjectRef + Recipients []sui_types.SuiAddress + type PayAllSui struct + Coins []sui_types.ObjectRef + Recipient sui_types.SuiAddress + type PaySui struct + Amounts []uint64 + Coins []sui_types.ObjectRef + Recipients []sui_types.SuiAddress + type PickedCoins struct + Coins []Coin + TargetAmount big.Int + TotalAmount big.Int + func PickupCoins(inputCoins *CoinPage, targetAmount big.Int, gasBudget uint64, limit int, ...) (*PickedCoins, error) + func (cs *PickedCoins) CoinIds() []sui_types.ObjectID + func (cs *PickedCoins) CoinRefs() []*sui_types.ObjectRef + func (cs *PickedCoins) Count() int + func (cs *PickedCoins) SuggestMaxGasBudget() uint64 + type ResourceType struct + Address *sui_types.SuiAddress + FuncName string + ModuleName string + SubType *ResourceType + func NewResourceType(str string) (*ResourceType, error) + func (t *ResourceType) ShortString() string + func (t *ResourceType) String() string + type ReturnValueType interface + type SafeBigInt interface + type SafeSuiBigInt struct + func NewSafeSuiBigInt(num T) SafeSuiBigInt[T] + func (s *SafeSuiBigInt[T]) Decimal() decimal.Decimal + func (s *SafeSuiBigInt[T]) UnmarshalJSON(data []byte) error + func (s *SafeSuiBigInt[T]) UnmarshalText(data []byte) error + func (s SafeSuiBigInt[T]) Int64() int64 + func (s SafeSuiBigInt[T]) MarshalJSON() ([]byte, error) + func (s SafeSuiBigInt[T]) Uint64() uint64 + type SenderSignedData struct + GasBudget uint64 + GasPayment *sui_types.ObjectRef + Sender *sui_types.SuiAddress + Transactions []SingleTransactionKind + type SingleTransactionKind struct + Call *MoveCall + ChangeEpoch *ChangeEpoch + Pay *Pay + PayAllSui *PayAllSui + PaySui *PaySui + Publish *ModulePublish + TransferObject *TransferObject + TransferSui *TransferSui + type Stake struct + Principal SafeSuiBigInt[uint64] + StakeActiveEpoch SafeSuiBigInt[EpochId] + StakeRequestEpoch SafeSuiBigInt[EpochId] + StakeStatus *StakeStatus + StakedSuiId sui_types.ObjectID + func (s *Stake) IsActive() bool + type StakeStatus = lib.TagJson[Status] + type Status struct + Active ... + Pending *struct{} + Unstaked *struct{} + func (s Status) Content() string + func (s Status) Tag() string + type SuiBigInt = decimal.Decimal + type SuiChangeEpoch struct + ComputationCharge uint64 + Epoch SafeSuiBigInt[EpochId] + EpochStartTimestampMs uint64 + StorageCharge uint64 + StorageRebate uint64 + type SuiCoinMetadata struct + Decimals uint8 + Description string + IconUrl string + Id sui_types.ObjectID + Name string + Symbol string + type SuiConsensusCommitPrologue struct + CommitTimestampMs uint64 + Epoch uint64 + Round uint64 + type SuiEvent struct + Bcs string + Id EventId + PackageId sui_types.ObjectID + ParsedJson interface{} + Sender sui_types.SuiAddress + TimestampMs *SafeSuiBigInt[uint64] + TransactionModule string + Type string + type SuiGasData struct + Budget SafeSuiBigInt[uint64] + Owner string + Payment []SuiObjectRef + Price SafeSuiBigInt[uint64] + type SuiGenesisTransaction struct + Objects []sui_types.ObjectID + type SuiMovePackage struct + Disassembled map[string]interface{} + type SuiObjectData struct + Bcs *lib.TagJson[SuiRawData] + Content *lib.TagJson[SuiParsedData] + Digest sui_types.ObjectDigest + Display interface{} + ObjectId sui_types.ObjectID + Owner *ObjectOwner + PreviousTransaction *sui_types.TransactionDigest + StorageRebate *SafeSuiBigInt[uint64] + Type *string + Version SafeSuiBigInt[sui_types.SequenceNumber] + type SuiObjectDataFilter struct + MoveModule *MoveModule + Package *sui_types.ObjectID + StructType string + type SuiObjectDataOptions struct + ShowBcs bool + ShowContent bool + ShowDisplay bool + ShowOwner bool + ShowPreviousTransaction bool + ShowStorageRebate bool + ShowType bool + type SuiObjectRef struct + Digest sui_types.TransactionDigest + ObjectId string + Version sui_types.SequenceNumber + type SuiObjectResponse struct + Data *SuiObjectData + Error *lib.TagJson[SuiObjectResponseError] + type SuiObjectResponseError struct + Deleted ... + DisplayError ... + NotExists ... + UnKnown *struct{} + func (e SuiObjectResponseError) Content() string + func (e SuiObjectResponseError) Tag() string + type SuiObjectResponseQuery struct + Filter *SuiObjectDataFilter + Options *SuiObjectDataOptions + type SuiParsedData struct + MoveObject *SuiParsedMoveObject + Package *SuiMovePackage + func (p SuiParsedData) Content() string + func (p SuiParsedData) Tag() string + type SuiParsedMoveObject struct + Fields any + HasPublicTransfer bool + Type string + type SuiPastObject struct + ObjectDeleted *SuiObjectRef + ObjectNotExists *sui_types.ObjectID + VersionFound *SuiObjectData + VersionNotFound *struct{ ObjectId sui_types.SequenceNumber } + VersionTooHigh ... + func (s SuiPastObject) Content() string + func (s SuiPastObject) Tag() string + type SuiPastObjectResponse = lib.TagJson[SuiPastObject] + type SuiProgrammableTransactionBlock struct + Commands []interface{} + Inputs []interface{} + type SuiRawData struct + MoveObject *SuiRawMoveObject + Package *SuiRawMovePackage + func (r SuiRawData) Content() string + func (r SuiRawData) Tag() string + type SuiRawMoveObject struct + BcsBytes lib.Base64Data + HasPublicTransfer bool + Type string + Version sui_types.SequenceNumber + type SuiRawMovePackage struct + Id sui_types.ObjectID + LinkageTable map[string]UpgradeInfo + ModuleMap map[string]lib.Base64Data + TypeOriginTable []TypeOrigin + Version sui_types.SequenceNumber + type SuiSystemStateSummary struct + ActiveValidators []SuiValidatorSummary + AtRiskValidators interface{} + Epoch SafeSuiBigInt[uint64] + EpochDurationMs SafeSuiBigInt[uint64] + EpochStartTimestampMs SafeSuiBigInt[uint64] + InactivePoolsId sui_types.ObjectID + InactivePoolsSize SafeSuiBigInt[uint64] + MaxValidatorCount SafeSuiBigInt[uint64] + MinValidatorJoiningStake SafeSuiBigInt[uint64] + PendingActiveValidatorsId sui_types.ObjectID + PendingActiveValidatorsSize SafeSuiBigInt[uint64] + PendingRemovals []SafeSuiBigInt[uint64] + ProtocolVersion SafeSuiBigInt[uint64] + ReferenceGasPrice SafeSuiBigInt[uint64] + SafeMode bool + SafeModeComputationRewards SafeSuiBigInt[uint64] + SafeModeNonRefundableStorageFee SafeSuiBigInt[uint64] + SafeModeStorageRebates SafeSuiBigInt[uint64] + SafeModeStorageRewards SafeSuiBigInt[uint64] + StakeSubsidyBalance SafeSuiBigInt[uint64] + StakeSubsidyCurrentDistributionAmount SafeSuiBigInt[uint64] + StakeSubsidyDecreaseRate uint16 + StakeSubsidyDistributionCounter SafeSuiBigInt[uint64] + StakeSubsidyPeriodLength SafeSuiBigInt[uint64] + StakeSubsidyStartEpoch SafeSuiBigInt[uint64] + StakingPoolMappingsId sui_types.ObjectID + StakingPoolMappingsSize SafeSuiBigInt[uint64] + StorageFundNonRefundableBalance SafeSuiBigInt[uint64] + StorageFundTotalObjectStorageRebates SafeSuiBigInt[uint64] + SystemStateVersion SafeSuiBigInt[uint64] + TotalStake SafeSuiBigInt[uint64] + ValidatorCandidatesId sui_types.ObjectID + ValidatorCandidatesSize SafeSuiBigInt[uint64] + ValidatorLowStakeGracePeriod SafeSuiBigInt[uint64] + ValidatorLowStakeThreshold SafeSuiBigInt[uint64] + ValidatorReportRecords interface{} + ValidatorVeryLowStakeThreshold SafeSuiBigInt[uint64] + type SuiTransactionBlock struct + Data lib.TagJson[SuiTransactionBlockData] + TxSignatures []string + type SuiTransactionBlockData struct + V1 *SuiTransactionBlockDataV1 + func (t SuiTransactionBlockData) Content() string + func (t SuiTransactionBlockData) Tag() string + type SuiTransactionBlockDataV1 struct + GasData SuiGasData + Sender sui_types.SuiAddress + Transaction SuiTransactionBlockKind + type SuiTransactionBlockEffects struct + V1 *SuiTransactionBlockEffectsV1 + func (t SuiTransactionBlockEffects) Content() string + func (t SuiTransactionBlockEffects) GasFee() int64 + func (t SuiTransactionBlockEffects) IsSuccess() bool + func (t SuiTransactionBlockEffects) Tag() string + type SuiTransactionBlockEffectsModifiedAtVersions struct + ObjectId sui_types.ObjectID + SequenceNumber SafeSuiBigInt[sui_types.SequenceNumber] + type SuiTransactionBlockEffectsV1 struct + Created []OwnedObjectRef + Deleted []SuiObjectRef + Dependencies []sui_types.TransactionDigest + EventsDigest *sui_types.TransactionEventsDigest + ExecutedEpoch SafeSuiBigInt[EpochId] + GasObject OwnedObjectRef + GasUsed GasCostSummary + ModifiedAtVersions []SuiTransactionBlockEffectsModifiedAtVersions + Mutated []OwnedObjectRef + SharedObjects []SuiObjectRef + Status ExecutionStatus + TransactionDigest sui_types.TransactionDigest + Unwrapped []OwnedObjectRef + UnwrappedThenDeleted []SuiObjectRef + Wrapped []SuiObjectRef + type SuiTransactionBlockKind = lib.TagJson[TransactionBlockKind] + type SuiTransactionBlockResponse struct + BalanceChanges []BalanceChange + Checkpoint *SafeSuiBigInt[CheckpointSequenceNumber] + ConfirmedLocalExecution *bool + Digest sui_types.TransactionDigest + Effects *lib.TagJson[SuiTransactionBlockEffects] + Errors []string + Events []SuiEvent + ObjectChanges []lib.TagJson[ObjectChange] + RawTransaction []byte + TimestampMs *SafeSuiBigInt[uint64] + Transaction *SuiTransactionBlock + type SuiTransactionBlockResponseOptions struct + ShowBalanceChanges bool + ShowEffects bool + ShowEvents bool + ShowInput bool + ShowObjectChanges bool + type SuiTransactionBlockResponseQuery struct + Filter *TransactionFilter + Options *SuiTransactionBlockResponseOptions + type SuiValidatorSummary struct + CommissionRate SafeSuiBigInt[uint64] + Description string + ExchangeRatesId sui_types.ObjectID + ExchangeRatesSize SafeSuiBigInt[uint64] + GasPrice SafeSuiBigInt[uint64] + ImageUrl string + Name string + NetAddress string + NetworkPubkeyBytes lib.Base64Data + NextEpochCommissionRate SafeSuiBigInt[uint64] + NextEpochGasPrice SafeSuiBigInt[uint64] + NextEpochNetAddress string + NextEpochNetworkPubkeyBytes lib.Base64Data + NextEpochP2pAddress string + NextEpochPrimaryAddress string + NextEpochProofOfPossession lib.Base64Data + NextEpochProtocolPubkeyBytes lib.Base64Data + NextEpochStake SafeSuiBigInt[uint64] + NextEpochWorkerAddress string + NextEpochWorkerPubkeyBytes lib.Base64Data + OperationCapId sui_types.ObjectID + P2pAddress string + PendingPoolTokenWithdraw SafeSuiBigInt[uint64] + PendingStake SafeSuiBigInt[uint64] + PendingTotalSuiWithdraw SafeSuiBigInt[uint64] + PoolTokenBalance SafeSuiBigInt[uint64] + PrimaryAddress string + ProjectUrl string + ProofOfPossessionBytes lib.Base64Data + ProtocolPubkeyBytes lib.Base64Data + RewardsPool SafeSuiBigInt[uint64] + StakingPoolActivationEpoch SafeSuiBigInt[uint64] + StakingPoolDeactivationEpoch SafeSuiBigInt[uint64] + StakingPoolId sui_types.ObjectID + StakingPoolSuiBalance SafeSuiBigInt[uint64] + SuiAddress sui_types.SuiAddress + VotingPower SafeSuiBigInt[uint64] + WorkerAddress string + WorkerPubkeyBytes lib.Base64Data + type Supply struct + Value SafeSuiBigInt[uint64] + type TimeRange struct + EndTime uint64 + StartTime uint64 + type TransactionBlockKind struct + ChangeEpoch *SuiChangeEpoch + ConsensusCommitPrologue *SuiConsensusCommitPrologue + Genesis *SuiGenesisTransaction + ProgrammableTransaction *SuiProgrammableTransactionBlock + func (t TransactionBlockKind) Content() string + func (t TransactionBlockKind) Tag() string + type TransactionBlocksPage = Page[SuiTransactionBlockResponse, sui_types.TransactionDigest] + type TransactionBytes struct + Gas []sui_types.ObjectRef + InputObjects []InputObjectKind + TxBytes lib.Base64Data + type TransactionFilter struct + ChangedObject *sui_types.ObjectID + Checkpoint *sui_types.SequenceNumber + FromAddress *sui_types.SuiAddress + FromAndToAddress ... + InputObject *sui_types.ObjectID + MoveFunction ... + ToAddress *sui_types.SuiAddress + TransactionKind *string + type TransferObject struct + ObjectRef sui_types.ObjectRef + Recipient sui_types.SuiAddress + type TransferSui struct + Amount uint64 + Recipient sui_types.SuiAddress + type TypeName []sui_types.SuiAddress + type TypeOrigin struct + ModuleName string + Package sui_types.ObjectID + StructName string + type UpgradeInfo struct + UpgradedId sui_types.ObjectID + UpgradedVersion sui_types.SequenceNumber + type ValidatorsApy struct + Apys []struct{ ... } + Epoch SafeSuiBigInt[EpochId] + func (apys *ValidatorsApy) ApyMap() map[string]float64