Go SDK Public API Inventory
This page lists the public classes, methods, functions, enum values, fields, and constants of the SDK. Use it to check exact names when working with lower-level SDK APIs.
github.com/phantasma-io/phantasma-sdk-go/pkg/blockchain
Source: pkg/blockchain
Declarations
const MaxTransactionSignatureCount = 1024type Transaction struct {Fields
ChainName stringExpiration uint32Hash crypto.HashNexusName stringPayload []byteScript []byteSignatures []crypto.Signature
Methods
func (tx *Transaction) Bytes() []bytefunc (tx *Transaction) BytesEx(withSignatures bool) []bytefunc (tx *Transaction) Deserialize(reader *io.BinReader)func (tx *Transaction) HasSignatures() boolfunc (tx *Transaction) IsSignedBy(addresses []crypto.Address) boolfunc (tx *Transaction) Mine(difficulty int)func (tx *Transaction) Serialize(writer *io.BinWriter)func (tx *Transaction) SerializeEx(writer *io.BinWriter, withSignatures bool)func (tx *Transaction) Sign(keyPair crypto.KeyPair) errorfunc (tx *Transaction) String() stringfunc NewTransaction(nexusName, chainName string, script []byte, timestamp uint32, payload []byte) Transactionfunc TxStateIsFault(state string) boolfunc TxStateIsSuccess(state string) boolgithub.com/phantasma-io/phantasma-sdk-go/pkg/carbon
Source: pkg/carbon
Declarations
const DefaultTxExpiry = 45 * time.Secondconst GasModelV2UnitsPerBlockDataByte = 25const GovernanceMethodRegisterName GovernanceContractMethod = 1const GovernanceMethodSetGasConfig GovernanceContractMethod = 3const KCALDecimals = 10const ListingTypeFixedPrice ListingType = 0const MarketConfigFlagsCanCancelEarly MarketConfigFlags = 1 << 2const MarketConfigFlagsCanPurchaseLate MarketConfigFlags = 1 << 3const MarketConfigFlagsEnforceRoyalties MarketConfigFlags = 1 << 1const MarketConfigFlagsNone MarketConfigFlags = 0const MarketConfigFlagsPriceRequired MarketConfigFlags = 1 << 0const MarketDelistingGraceMS uint64 = 1000 * 60 * 60 * 24const MarketMaximumListingTimeMS uint64 = 1000 * 60 * 60 * 24 * 90const MarketMethodBuyTokenconst MarketMethodBuyTokenByIDconst MarketMethodCancelSaleconst MarketMethodCancelSaleByIDconst MarketMethodGetTokenListingCountconst MarketMethodGetTokenListingInfoconst MarketMethodGetTokenListingInfoByIDconst MarketMethodSellToken MarketContractMethod = iotaconst MarketMethodSellTokenByIDconst MarketMinimumListingTimeMS uint64 = 1000const MarketRoyaltyHundredPercent uint64 = 100 * MarketRoyaltyOnePercentconst MarketRoyaltyOnePercent uint64 = 10_000_000const ModuleIDGovernance ModuleID = 0const ModuleIDInternal ModuleID = 0xffffffffconst ModuleIDMarket ModuleID = 4const ModuleIDOrg ModuleID = 3const ModuleIDPhantasma ModuleID = 2const ModuleIDPhantasmaVM = ModuleIDPhantasmaconst ModuleIDToken ModuleID = 1const NativeFeeBurnFungibleconst NativeFeeBurnNonFungibleconst NativeFeeCreateTokenconst NativeFeeCreateTokenSeriesconst NativeFeeMintFungibleconst NativeFeeMintNonFungibleconst NativeFeeMintPhantasmaNonFungibleconst NativeFeeRegisterNameconst NativeFeeScriptconst NativeFeeTransferFungible NativeFeeKind = iotaconst NativeFeeTransferNonFungibleconst NativeSignatureBytes = 64const SOULDecimals = 8const StandardMetaChainAddress = "_a"const StandardMetaChainName = "_n"const StandardMetaChainNexus = "_x"const StandardMetaChainTokenomics = "_t"const StandardMetaID = "_i"const StandardMetaTokenInflationPeriod = "_ip"const StandardMetaTokenPhantasmaABI = "_phb"const StandardMetaTokenPhantasmaScript = "_phs"const StandardMetaTokenPreBurn = "_brn"const StandardMetaTokenStakingBoosterDiv = "_sbd"const StandardMetaTokenStakingBoosterLimit = "_sbl"const StandardMetaTokenStakingBoosterMul = "_sbm"const StandardMetaTokenStakingBoosterToken = "_sbt"const StandardMetaTokenStakingLock = "_sl"const StandardMetaTokenStakingOrgID = "_soi"const StandardMetaTokenStakingOrgThreshold = "_sot"const StandardMetaTokenStakingRewardDiv = "_srd"const StandardMetaTokenStakingRewardMul = "_srm"const StandardMetaTokenStakingRewardPeriod = "_srp"const StandardMetaTokenStakingRewardToken = "_srt"const StorageQuantumBytes = 1024const TokenFlagsBigFungible TokenFlags = 1 << 0const TokenFlagsNonFungible TokenFlags = 1 << 1const TokenFlagsNone TokenFlags = 0const TokenMethodApplyInflationconst TokenMethodBurnFungibleconst TokenMethodBurnNonFungibleconst TokenMethodCreateMintedTokenSeriesconst TokenMethodCreateTokenconst TokenMethodCreateTokenSeriesconst TokenMethodDeleteTokenSeriesconst TokenMethodGetBalanceconst TokenMethodGetBalancesconst TokenMethodGetInstancesconst TokenMethodGetNextTokenInflationconst TokenMethodGetNonFungibleInfoconst TokenMethodGetNonFungibleInfoByRomIDconst TokenMethodGetSeriesInfoconst TokenMethodGetSeriesInfoByMetaIDconst TokenMethodGetSeriesSupplyconst TokenMethodGetTokenIDBySymbolconst TokenMethodGetTokenInfoconst TokenMethodGetTokenInfoBySymbolconst TokenMethodGetTokenSupplyconst TokenMethodMintFungibleconst TokenMethodMintNonFungibleconst TokenMethodMintPhantasmaNonFungibleconst TokenMethodSetTokensConfigconst TokenMethodTransferFungible TokenContractMethod = iotaconst TokenMethodTransferNonFungibleconst TokenMethodUpdateSeriesMetadataconst TokenMethodUpdateTokenMetadataconst TokensConfigFlagsAllowExplicitNFTMetaIDMint TokensConfigFlags = 1 << 4const TokensConfigFlagsNone TokensConfigFlags = 0const TokensConfigFlagsRequireMetadata TokensConfigFlags = 1 << 0const TokensConfigFlagsRequireNFTMetaID TokensConfigFlags = 1 << 2const TokensConfigFlagsRequireNFTStandard TokensConfigFlags = 1 << 3const TokensConfigFlagsRequireSymbol TokensConfigFlags = 1 << 1const TxTypeBurnFungibleconst TxTypeBurnFungibleGasPayerconst TxTypeBurnNonFungibleconst TxTypeBurnNonFungibleGasPayerconst TxTypeCall TxType = iotaconst TxTypeCallMulticonst TxTypeMintFungibleconst TxTypeMintNonFungibleconst TxTypePhantasmaconst TxTypePhantasmaRawconst TxTypeTradeconst TxTypeTransferFungibleconst TxTypeTransferFungibleGasPayerconst TxTypeTransferNonFungibleMulticonst TxTypeTransferNonFungibleMultiGasPayerconst TxTypeTransferNonFungibleSingleconst TxTypeTransferNonFungibleSingleGasPayerconst VMStructFlagsDynamicExtras VMStructFlags = 1 << 0const VMStructFlagsIsSorted VMStructFlags = 1 << 1const VMStructFlagsNone VMStructFlags = 0const VMTypeArray VMType = 1const VMTypeArrayBytes VMType = VMTypeArray | VMTypeBytesconst VMTypeArrayBytes16 VMType = VMTypeArray | VMTypeBytes16const VMTypeArrayBytes32 VMType = VMTypeArray | VMTypeBytes32const VMTypeArrayBytes64 VMType = VMTypeArray | VMTypeBytes64const VMTypeArrayDynamic VMType = VMTypeArray | VMTypeDynamicconst VMTypeArrayInt16 VMType = VMTypeArray | VMTypeInt16const VMTypeArrayInt256 VMType = VMTypeArray | VMTypeInt256const VMTypeArrayInt32 VMType = VMTypeArray | VMTypeInt32const VMTypeArrayInt64 VMType = VMTypeArray | VMTypeInt64const VMTypeArrayInt8 VMType = VMTypeArray | VMTypeInt8const VMTypeArrayString VMType = VMTypeArray | VMTypeStringconst VMTypeArrayStruct VMType = VMTypeArray | VMTypeStructconst VMTypeBytes VMType = 1 << 1const VMTypeBytes16 VMType = 8 << 1const VMTypeBytes32 VMType = 9 << 1const VMTypeBytes64 VMType = 10 << 1const VMTypeDynamic VMType = 0const VMTypeInt16 VMType = 4 << 1const VMTypeInt256 VMType = 7 << 1const VMTypeInt32 VMType = 5 << 1const VMTypeInt64 VMType = 6 << 1const VMTypeInt8 VMType = 3 << 1const VMTypeString VMType = 11 << 1const VMTypeStruct VMType = 2 << 1const WitnessArrayEntryBytes = 96type Blob interface {type BurnFungibleArgs struct {type BurnFungibleParams struct {type BurnNonFungibleArgs struct {type BurnNonFungibleParams struct {type BurnedInstance struct {type Bytes16 [16]bytetype Bytes32 [32]bytetype Bytes64 [64]bytetype CallArgSection struct {type ChainConfig struct {type CreateMintedTokenSeriesArgs struct {type CreateTokenSeriesArgs struct {type FeePlan struct {type FeePlanOptions struct {type FeePlanSummary struct {type FeeQuote struct {type FieldType struct {type GasConfig struct {type GovernanceContractMethod uint32type InfusedAsset struct {type IntX struct {type KeyPairSigner struct {type ListingType bytetype MarketBuyTokenArgs struct {type MarketBuyTokenByIDArgs struct {type MarketCancelSaleArgs struct {type MarketCancelSaleByIDArgs struct {type MarketConfig struct {type MarketConfigFlags uint32type MarketContractMethod uint32type MarketGetTokenListingCountArgs struct {type MarketGetTokenListingInfoArgs struct {type MarketGetTokenListingInfoByIDArgs struct {type MarketSellTokenArgs struct {type MarketSellTokenByIDArgs struct {type MetadataField struct {type MintFungibleArgs struct {type MintFungibleParams struct {type MintNonFungibleArgs struct {type MintPhantasmaNonFungibleArgs struct {type ModuleID uint32type MsgCallArgSections struct {type NFTMintInfo struct {type NativeFeeEstimate struct {type NativeFeeKind inttype NativeFeeParams struct {type NativeFeePart struct {type NativeFeeTransactionParams struct {type PhantasmaNFTMintInfo struct {type PhantasmaNFTMintResult struct {type PlanAndSignOptions struct {type Reader struct {type RegisterNameArgs struct {type SeriesInfo struct {type SignedTxMsg struct {type SmallString stringtype TokenContractMethod uint32type TokenFlags bytetype TokenInfo struct {type TokenListing struct {type TokenSchemas struct {type TokenSchemasJSON struct {type TokensConfig struct {type TokensConfigFlags bytetype TransferFungibleArgs struct {type TransferFungibleParams struct {type TransferNonFungibleArgs struct {type TransferNonFungibleParams struct {type TxLimits struct {type TxMsg struct {type TxMsgBurnFungible struct {type TxMsgBurnFungibleGasPayer struct {type TxMsgBurnNonFungible struct {type TxMsgBurnNonFungibleGasPayer struct {type TxMsgCall struct {type TxMsgCallMulti struct {type TxMsgMintFungible struct {type TxMsgMintNonFungible struct {type TxMsgPhantasma struct {type TxMsgPhantasmaRaw struct {type TxMsgTrade struct {type TxMsgTransferFungible struct {type TxMsgTransferFungibleGasPayer struct {type TxMsgTransferNonFungibleMulti struct {type TxMsgTransferNonFungibleMultiGasPayer struct {type TxMsgTransferNonFungibleSingle struct {type TxMsgTransferNonFungibleSingleGasPayer struct {type TxPayload interface {type TxSigner interface {type TxType bytetype UpdateSeriesMetadataArgs struct {type UpdateTokenMetadataArgs struct {type VMDynamicStruct struct {type VMDynamicVariable struct {type VMNamedDynamicVariable struct {type VMNamedVariableSchema struct {type VMStructArray struct {type VMStructFlags bytetype VMStructSchema struct {type VMType bytetype VMVariableSchema struct {type Witness struct {type Writer struct {var EmptyBytes16 Bytes16var EmptyBytes32 Bytes32var EmptyBytes64 Bytes64var SystemAddressDataPool = systemAddress(2)var SystemAddressGasPool = systemAddress(1)var SystemAddressNull = systemAddress(0)Fields
Address Bytes32Address Bytes32AllowedTxTypes uint32Amount IntXAmount uint64Amount IntXAmount uint64Args []byteArgs []byteBlobBlockRateTarget uint32BurnF []TxMsgBurnFungibleGasPayerBurnN []TxMsgBurnNonFungibleGasPayerBurnerHoldsToken boolCalls []TxMsgCallCarbonInstanceID uint64Chain SmallStringCount intData anyDataEscrowPerRow uint64DataTokenID uint64Decimals byteDeletedStorageQuanta intDelistingGrace uint64DistinctSeriesCount intEndDate int64EndDate int64EnvelopeBytes intExact boolExpectedGasBill uint64Expiry int64Expiry int64ExpiryWindow uint32FeeMultiplier uint64FeePlanOptionsFeeQuoteFeeShift byteFields []VMNamedDynamicVariableFields []VMNamedVariableSchemaFlags MarketConfigFlagsFlags TokenFlagsFlags VMStructFlagsFlags TokensConfigFlagsFrom Bytes32From Bytes32From Bytes32From Bytes32From Bytes32From Bytes32GasBill stringGasBurnRatioMul uint64GasBurnRatioShift byteGasDappRatioMul uint64GasDappRatioShift byteGasFeeCreateTokenBase uint64GasFeeCreateTokenSeries uint64GasFeeCreateTokenSymbol uint64GasFeePerByte uint64GasFeeQuery uint64GasFeeRegisterName uint64GasFeeTransfer uint64GasFrom Bytes32GasOffer stringGasPayer Bytes32GasPayer Bytes32GasProducerRatioMul uint64GasProducerRatioShift byteGasTokenID uint64HasInflationSchedule boolHasPreBurn boolHasStakingOrganisation boolHasStakingRewardToken boolInfo SeriesInfoInfusions []InfusedAssetInstanceCount intInstanceID uint64InstanceID VMDynamicVariableInstanceID VMDynamicVariableInstanceID uint64InstanceIDs []uint64Int64Balances boolKeys cryptography.KeyPairKind NativeFeeKindKinds []NativeFeeKindLegacyDataEscrowPerRow uint64MaxData uint64MaxGas uint64MaxGas uint64MaxMint uint32MaxNameLength byteMaxStructureSize uint32MaxSupply IntXMaxSupply uint32MaxTokenSymbolLength byteMaximumListingTime uint64Metadata []byteMetadata []byteMetadata VMDynamicStructMetadata []byteMethodID uint32MinimumGasBill uint64MinimumGasOffer uint64MinimumListingTime uint64MintF []TxMsgMintFungibleMintN []TxMsgMintNonFungibleModuleID uint32Msg TxMsgMsg TxPayloadName SmallStringName SmallStringName SmallStringName stringName stringjson:“name”``NameLength intNativeFeeEstimateNewStorageQuanta intNexus SmallStringNonFungible boolOwner Bytes32Owner Bytes32Owner Bytes32Params NativeFeeParamsPayload SmallStringPayloadBytes intPhantasmaNFTID Bytes32PhantasmaSeriesID IntXPolicyFeeCreateTokenBase uint64PolicyFeeCreateTokenSeries uint64PolicyFeeCreateTokenSymbol uint64PolicyFeeRegisterName uint64Price IntXPrice IntXPublicKey() []byteQuoteSymbol SmallStringQuoteTokenID uint64RAM []byteRAM VMStructSchemaRAM []FieldTypejson:“ram”``RAM VMStructSchemaRAM []byteRAMBytes []intRAMs [][]byteROM []byteROM VMStructSchemaROM []FieldTypejson:“rom”``ROM VMStructSchemaROM []byteROMBytes []intROMs [][]byteReadCarbon(*Reader)RecipientHoldsToken boolRegisterOffset int32Reserved1 byteReserved2 byteReserved3 byteRomWithoutMetaID boolSchema VMStructSchemaSchema VMVariableSchemaScript []byteScriptEventBytes intScriptStorageQuanta intScriptUnitsAllowance uint64Sections *MsgCallArgSectionsSections []CallArgSectionSeller Bytes32SeriesID uint32SeriesInfoBytes intSeriesMetadata VMStructSchemaSeriesMetadata []FieldTypejson:“seriesMetadata”``SeriesWithoutMetaID boolSignMessage(ctx context.Context, message []byte) ([]byte, error)Signature Bytes64StartDate int64StorageCeiling stringStructDef *VMStructSchemaStructs []VMDynamicStructSupplyRowExists boolSymbol SmallStringSymbol SmallStringSymbol SmallStringSymbolLength intTo Bytes32To Bytes32To Bytes32To Bytes32ToIsNFTAddress boolTokenBurnedBefore boolTokenID uint64TokenID uint64TokenID uint64TokenID uint64TokenID uint64TokenInfoBytes intTokenSchemas []byteTokens []NFTMintInfoTokens []PhantasmaNFTMintInfoTransaction []byteTransferF []TxMsgTransferFungibleGasPayerTransferN []TxMsgTransferNonFungibleSingleGasPayerTxLimitsType ListingTypeType VMTypeType TxTypeType VMTypeType VMTypejson:“type”``UniqueSeries boolValue VMDynamicVariableValue anyVersion byteVersion byteWitnessCount intWitnesses []WitnessWriteCarbon(*Writer)
Methods
func (a *BurnFungibleArgs) ReadCarbon(r *Reader)func (a *BurnFungibleArgs) WriteCarbon(w *Writer)func (a *BurnNonFungibleArgs) ReadCarbon(r *Reader)func (a *BurnNonFungibleArgs) WriteCarbon(w *Writer)func (a *CreateMintedTokenSeriesArgs) ReadCarbon(r *Reader)func (a *CreateMintedTokenSeriesArgs) WriteCarbon(w *Writer)func (a *CreateTokenSeriesArgs) ReadCarbon(r *Reader)func (a *CreateTokenSeriesArgs) WriteCarbon(w *Writer)func (a *MarketBuyTokenArgs) ReadCarbon(r *Reader)func (a *MarketBuyTokenArgs) WriteCarbon(w *Writer)func (a *MarketBuyTokenByIDArgs) ReadCarbon(r *Reader)func (a *MarketBuyTokenByIDArgs) WriteCarbon(w *Writer)func (a *MarketCancelSaleArgs) ReadCarbon(r *Reader)func (a *MarketCancelSaleArgs) WriteCarbon(w *Writer)func (a *MarketCancelSaleByIDArgs) ReadCarbon(r *Reader)func (a *MarketCancelSaleByIDArgs) WriteCarbon(w *Writer)func (a *MarketGetTokenListingCountArgs) ReadCarbon(r *Reader)func (a *MarketGetTokenListingCountArgs) WriteCarbon(w *Writer)func (a *MarketGetTokenListingInfoArgs) ReadCarbon(r *Reader)func (a *MarketGetTokenListingInfoArgs) WriteCarbon(w *Writer)func (a *MarketGetTokenListingInfoByIDArgs) ReadCarbon(r *Reader)func (a *MarketGetTokenListingInfoByIDArgs) WriteCarbon(w *Writer)func (a *MarketSellTokenArgs) ReadCarbon(r *Reader)func (a *MarketSellTokenArgs) WriteCarbon(w *Writer)func (a *MarketSellTokenByIDArgs) ReadCarbon(r *Reader)func (a *MarketSellTokenByIDArgs) WriteCarbon(w *Writer)func (a *MintFungibleArgs) ReadCarbon(r *Reader)func (a *MintFungibleArgs) WriteCarbon(w *Writer)func (a *MintNonFungibleArgs) ReadCarbon(r *Reader)func (a *MintNonFungibleArgs) WriteCarbon(w *Writer)func (a *MintPhantasmaNonFungibleArgs) ReadCarbon(r *Reader)func (a *MintPhantasmaNonFungibleArgs) WriteCarbon(w *Writer)func (a *RegisterNameArgs) ReadCarbon(r *Reader)func (a *RegisterNameArgs) WriteCarbon(w *Writer)func (a *TransferFungibleArgs) ReadCarbon(r *Reader)func (a *TransferFungibleArgs) WriteCarbon(w *Writer)func (a *TransferNonFungibleArgs) ReadCarbon(r *Reader)func (a *TransferNonFungibleArgs) WriteCarbon(w *Writer)func (a *UpdateSeriesMetadataArgs) ReadCarbon(r *Reader)func (a *UpdateSeriesMetadataArgs) WriteCarbon(w *Writer)func (a *UpdateTokenMetadataArgs) ReadCarbon(r *Reader)func (a *UpdateTokenMetadataArgs) WriteCarbon(w *Writer)func (b *Bytes16) ReadCarbon(r *Reader)func (b *Bytes32) ReadCarbon(r *Reader)func (b *Bytes64) ReadCarbon(r *Reader)func (b Bytes16) Bytes() []bytefunc (b Bytes16) String() stringfunc (b Bytes16) WriteCarbon(w *Writer)func (b Bytes32) Bytes() []bytefunc (b Bytes32) String() stringfunc (b Bytes32) WriteCarbon(w *Writer)func (b Bytes64) Bytes() []bytefunc (b Bytes64) String() stringfunc (b Bytes64) WriteCarbon(w *Writer)func (c *ChainConfig) ReadCarbon(r *Reader)func (c *ChainConfig) WriteCarbon(w *Writer)func (c *GasConfig) HasGasModelV2() boolfunc (c *GasConfig) ReadCarbon(r *Reader)func (c *GasConfig) WriteCarbon(w *Writer)func (c *MarketConfig) ReadCarbon(r *Reader)func (c *MarketConfig) WriteCarbon(w *Writer)func (c *TokensConfig) ReadCarbon(r *Reader)func (c *TokensConfig) WriteCarbon(w *Writer)func (f *FieldType) UnmarshalJSON(data []byte) errorfunc (f FieldType) MarshalJSON() ([]byte, error)func (i *NFTMintInfo) ReadCarbon(r *Reader)func (i *NFTMintInfo) WriteCarbon(w *Writer)func (i *PhantasmaNFTMintInfo) ReadCarbon(r *Reader)func (i *PhantasmaNFTMintInfo) WriteCarbon(w *Writer)func (k NativeFeeKind) String() stringfunc (l *TokenListing) ReadCarbon(r *Reader)func (l *TokenListing) WriteCarbon(w *Writer)func (m *SignedTxMsg) ReadCarbon(r *Reader)func (m *SignedTxMsg) WriteCarbon(w *Writer)func (m *TxMsg) ReadCarbon(r *Reader)func (m *TxMsg) WriteCarbon(w *Writer)func (m *TxMsgBurnFungible) ReadCarbon(r *Reader)func (m *TxMsgBurnFungible) WriteCarbon(w *Writer)func (m *TxMsgBurnFungibleGasPayer) ReadCarbon(r *Reader)func (m *TxMsgBurnFungibleGasPayer) WriteCarbon(w *Writer)func (m *TxMsgBurnNonFungible) ReadCarbon(r *Reader)func (m *TxMsgBurnNonFungible) WriteCarbon(w *Writer)func (m *TxMsgBurnNonFungibleGasPayer) ReadCarbon(r *Reader)func (m *TxMsgBurnNonFungibleGasPayer) WriteCarbon(w *Writer)func (m *TxMsgCall) ReadCarbon(r *Reader)func (m *TxMsgCall) WriteCarbon(w *Writer)func (m *TxMsgCallMulti) ReadCarbon(r *Reader)func (m *TxMsgCallMulti) WriteCarbon(w *Writer)func (m *TxMsgMintFungible) ReadCarbon(r *Reader)func (m *TxMsgMintFungible) WriteCarbon(w *Writer)func (m *TxMsgMintNonFungible) ReadCarbon(r *Reader)func (m *TxMsgMintNonFungible) WriteCarbon(w *Writer)func (m *TxMsgPhantasma) ReadCarbon(r *Reader)func (m *TxMsgPhantasma) WriteCarbon(w *Writer)func (m *TxMsgPhantasmaRaw) ReadCarbon(r *Reader)func (m *TxMsgPhantasmaRaw) WriteCarbon(w *Writer)func (m *TxMsgTrade) ReadCarbon(r *Reader)func (m *TxMsgTrade) WriteCarbon(w *Writer)func (m *TxMsgTransferFungible) ReadCarbon(r *Reader)func (m *TxMsgTransferFungible) WriteCarbon(w *Writer)func (m *TxMsgTransferFungibleGasPayer) ReadCarbon(r *Reader)func (m *TxMsgTransferFungibleGasPayer) WriteCarbon(w *Writer)func (m *TxMsgTransferNonFungibleMulti) ReadCarbon(r *Reader)func (m *TxMsgTransferNonFungibleMulti) WriteCarbon(w *Writer)func (m *TxMsgTransferNonFungibleMultiGasPayer) ReadCarbon(r *Reader)func (m *TxMsgTransferNonFungibleMultiGasPayer) WriteCarbon(w *Writer)func (m *TxMsgTransferNonFungibleSingle) ReadCarbon(r *Reader)func (m *TxMsgTransferNonFungibleSingle) WriteCarbon(w *Writer)func (m *TxMsgTransferNonFungibleSingleGasPayer) ReadCarbon(r *Reader)func (m *TxMsgTransferNonFungibleSingleGasPayer) WriteCarbon(w *Writer)func (p FeePlan) Apply(msg TxMsg) TxMsgfunc (r *Reader) AssertEOF()func (r *Reader) Read1() bytefunc (r *Reader) Read16() Bytes16func (r *Reader) Read2() int16func (r *Reader) Read32() Bytes32func (r *Reader) Read4() int32func (r *Reader) Read4U() uint32func (r *Reader) Read64() Bytes64func (r *Reader) Read8() int64func (r *Reader) Read8U() uint64func (r *Reader) ReadBigInt() *big.Intfunc (r *Reader) ReadBigIntArray() []*big.Intfunc (r *Reader) ReadBigIntWithHeader(preReadHeader int) *big.Intfunc (r *Reader) ReadByteArray() []bytefunc (r *Reader) ReadByteArrays() [][]bytefunc (r *Reader) ReadInt16Array() []int16func (r *Reader) ReadInt32Array() []int32func (r *Reader) ReadInt64Array() []int64func (r *Reader) ReadInt8Array() []int8func (r *Reader) ReadLength() intfunc (r *Reader) ReadLengthFor(elementSize int) intfunc (r *Reader) ReadRaw(count int) []bytefunc (r *Reader) ReadStringZ() stringfunc (r *Reader) ReadStringZArray() []stringfunc (r *Reader) ReadUint64Array() []uint64func (r0 *PhantasmaNFTMintResult) ReadCarbon(r *Reader)func (r0 *PhantasmaNFTMintResult) WriteCarbon(w *Writer)func (s *MsgCallArgSections) ReadWithCount(r *Reader, countNegative int32)func (s *SeriesInfo) ReadCarbon(r *Reader)func (s *SeriesInfo) WriteCarbon(w *Writer)func (s *SmallString) ReadCarbon(r *Reader)func (s *TokenSchemas) ReadCarbon(r *Reader)func (s *TokenSchemas) WriteCarbon(w *Writer)func (s *VMDynamicStruct) Get(name string) *VMDynamicVariablefunc (s *VMDynamicStruct) ReadCarbon(r *Reader)func (s *VMDynamicStruct) ReadWithSchema(schema *VMStructSchema, r *Reader)func (s *VMDynamicStruct) WriteCarbon(w *Writer)func (s *VMDynamicStruct) WriteWithSchema(schema *VMStructSchema, w *Writer) boolfunc (s *VMNamedVariableSchema) ReadCarbon(r *Reader)func (s *VMNamedVariableSchema) WriteCarbon(w *Writer)func (s *VMStructSchema) ReadCarbon(r *Reader)func (s *VMStructSchema) WriteCarbon(w *Writer)func (s *VMVariableSchema) ReadCarbon(r *Reader)func (s *VMVariableSchema) WriteCarbon(w *Writer)func (s KeyPairSigner) PublicKey() []bytefunc (s KeyPairSigner) SignMessage(_ context.Context, message []byte) ([]byte, error)func (s MsgCallArgSections) HasSections() boolfunc (s MsgCallArgSections) WriteCarbon(w *Writer)func (s SmallString) Bytes() []bytefunc (s SmallString) String() stringfunc (s SmallString) WriteCarbon(w *Writer)func (t *TokenInfo) ReadCarbon(r *Reader)func (t *TokenInfo) WriteCarbon(w *Writer)func (t TxType) String() stringfunc (v *VMDynamicVariable) ReadCarbon(r *Reader)func (v *VMDynamicVariable) ReadWithSchema(schema *VMVariableSchema, r *Reader)func (v *VMDynamicVariable) WriteCarbon(w *Writer)func (v *VMNamedDynamicVariable) ReadCarbon(r *Reader)func (v *VMNamedDynamicVariable) WriteCarbon(w *Writer)func (w *Writer) Bytes() []bytefunc (w *Writer) Write1(v byte)func (w *Writer) Write16(data Bytes16)func (w *Writer) Write2(v int16)func (w *Writer) Write32(data Bytes32)func (w *Writer) Write4(v int32)func (w *Writer) Write4U(v uint32)func (w *Writer) Write64(data Bytes64)func (w *Writer) Write8(v int64)func (w *Writer) Write8U(v uint64)func (w *Writer) WriteBigInt(value *big.Int)func (w *Writer) WriteBigIntArray(values []*big.Int)func (w *Writer) WriteBlob(blob Blob)func (w *Writer) WriteBlobArray(items []Blob)func (w *Writer) WriteByteArray(data []byte)func (w *Writer) WriteByteArrays(values [][]byte)func (w *Writer) WriteFixed(data []byte, count int)func (w *Writer) WriteInt16Array(values []int16)func (w *Writer) WriteInt32Array(values []int32)func (w *Writer) WriteInt64Array(values []int64)func (w *Writer) WriteInt8Array(values []int8)func (w *Writer) WriteRaw(data []byte)func (w *Writer) WriteStringZ(value string)func (w *Writer) WriteStringZArray(values []string)func (w *Writer) WriteUint64Array(values []uint64)func (witness *Witness) ReadCarbon(r *Reader)func (witness *Witness) WriteCarbon(w *Writer)func (x *IntX) ReadCarbon(r *Reader)func (x IntX) BigInt() *big.Intfunc (x IntX) Is8ByteSafe() boolfunc (x IntX) String() stringfunc (x IntX) WriteCarbon(w *Writer)func BuildAndSerializeTokenSchemas(schemas *TokenSchemas) []bytefunc BuildBurnFungibleTx(p BurnFungibleParams) TxMsgfunc BuildBurnNonFungibleTx(p BurnNonFungibleParams) TxMsgfunc BuildCreateTokenSeriesTx(tokenID uint64, seriesInfo SeriesInfo, creator Bytes32, limits TxLimits) TxMsgfunc BuildCreateTokenSeriesTxAndSign(tokenID uint64, seriesInfo SeriesInfo, signer cryptography.KeyPair, config *GasConfig, options PlanAndSignOptions) ([]byte, error)func BuildCreateTokenSeriesTxAndSignHex(tokenID uint64, seriesInfo SeriesInfo, signer cryptography.KeyPair, config *GasConfig, options PlanAndSignOptions) (string, error)func BuildCreateTokenTx(tokenInfo TokenInfo, creator Bytes32, limits TxLimits) TxMsgfunc BuildCreateTokenTxAndSign(tokenInfo TokenInfo, signer cryptography.KeyPair, config *GasConfig, options PlanAndSignOptions) ([]byte, error)func BuildCreateTokenTxAndSignHex(tokenInfo TokenInfo, signer cryptography.KeyPair, config *GasConfig, options PlanAndSignOptions) (string, error)func BuildMintFungibleTx(p MintFungibleParams) TxMsgfunc BuildMintPhantasmaNonFungibleSingleTx(tokenID uint64, phantasmaSeriesID *big.Int, sender Bytes32, receiver Bytes32, publicRom []byte, ram []byte, limits TxLimits) (TxMsg, error)func BuildMintPhantasmaNonFungibleSingleTxAndSign(tokenID uint64, phantasmaSeriesID *big.Int, signer cryptography.KeyPair, receiver Bytes32, publicRom []byte, ram []byte, config *GasConfig, options PlanAndSignOptions) ([]byte, error)func BuildMintPhantasmaNonFungibleSingleTxAndSignHex(tokenID uint64, phantasmaSeriesID *big.Int, signer cryptography.KeyPair, receiver Bytes32, publicRom []byte, ram []byte, config *GasConfig, options PlanAndSignOptions) (string, error)func BuildMintPhantasmaNonFungibleTx(tokenID uint64, sender Bytes32, receiver Bytes32, tokens []PhantasmaNFTMintInfo, limits TxLimits) (TxMsg, error)func BuildMintPhantasmaNonFungibleTxAndSign(tokenID uint64, signer cryptography.KeyPair, receiver Bytes32, tokens []PhantasmaNFTMintInfo, config *GasConfig, options PlanAndSignOptions) ([]byte, error)func BuildMintPhantasmaNonFungibleTxAndSignHex(tokenID uint64, signer cryptography.KeyPair, receiver Bytes32, tokens []PhantasmaNFTMintInfo, config *GasConfig, options PlanAndSignOptions) (string, error)func BuildNFTRom(schema VMStructSchema, phantasmaNFTID *big.Int, metadata []MetadataField) ([]byte, error)func BuildPhantasmaNFTPublicMintSchema(nftRomSchema VMStructSchema) VMStructSchemafunc BuildPhantasmaNFTRom(nftRomSchema VMStructSchema, metadata []MetadataField) ([]byte, error)func BuildSeriesInfo(phantasmaSeriesID *big.Int, maxMint uint32, maxSupply uint32, owner Bytes32) (SeriesInfo, error)func BuildTokenInfo(symbol string, maxSupply IntX, isNFT bool, decimals byte, owner Bytes32, metadata []byte, schemas []byte) (TokenInfo, error)func BuildTokenMetadata(fields map[string]string) ([]byte, error)func BuildTokenSchemasFromFields(seriesMetadata []FieldType, rom []FieldType, ram []FieldType) (TokenSchemas, error)func BuildTokenSeriesMetadata(schema VMStructSchema, phantasmaSeriesID *big.Int, metadata []MetadataField) ([]byte, error)func BuildTransferFungibleTx(p TransferFungibleParams) TxMsgfunc BuildTransferNonFungibleTx(p TransferNonFungibleParams) (TxMsg, error)func BurnedInstances(msg TxMsg) []BurnedInstancefunc Bytes16FromHex(value string) (Bytes16, error)func Bytes32FromHex(value string) (Bytes32, error)func Bytes32FromPhantasmaAddress(address cryptography.Address) (Bytes32, error)func Bytes32FromPhantasmaAddressText(text string) (Bytes32, error)func Bytes32FromPublicKey(publicKey []byte) (Bytes32, error)func Bytes64FromHex(value string) (Bytes64, error)func CheckTokenSymbol(symbol string) errorfunc DecodeHex(value string) ([]byte, error)func DefaultExpiry() int64func DefaultMarketConfig() MarketConfigfunc EnvelopeBytes(msg TxMsg, witnessCount int) (int, error)func EnvelopeBytesFor(kind NativeFeeKind, serializedMessageLength int, witnessCount int) (int, error)func EstimateNativeFee(kind NativeFeeKind, config *GasConfig, params NativeFeeParams) (NativeFeeEstimate, error)func EstimateNativeFeeBatch(parts []NativeFeePart, config *GasConfig, transaction NativeFeeTransactionParams) (NativeFeeEstimate, error)func ExpiryWithin(expiryWindow, margin time.Duration) (int64, error)func GetNFTAddress(carbonTokenID uint64, instanceID uint64) Bytes32func IntXFromInt64(value int64) IntXfunc IsNFTAddress(address Bytes32) boolfunc KeyPairSigners(keys ...cryptography.KeyPair) []TxSignerfunc MustBuildMintPhantasmaNonFungibleSingleTx(tokenID uint64, phantasmaSeriesID *big.Int, sender Bytes32, receiver Bytes32, publicRom []byte, ram []byte, limits TxLimits) TxMsgfunc MustBuildNFTRom(schema VMStructSchema, phantasmaNFTID *big.Int, metadata []MetadataField) []bytefunc MustBuildPhantasmaNFTRom(nftRomSchema VMStructSchema, metadata []MetadataField) []bytefunc MustBuildSeriesInfo(phantasmaSeriesID *big.Int, maxMint uint32, maxSupply uint32, owner Bytes32) SeriesInfofunc MustBuildTokenMetadata(fields map[string]string) []bytefunc MustBuildTokenSeriesMetadata(schema VMStructSchema, phantasmaSeriesID *big.Int, metadata []MetadataField) []bytefunc MustBytes16(data []byte) Bytes16func MustBytes16FromHex(value string) Bytes16func MustBytes32(data []byte) Bytes32func MustBytes32FromHex(value string) Bytes32func MustBytes32FromPhantasmaAddress(address cryptography.Address) Bytes32func MustBytes32FromPhantasmaAddressText(text string) Bytes32func MustBytes32FromPublicKey(publicKey []byte) Bytes32func MustBytes64(data []byte) Bytes64func MustBytes64FromHex(value string) Bytes64func MustDecodeHex(value string) []bytefunc MustIntXFromString(value string) IntXfunc MustParseCreateTokenResult(resultHex string) uint64func MustParseCreateTokenSeriesResult(resultHex string) uint32func MustParseMintNonFungibleResult(carbonTokenID uint64, resultHex string) []Bytes32func MustParseMintPhantasmaNonFungibleResult(resultHex string) []PhantasmaNFTMintResultfunc MustSmallString(value string) SmallStringfunc MustTokenSchemasFromJSON(data string) TokenSchemasfunc MustVMNamedDynamicVariable(name string, vmType VMType, value any) VMNamedDynamicVariablefunc MustVMNamedVariableSchema(name string, vmType VMType) VMNamedVariableSchemafunc NewBytes16(data []byte) (Bytes16, error)func NewBytes32(data []byte) (Bytes32, error)func NewBytes64(data []byte) (Bytes64, error)func NewIntX(value *big.Int) IntXfunc NewReader(data []byte) *Readerfunc NewSmallString(value string) (SmallString, error)func NewVMDynamicVariable(vmType VMType, value any) VMDynamicVariablefunc NewVMNamedDynamicVariable(name string, vmType VMType, value any) (VMNamedDynamicVariable, error)func NewVMNamedVariableSchema(name string, vmType VMType) (VMNamedVariableSchema, error)func NewVMVariableSchema(vmType VMType, structDef *VMStructSchema) VMVariableSchemafunc NewWriter() *Writerfunc NowUnixMillis() int64func ParseCreateTokenResult(resultHex string) (uint64, error)func ParseCreateTokenSeriesResult(resultHex string) (uint32, error)func ParseMintNonFungibleResult(carbonTokenID uint64, resultHex string) ([]Bytes32, error)func ParseMintPhantasmaNonFungibleResult(resultHex string) ([]PhantasmaNFTMintResult, error)func ParseTokenSchemasJSON(data string) (TokenSchemasJSON, error)func PhantasmaCanonicalROMBytes(publicROMBytes int) (int, error)func PlanAndSignWithKeys(msg TxMsg, keys []cryptography.KeyPair, config *GasConfig, options PlanAndSignOptions) ([]byte, error)func PlanFees(msg TxMsg, config *GasConfig, options FeePlanOptions) (FeePlan, error)func PrepareStandardTokenSchemas(sharedMetadata bool) TokenSchemasfunc RequiredWitnesses(msg TxMsg) (addresses []Bytes32, fixed bool)func Serialize(blob Blob) []bytefunc SerializeTokenSchemas(schemas TokenSchemas) []bytefunc SerializeTokenSchemasHex(schemas TokenSchemas) stringfunc SignAndSerializeTxMsg(msg TxMsg, keys ...cryptography.KeyPair) ([]byte, error)func SignAndSerializeTxMsgHex(msg TxMsg, keys ...cryptography.KeyPair) (string, error)func SignAndSerializeTxMsgWith(ctx context.Context, msg TxMsg, signers ...TxSigner) ([]byte, error)func SignTxMsg(msg TxMsg, keys ...cryptography.KeyPair) (SignedTxMsg, error)func SignTxMsgWith(ctx context.Context, msg TxMsg, signers ...TxSigner) (SignedTxMsg, error)func StorageQuantaFor(rowBytes int) (int, error)func SummarizeFeePlan(plan FeePlan) FeePlanSummaryfunc SummarizeFeePlanWithDecimals(plan FeePlan, gasDecimals, dataDecimals int) FeePlanSummaryfunc TokenSchemasFromJSON(data string) (TokenSchemas, error)func UnpackNFTAddress(address Bytes32) (carbonTokenID uint64, instanceID uint64)func UnpackNFTInstanceID(instanceID uint64) (seriesID uint32, mintNumber uint32)func VMTypeFromString(value string) (VMType, error)func VMTypeName(vmType VMType) (string, error)func VerifyTokenSchemas(schemas TokenSchemas) errorgithub.com/phantasma-io/phantasma-sdk-go/pkg/cryptography
Source: pkg/cryptography
Declarations
const ECDSAconst Ed25519const HashLength = 32const HexPrefix = "0x"const Interop AddressKind = 0x03const Invalid AddressKind = 0x00const Length = 34const None SignatureKind = iotaconst PrivateKeyLength = 32const Ringconst System AddressKind = 0x02const User AddressKind = 0x01type Address struct {type AddressKind bytetype Ed25519Signature struct {type Hash struct {type Hashable interface {type KeyPair interface {type PhantasmaKeys struct {type Signature interface {type SignatureKind uintFields
Address() AddressBytes() []byteDeserialize(*io.BinReader)ExpandedPrivateKey() []byteHash() HashKind() SignatureKindPrivateKey() []bytePublicKey() []byteSerialize(*io.BinWriter)Sign(msg []byte) (Signature, error)Verify(message []byte, addresses []Address) bool
Methods
func (a *Address) Deserialize(reader *io.BinReader)func (a *Address) GetPublicKey() ([]byte, error)func (a *Address) Serialize(writer *io.BinWriter)func (a Address) Bytes() []bytefunc (a Address) BytesPrefixed() []bytefunc (a Address) IsNull() boolfunc (a Address) IsUser() boolfunc (a Address) Kind() AddressKindfunc (a Address) String() stringfunc (a Address) Text() stringfunc (h *Hash) Deserialize(reader *io.BinReader)func (h *Hash) Serialize(writer *io.BinWriter)func (h Hash) Bytes() []bytefunc (h Hash) FromUnpaddedHex(s string) (Hash, error)func (h Hash) GetDifficulty() intfunc (h Hash) IsNull() boolfunc (h Hash) Size() intfunc (h Hash) String() stringfunc (k PhantasmaKeys) Address() Addressfunc (k PhantasmaKeys) ExpandedPrivateKey() []bytefunc (k PhantasmaKeys) PrivateKey() []bytefunc (k PhantasmaKeys) PublicKey() []bytefunc (k PhantasmaKeys) Sign(msg []byte) (Signature, error)func (k PhantasmaKeys) String() stringfunc (k PhantasmaKeys) WIF() stringfunc (sig *Ed25519Signature) Deserialize(reader *io.BinReader)func (sig Ed25519Signature) Bytes() []bytefunc (sig Ed25519Signature) Kind() SignatureKindfunc (sig Ed25519Signature) Serialize(writer *io.BinWriter)func (sig Ed25519Signature) Verify(message []byte, addresses []Address) boolfunc FromKey(keyPair KeyPair) (Address, error)func FromString(s string) (Address, error)func FromWIF(wif string) (PhantasmaKeys, error)func GeneratePhantasmaKeys() (PhantasmaKeys, error)func HashFromBytes(data []byte) (Hash, error)func HashFromString(s string) Hashfunc IsValidAddress(text string) boolfunc MustAddressFromString(s string) Addressfunc NewAddress(pubKey []byte) (Address, error)func NewEd25519Signature(bytes []byte) (*Ed25519Signature, error)func NewPhantasmaKeys(seed []byte) (PhantasmaKeys, error)func NullAddress() Addressfunc ParseHash(s string) (Hash, error)github.com/phantasma-io/phantasma-sdk-go/pkg/cryptography/ecdsa
Source: pkg/cryptography/ecdsa
Declarations
const CompressedPublicKeySize = 33const PrefixedUncompressedPublicKeySize = 65const PrivateKeySize = 32const RecoverableSignatureSize = 65const Secp256k1 Curve = 1const Secp256r1 Curve = 0const SignatureSize = 64const UncompressedPublicKeySize = 64type Curve uintMethods
func CompressPublicKey(uncompressedPublicKey []byte) ([]byte, error)func PrivateKeyUnmarshal(privKey []byte, curve elliptic.Curve) (*ecdsa.PrivateKey, error)func PublicKeyUnmarshal(pubKey []byte, curve elliptic.Curve) (*ecdsa.PublicKey, error)func RSToSignatureWithoutRecoveryID(r, s *big.Int) []bytefunc Sign(message, prikey []byte, curve Curve) ([]byte, error)func SignatureDropRecoveryID(signature []byte) []bytefunc SignatureToRS(signature []byte) (*big.Int, *big.Int, error)func UncompressedPublicKeyTo65Bytes(pubkey []byte) ([]byte, error)func Verify(message, signature, pubkey []byte, curve Curve) (bool, error)github.com/phantasma-io/phantasma-sdk-go/pkg/cryptography/neoLegacy
Source: pkg/cryptography/neoLegacy
Declarations
var Prefix = byte(0x17)Methods
func Address(pubKey []byte) stringgithub.com/phantasma-io/phantasma-sdk-go/pkg/cryptography/proofOfAddress
Source: pkg/cryptography/proofOfAddress
Declarations
type ProofOfAddressesVerifier struct {Fields
EthAddress stringEthPublicKey stringEthPublicKeyBytes []byteEthSignature stringEthSignatureBytes []byteMessage stringNeo2Address stringNeo2PublicKey stringNeo2PublicKeyBytes []byteNeo2Signature stringNeo2SignatureBytes []bytePhaAddress stringPhaPublicKeyBytes []bytePhaSignature stringPhaSignatureBytes []byteSignedMessage stringSignedMessageBytes []byte
Methods
func (v *ProofOfAddressesVerifier) VerifyMessage() (bool, string, error)func NewProofOfAddressesVerifier(message string) (*ProofOfAddressesVerifier, error)github.com/phantasma-io/phantasma-sdk-go/pkg/domain
Source: pkg/domain
Declarations
const SDKVersion = "0.18.1"var SDKPayload []byte = []byte("GO-SDK-v" + SDKVersion)github.com/phantasma-io/phantasma-sdk-go/pkg/domain/contract
Source: pkg/domain/contract
Declarations
const Duplicated TokenSeriesMode = 2const Unique TokenSeriesMode = 1type ContractEvent struct {type ContractInterface struct {type ContractInterface_S struct {type ContractMethod struct {type ContractMethod_S struct {type ContractParameter struct {type TokenContent struct {type TokenContent_S struct {type TokenInfusion struct {type TokenInfusion_S struct {type TokenSeries struct {type TokenSeriesMode uinttype TokenSeries_S struct {Fields
ABI ContractInterfaceCreator stringCurrentChain stringCurrentOwner stringDescription []byteEvents []ContractEventInfusion []TokenInfusionInfusion []TokenInfusion_SMaxSupply *big.IntMaxSupply stringMethods *orderedmap.OrderedMap[string, ContractMethod]Methods *orderedmap.OrderedMap[string, ContractMethod_S]MintCount *big.IntMintCount stringMintID *big.IntMintID stringMode TokenSeriesModeName stringName stringName stringOffset int32Parameters []ContractParameterRAM []byteROM []byteROM []byteReturnType vm.VMTypeReturnType stringReturnType vm.VMTypeScript []byteSeriesID *big.IntSeriesID stringSeriesID *big.IntSeriesID stringSymbol stringSymbol stringSymbol stringTimestamp *types.TimestampTokenID *big.IntTokenID stringType vm.VMTypeValue byteValue *big.IntValue string
Methods
func (c *TokenContent) Deserialize(reader *io.BinReader)func (c *TokenContent) Serialize(writer *io.BinWriter)func (c *TokenContent_S) Deserialize(reader *io.BinReader)func (c *TokenContent_S) Serialize(writer *io.BinWriter)func (e *ContractEvent) Deserialize(reader *io.BinReader)func (e *ContractEvent) Serialize(writer *io.BinWriter)func (i *ContractInterface) Deserialize(reader *io.BinReader)func (i *ContractInterface) Serialize(writer *io.BinWriter)func (i *ContractInterface_S) Deserialize(reader *io.BinReader)func (i *ContractInterface_S) Serialize(writer *io.BinWriter)func (i *TokenInfusion) Deserialize(reader *io.BinReader)func (i *TokenInfusion) Serialize(writer *io.BinWriter)func (i *TokenInfusion_S) Deserialize(reader *io.BinReader)func (i *TokenInfusion_S) Serialize(writer *io.BinWriter)func (m *ContractMethod) Deserialize(reader *io.BinReader)func (m *ContractMethod) Serialize(writer *io.BinWriter)func (m *ContractMethod_S) Deserialize(reader *io.BinReader)func (m *ContractMethod_S) Serialize(writer *io.BinWriter)func (s *TokenSeries) Deserialize(reader *io.BinReader)func (s *TokenSeries) Serialize(writer *io.BinWriter)func (s *TokenSeries_S) Deserialize(reader *io.BinReader)func (s *TokenSeries_S) Serialize(writer *io.BinWriter)github.com/phantasma-io/phantasma-sdk-go/pkg/domain/event
Source: pkg/domain/event
Declarations
const AddressLink EventKind = 10const AddressMigration EventKind = 46const AddressRegister EventKind = 9const AddressUnlink EventKind = 11const AddressUnregister EventKind = 17const ChainCreate EventKind = 1const ChainSwap EventKind = 43const ChannelCreate EventKind = 36const ChannelRefill EventKind = 37const ChannelSettle EventKind = 38const Classic TypeAuction = 1const ContractDeploy EventKind = 45const ContractRegister EventKind = 44const ContractUpgrade EventKind = 47const Crowdsale EventKind = 58const CrownRewards EventKind = 56const Custom EventKind = 64const DomainCreate EventKind = 52const DomainDelete EventKind = 53const Dutch TypeAuction = 3const FeedCreate EventKind = 22const FeedUpdate EventKind = 23const FileCreate EventKind = 24const FileDelete EventKind = 25const Fixed TypeAuction = 0const GasEscrow EventKind = 15const GasPayment EventKind = 16const Inflation EventKind = 49const Infusion EventKind = 57const LeaderboardCreate EventKind = 39const LeaderboardInsert EventKind = 40const LeaderboardReset EventKind = 41const Log EventKind = 48const OrderBid EventKind = 59const OrderCancelled EventKind = 19const OrderClosed EventKind = 21const OrderCreated EventKind = 18const OrderFilled EventKind = 20const OrganizationAdd EventKind = 13const OrganizationCreate EventKind = 12const OrganizationRemove EventKind = 14const OwnerAdded EventKind = 50const OwnerRemoved EventKind = 51const PackedNFT EventKind = 30const PlatformCreate EventKind = 42const PollClosed EventKind = 34const PollCreated EventKind = 33const PollVote EventKind = 35const Reserve TypeAuction = 2const TaskStart EventKind = 54const TaskStop EventKind = 55const TokenBurn EventKind = 6const TokenClaim EventKind = 8const TokenCreate EventKind = 2const TokenMint EventKind = 5const TokenReceive EventKind = 4const TokenSend EventKind = 3const TokenStake EventKind = 7const Unknown EventKind = 0const ValidatorElect EventKind = 27const ValidatorPropose EventKind = 26const ValidatorRemove EventKind = 28const ValidatorSwitch EventKind = 29const ValueCreate EventKind = 31const ValueUpdate EventKind = 32type ChainValueEventData struct {type Event struct {type EventKind uinttype GasEventData struct {type InfusionEventData struct {type MarketEventData struct {type OrganizationEventData struct {type TokenEventData struct {type TransactionSettleEventData struct {type TypeAuction uintFields
Address crypto.AddressAddress crypto.AddressAmount big.IntBaseSymbol stringBaseSymbol stringChain stringChainName stringChainName stringContract stringData []byteEndPrice *big.IntHash crypto.HashID *big.IntInfusedSymbol stringInfusedValue big.IntKind EventKindMemberAddress crypto.AddressName stringOrganization stringPlatform stringPrice *big.IntPrice big.IntQuoteSymbol stringSymbol stringTokenID big.IntType TypeAuctionValue *big.IntValue big.Int
Methods
func (d *MarketEventData) Deserialize(reader *io.BinReader)func (d *MarketEventData) Serialize(writer *io.BinWriter)func (e *Event) Deserialize(reader *io.BinReader)func (e *Event) Serialize(writer *io.BinWriter)func (e Event) String() stringfunc (k *EventKind) SetString(eventKind string)func (k EventKind) IsMarketEvent() boolfunc (k EventKind) IsTokenEvent() boolfunc (k EventKind) String() stringfunc (te *TokenEventData) Deserialize(reader *io.BinReader)func (te *TokenEventData) Serialize(writer *io.BinWriter)github.com/phantasma-io/phantasma-sdk-go/pkg/domain/stake
Source: pkg/domain/stake
Declarations
type EnergyClaim struct {type EnergyClaim_S struct {type EnergyStake struct {type EnergyStake_S struct {Fields
ClaimDate *types.TimestampIsNew boolStakeAmount *big.IntStakeAmount stringStakeTime *types.Timestamp
Methods
func (ec *EnergyClaim) Deserialize(reader *io.BinReader)func (ec *EnergyClaim) Serialize(writer *io.BinWriter)func (ec *EnergyClaim_S) Deserialize(reader *io.BinReader)func (ec *EnergyClaim_S) Serialize(writer *io.BinWriter)func (es *EnergyStake) Deserialize(reader *io.BinReader)func (es *EnergyStake) Serialize(writer *io.BinWriter)func (es *EnergyStake_S) Deserialize(reader *io.BinReader)func (es *EnergyStake_S) Serialize(writer *io.BinWriter)github.com/phantasma-io/phantasma-sdk-go/pkg/domain/token
Source: pkg/domain/token
Declarations
const Burnable TokenFlags = 1 << 8const Divisible TokenFlags = 1 << 3const Fiat TokenFlags = 1 << 6const Finite TokenFlags = 1 << 2const Fuel TokenFlags = 1 << 4const Fungible TokenFlags = 1 << 1const Mintable TokenFlags = 1 << 9const None TokenFlags = 0const Stakable TokenFlags = 1 << 5const Swappable TokenFlags = 1 << 7const Transferable TokenFlags = 1 << 0type TokenFlags uinttype TokenInfo struct {type TokenInfo_S struct {Fields
ABI contract.ContractInterfaceABI contract.ContractInterface_SDecimals int32Flags TokenFlagsFlags []stringMaxSupply *big.IntMaxSupply stringName stringOwner cryptography.AddressScript []byteSymbol string
Methods
func (tf TokenFlags) FromSlice(flagsSlice []string) TokenFlagsfunc (tf TokenFlags) ToSlice() []stringfunc (ti *TokenInfo) Deserialize(reader *io.BinReader)func (ti *TokenInfo) Serialize(writer *io.BinWriter)func (ti *TokenInfo_S) Deserialize(reader *io.BinReader)func (ti *TokenInfo_S) Serialize(writer *io.BinWriter)github.com/phantasma-io/phantasma-sdk-go/pkg/domain/types
Source: pkg/domain/types
Declarations
type Timestamp struct {Fields
Value uint32
Methods
func NewTimestamp(value uint32) *Timestampgithub.com/phantasma-io/phantasma-sdk-go/pkg/encoding/base58
Source: pkg/encoding/base58
Methods
func CheckDecode(s string) (b []byte, err error)func CheckEncode(b []byte) stringfunc Decode(s string) (b []byte, err error)func Encode(b []byte) stringgithub.com/phantasma-io/phantasma-sdk-go/pkg/io
Source: pkg/io
Declarations
const MaxArraySize = 0x1000000type BinReader struct {type BinWriter struct {type BufBinWriter struct {type Serializer interface {Fields
Count intDeserialize(*BinReader)Err errorErr errorSerialize(*BinWriter)
Methods
func (bw *BufBinWriter) Bytes() []bytefunc (bw *BufBinWriter) Len() intfunc (bw *BufBinWriter) Reset()func (cw *counterWriter) Write(p []byte) (int, error)func (r *BinReader) ReadArray(t interface{}, maxSize ...int)func (r *BinReader) ReadB() bytefunc (r *BinReader) ReadBigInteger() *big.Intfunc (r *BinReader) ReadBigIntegerToString() stringfunc (r *BinReader) ReadBool() boolfunc (r *BinReader) ReadBytes(buf []byte)func (r *BinReader) ReadString() stringfunc (r *BinReader) ReadTimestamp() *types.Timestampfunc (r *BinReader) ReadU16BE() uint16func (r *BinReader) ReadU16LE() uint16func (r *BinReader) ReadU32LE() uint32func (r *BinReader) ReadU64LE() uint64func (r *BinReader) ReadVarBytes(maxSize ...int) []bytefunc (r *BinReader) ReadVarUint() uint64func (w *BinWriter) WriteArray(arr interface{})func (w *BinWriter) WriteB(u8 byte)func (w *BinWriter) WriteBigInteger(n *big.Int)func (w *BinWriter) WriteBigIntegerFromString(n string)func (w *BinWriter) WriteBool(b bool)func (w *BinWriter) WriteBytes(b []byte)func (w *BinWriter) WriteOp(value byte)func (w *BinWriter) WriteString(s string)func (w *BinWriter) WriteTimestamp(t *types.Timestamp)func (w *BinWriter) WriteU16BE(u16 uint16)func (w *BinWriter) WriteU16LE(u16 uint16)func (w *BinWriter) WriteU32LE(u32 uint32)func (w *BinWriter) WriteU64LE(u64 uint64)func (w *BinWriter) WriteVarBytes(b []byte)func (w *BinWriter) WriteVarUint(val uint64)func GetVarSize(value interface{}) intfunc MakeDirForFile(filePath string, creator string) errorfunc NewBinReaderFromBuf(b []byte) *BinReaderfunc NewBinReaderFromIO(ior io.Reader) *BinReaderfunc NewBinWriterFromIO(iow io.Writer) *BinWriterfunc NewBufBinWriter() *BufBinWritergithub.com/phantasma-io/phantasma-sdk-go/pkg/jsonrpc
Source: pkg/jsonrpc
Declarations
const DefaultMaxResponseBytes = 16 * 1024 * 1024type HTTPError struct {type RPCClient interface {type RPCClientOpts struct {type RPCError struct {type RPCRequest struct {type RPCRequests []*RPCRequesttype RPCResponse struct {type RPCResponses []*RPCResponseFields
AllowUnknownFields boolCode intjson:“code”``Code intCustomHeaders map[string]stringData interface{}json:“data,omitempty”``DefaultRequestID intError *RPCErrorjson:“error,omitempty”``HTTPClient *http.ClientID intjson:“id”``ID stringjson:“id”``JSONRPC stringjson:“jsonrpc”``MaxResponseBytes int64Message stringjson:“message”``Method stringjson:“method”``Params interface{}json:“params,omitempty”``Result interface{}json:“result,omitempty”``
Methods
func (RPCResponse *RPCResponse) GetBool() (bool, error)func (RPCResponse *RPCResponse) GetFloat() (float64, error)func (RPCResponse *RPCResponse) GetInt() (int64, error)func (RPCResponse *RPCResponse) GetObject(toType interface{}) errorfunc (RPCResponse *RPCResponse) GetString() (string, error)func (client *rpcClient) Call(ctx context.Context, method string, params ...interface{}) (*RPCResponse, error)func (client *rpcClient) CallBatch(ctx context.Context, requests RPCRequests) (RPCResponses, error)func (client *rpcClient) CallBatchRaw(ctx context.Context, requests RPCRequests) (RPCResponses, error)func (client *rpcClient) CallFor(ctx context.Context, out interface{}, method string, params ...interface{}) errorfunc (client *rpcClient) CallRaw(ctx context.Context, request *RPCRequest) (*RPCResponse, error)func (e *HTTPError) Error() stringfunc (e *RPCError) Error() stringfunc (id *rpcResponseID) UnmarshalJSON(data []byte) errorfunc (res RPCResponses) AsMap() map[int]*RPCResponsefunc (res RPCResponses) GetByID(id int) *RPCResponsefunc (res RPCResponses) HasError() boolfunc (result *rpcResponseResult) UnmarshalJSON(data []byte) errorfunc NewClient(endpoint string) RPCClientfunc NewClientWithOpts(endpoint string, opts *RPCClientOpts) RPCClientfunc NewRequest(method string, params ...interface{}) *RPCRequestfunc NewRequestWithID(id int, method string, params ...interface{}) *RPCRequestfunc Params(params ...interface{}) interfacegithub.com/phantasma-io/phantasma-sdk-go/pkg/rpc
Source: pkg/rpc
Declarations
const AddressTypeCarbonconst AddressTypePhantasma AddressType = iotaconst ApiKeyHeader = "X-Api-Key"const PreflightFreeconst PreflightNotApplicable PreflightVerdict = iotaconst PreflightTakenconst PreflightUnknowntype AddressType inttype ChainFeeParams struct {type FeePlanner struct {type FeePlannerOptions struct {type GasConfigSource interface {type InfusionSource interface {type PhantasmaRPC struct {type PlanRequestOptions struct {type PreflightError struct {type PreflightResult struct {type PreflightSource interface {type PreflightVerdict inttype SendTransactionOptions struct {Fields
BlockRateTarget time.DurationConfigTTL time.DurationControlTokenID(ctx context.Context) (uint64, error)ExpiryWindow time.DurationGasModelVersion uint32GetGasConfig(ctx context.Context) (resp.GasConfigResult, error)GetTokenWithID(ctx context.Context, symbol string, extended bool, carbonTokenID uint64) (resp.TokenResult, error)InfusedAssets(ctx context.Context, tokenID, instanceID uint64) ([]carbon.InfusedAsset, error)Message stringPlanRequestOptionsReason stringRefreshConfig boolSkipPreflight boolSubject stringVerdict PreflightVerdict
Methods
func (addressType AddressType) MarshalJSON() ([]byte, error)func (addressType AddressType) String() stringfunc (e *PreflightError) Error() stringfunc (p *FeePlanner) ChainParams(ctx context.Context, refresh bool) (ChainFeeParams, error)func (p *FeePlanner) Config(ctx context.Context, refresh bool) (carbon.GasConfig, error)func (p *FeePlanner) Invalidate()func (p *FeePlanner) Plan(ctx context.Context, msg carbon.TxMsg, options PlanRequestOptions) (carbon.FeePlan, error)func (p *FeePlanner) PlanWith(config *carbon.GasConfig, msg carbon.TxMsg, options carbon.FeePlanOptions) (carbon.FeePlan, error)func (rpc PhantasmaRPC) Call(ctx context.Context, method string, params ...interface{}) (*jsonrpc.RPCResponse, error)func (rpc PhantasmaRPC) ControlTokenID(ctx context.Context) (uint64, error)func (rpc PhantasmaRPC) EstimateTransaction(ctx context.Context, txData string) (resp.EstimateTransactionResult, error)func (rpc PhantasmaRPC) Fees() *FeePlannerfunc (rpc PhantasmaRPC) GetAccount(ctx context.Context, address string) (resp.AccountResult, error)func (rpc PhantasmaRPC) GetAccountFungibleTokens(ctx context.Context, account string, tokenSymbol string, carbonTokenID uint64, pageSize int, cursor string, checkAddressReservedByte bool) (resp.CursorPaginatedResult[[]resp.BalanceResult], error)func (rpc PhantasmaRPC) GetAccountFungibleTokensWithAddressType(ctx context.Context, account string, tokenSymbol string, carbonTokenID uint64, pageSize int, cursor string, checkAddressReservedByte bool, addressType AddressType) (resp.CursorPaginatedResult[[]resp.BalanceResult], error)func (rpc PhantasmaRPC) GetAccountInfo(ctx context.Context, address string) (resp.AccountInfoResult, error)func (rpc PhantasmaRPC) GetAccountInfoWithAddressType(ctx context.Context, address string, checkAddressReservedByte bool, addressType AddressType) (resp.AccountInfoResult, error)func (rpc PhantasmaRPC) GetAccountInfos(ctx context.Context, addresses []string) ([]resp.AccountInfoResult, error)func (rpc PhantasmaRPC) GetAccountInfosWithAddressType(ctx context.Context, addresses []string, checkAddressReservedByte bool, addressType AddressType) ([]resp.AccountInfoResult, error)func (rpc PhantasmaRPC) GetAccountNFTs(ctx context.Context, account string, tokenSymbol string, carbonTokenID uint64, carbonSeriesID uint32, pageSize int, cursor string, extended bool, checkAddressReservedByte bool) (resp.CursorPaginatedResult[[]resp.TokenDataResult], error)func (rpc PhantasmaRPC) GetAccountNFTsWithAddressType(ctx context.Context, account string, tokenSymbol string, carbonTokenID uint64, carbonSeriesID uint32, pageSize int, cursor string, extended bool, checkAddressReservedByte bool, addressType AddressType) (resp.CursorPaginatedResult[[]resp.TokenDataResult], error)func (rpc PhantasmaRPC) GetAccountOwnedTokenSeries(ctx context.Context, account string, tokenSymbol string, carbonTokenID uint64, pageSize int, cursor string, checkAddressReservedByte bool) (resp.CursorPaginatedResult[[]resp.TokenSeriesResult], error)func (rpc PhantasmaRPC) GetAccountOwnedTokenSeriesWithAddressType(ctx context.Context, account string, tokenSymbol string, carbonTokenID uint64, pageSize int, cursor string, checkAddressReservedByte bool, addressType AddressType) (resp.CursorPaginatedResult[[]resp.TokenSeriesResult], error)func (rpc PhantasmaRPC) GetAccountOwnedTokens(ctx context.Context, account string, tokenSymbol string, carbonTokenID uint64, pageSize int, cursor string, checkAddressReservedByte bool) (resp.CursorPaginatedResult[[]resp.TokenResult], error)func (rpc PhantasmaRPC) GetAccountOwnedTokensWithAddressType(ctx context.Context, account string, tokenSymbol string, carbonTokenID uint64, pageSize int, cursor string, checkAddressReservedByte bool, addressType AddressType) (resp.CursorPaginatedResult[[]resp.TokenResult], error)func (rpc PhantasmaRPC) GetAccountWithAddressType(ctx context.Context, address string, extended bool, checkAddressReservedByte bool, addressType AddressType) (resp.AccountResult, error)func (rpc PhantasmaRPC) GetAccounts(ctx context.Context, addresses ...string) ([]resp.AccountResult, error)func (rpc PhantasmaRPC) GetAccountsText(ctx context.Context, addresses string) ([]resp.AccountResult, error)func (rpc PhantasmaRPC) GetAccountsWithAddressType(ctx context.Context, addresses []string, extended bool, checkAddressReservedByte bool, addressType AddressType) ([]resp.AccountResult, error)func (rpc PhantasmaRPC) GetAddressTransactionCount(ctx context.Context, address string, chainName string) (int, error)func (rpc PhantasmaRPC) GetAddressTransactions(ctx context.Context, address string, page int, pageSize int) (resp.PaginatedResult[resp.AddressTransactionsResult], error)func (rpc PhantasmaRPC) GetArchive(ctx context.Context, hash string) (resp.ArchiveResult, error)func (rpc PhantasmaRPC) GetAuction(ctx context.Context, chainAddressOrName string, symbol string, tokenID string) (resp.AuctionResult, error)func (rpc PhantasmaRPC) GetAuctions(ctx context.Context, chainAddressOrName string, symbol string, page int, pageSize int) (resp.PaginatedResult[[]resp.AuctionResult], error)func (rpc PhantasmaRPC) GetAuctionsCount(ctx context.Context, chainAddressOrName string, symbol string) (int, error)func (rpc PhantasmaRPC) GetBlockByHash(ctx context.Context, blockHash string) (resp.BlockResult, error)func (rpc PhantasmaRPC) GetBlockByHeight(ctx context.Context, chain string, height string) (resp.BlockResult, error)func (rpc PhantasmaRPC) GetBlockHeight(ctx context.Context, chainName string) (*big.Int, error)func (rpc PhantasmaRPC) GetBlockTransactionCountByHash(ctx context.Context, blockHash string) (int, error)func (rpc PhantasmaRPC) GetBlockTransactionCountByHashOnChain(ctx context.Context, chainAddressOrName string, blockHash string) (int, error)func (rpc PhantasmaRPC) GetChain(ctx context.Context, name string, extended bool) (resp.ChainResult, error)func (rpc PhantasmaRPC) GetChains(ctx context.Context, extended bool) ([]resp.ChainResult, error)func (rpc PhantasmaRPC) GetContract(ctx context.Context, name, chainName string) (resp.ContractResult, error)func (rpc PhantasmaRPC) GetContractByAddress(ctx context.Context, chainAddressOrName string, contractAddress string) (resp.ContractResult, error)func (rpc PhantasmaRPC) GetContractByName(ctx context.Context, chainAddressOrName string, contractName string) (resp.ContractResult, error)func (rpc PhantasmaRPC) GetContracts(ctx context.Context, chainAddressOrName string, extended bool) ([]resp.ContractResult, error)func (rpc PhantasmaRPC) GetGasConfig(ctx context.Context) (resp.GasConfigResult, error)func (rpc PhantasmaRPC) GetLatestBlock(ctx context.Context, chainAddressOrName string) (resp.BlockResult, error)func (rpc PhantasmaRPC) GetLeaderboard(ctx context.Context, name string) (resp.LeaderboardResult, error)func (rpc PhantasmaRPC) GetNFT(ctx context.Context, symbol string, tokenID string, extended bool) (resp.TokenDataResult, error)func (rpc PhantasmaRPC) GetNFTs(ctx context.Context, symbol string, tokenIDs []string, extended bool) ([]resp.TokenDataResult, error)func (rpc PhantasmaRPC) GetNFTsText(ctx context.Context, symbol string, tokenIDs string, extended bool) ([]resp.TokenDataResult, error)func (rpc PhantasmaRPC) GetNexus(ctx context.Context, extended bool) (resp.NexusResult, error)func (rpc PhantasmaRPC) GetOrganization(ctx context.Context, name string, includeMemberCount bool) (resp.OrganizationResult, error)func (rpc PhantasmaRPC) GetOrganizationMember(ctx context.Context, name string, address string, checkAddressReservedByte bool, addressType AddressType) (resp.OrganizationMemberResult, error)func (rpc PhantasmaRPC) GetOrganizationMembers(ctx context.Context, name string, pageSize int, cursor string, includeMemberTime bool) (resp.CursorPaginatedResult[[]resp.OrganizationMemberResult], error)func (rpc PhantasmaRPC) GetOrganizations(ctx context.Context, pageSize int, cursor string, includeMemberCount bool) (resp.CursorPaginatedResult[[]resp.OrganizationResult], error)func (rpc PhantasmaRPC) GetPhantasmaVMConfig(ctx context.Context, chainAddressOrName string) (resp.PhantasmaVMConfigResult, error)func (rpc PhantasmaRPC) GetPlatforms(ctx context.Context) ([]resp.PlatformResult, error)func (rpc PhantasmaRPC) GetToken(ctx context.Context, symbol string, extended bool) (resp.TokenResult, error)func (rpc PhantasmaRPC) GetTokenBalance(ctx context.Context, address string, tokenSymbol string, chainAddressOrName string) (resp.BalanceResult, error)func (rpc PhantasmaRPC) GetTokenBalanceChecked(ctx context.Context, address string, tokenSymbol string, chainAddressOrName string, checkAddressReservedByte bool) (resp.BalanceResult, error)func (rpc PhantasmaRPC) GetTokenBalanceWithAddressType(ctx context.Context, address string, tokenSymbol string, chainAddressOrName string, checkAddressReservedByte bool, addressType AddressType) (resp.BalanceResult, error)func (rpc PhantasmaRPC) GetTokenData(ctx context.Context, symbol string, tokenID string) (resp.TokenDataResult, error)func (rpc PhantasmaRPC) GetTokenNFTs(ctx context.Context, carbonTokenID uint64, carbonSeriesID uint32, pageSize int, cursor string, extended bool) (resp.CursorPaginatedResult[[]resp.TokenDataResult], error)func (rpc PhantasmaRPC) GetTokenNFTsWithSeriesID(ctx context.Context, carbonTokenID uint64, carbonSeriesID uint32, seriesID string, pageSize int, cursor string, extended bool) (resp.CursorPaginatedResult[[]resp.TokenDataResult], error)func (rpc PhantasmaRPC) GetTokenSeries(ctx context.Context, symbol string, carbonTokenID uint64, pageSize int, cursor string) (resp.CursorPaginatedResult[[]resp.TokenSeriesResult], error)func (rpc PhantasmaRPC) GetTokenSeriesByID(ctx context.Context, symbol string, carbonTokenID uint64, seriesID string, carbonSeriesID uint32) (resp.TokenSeriesResult, error)func (rpc PhantasmaRPC) GetTokenWithID(ctx context.Context, symbol string, extended bool, carbonTokenID uint64) (resp.TokenResult, error)func (rpc PhantasmaRPC) GetTokens(ctx context.Context, extended bool) ([]resp.TokenResult, error)func (rpc PhantasmaRPC) GetTokensAsMap(ctx context.Context, extended bool) (map[string]resp.TokenResult, error)func (rpc PhantasmaRPC) GetTokensByOwner(ctx context.Context, extended bool, ownerAddress string) ([]resp.TokenResult, error)func (rpc PhantasmaRPC) GetTokensByOwnerWithAddressType(ctx context.Context, extended bool, ownerAddress string, addressType AddressType) ([]resp.TokenResult, error)func (rpc PhantasmaRPC) GetTransaction(ctx context.Context, txHash string) (resp.TransactionResult, error)func (rpc PhantasmaRPC) GetTransactionByBlockHashAndIndex(ctx context.Context, blockHash string, index int) (resp.TransactionResult, error)func (rpc PhantasmaRPC) GetTransactionByBlockHashAndIndexOnChain(ctx context.Context, chainAddressOrName string, blockHash string, index int) (resp.TransactionResult, error)func (rpc PhantasmaRPC) GetVersion(ctx context.Context) (resp.BuildInfoResult, error)func (rpc PhantasmaRPC) InfusedAssets(ctx context.Context, tokenID, instanceID uint64) ([]carbon.InfusedAsset, error)func (rpc PhantasmaRPC) InvokeRawScript(ctx context.Context, chain, script string) (resp.ScriptResult, error)func (rpc PhantasmaRPC) LookupName(ctx context.Context, name string) (string, error)func (rpc PhantasmaRPC) ReadArchive(ctx context.Context, hash string, blockIndex int) (string, error)func (rpc PhantasmaRPC) SendCarbonTransaction(ctx context.Context, txData string) (string, error)func (rpc PhantasmaRPC) SendRawTransaction(ctx context.Context, txData string) (string, error)func (rpc PhantasmaRPC) SendTransaction(ctx context.Context, msg carbon.TxMsg, signers []carbon.TxSigner, options SendTransactionOptions) (string, error)func (rpc PhantasmaRPC) SignAndSendBuiltTransaction(ctx context.Context, tx chain.Transaction, keys cryptography.KeyPair) (string, error)func (rpc PhantasmaRPC) SignAndSendTransaction(ctx context.Context, keys cryptography.KeyPair, nexus string, script []byte, chainName string, payload []byte) (string, error)func (rpc PhantasmaRPC) SignAndSendTransactionTextPayload(ctx context.Context, keys cryptography.KeyPair, nexus string, script []byte, chainName string, payload string) (string, error)func (rpc PhantasmaRPC) SignAndSendTransactionWithExpiration(ctx context.Context, keys cryptography.KeyPair, nexus string, script []byte, chainName string, payload []byte, expiration uint32) (string, error)func (rpc PhantasmaRPC) WriteArchive(ctx context.Context, hash string, blockIndex int, blockContent []byte) (bool, error)func (rpc PhantasmaRPC) WriteArchiveBase64(ctx context.Context, hash string, blockIndex int, blockContent string) (bool, error)func (v PreflightVerdict) String() stringfunc NewFeePlanner(source GasConfigSource, options FeePlannerOptions) *FeePlannerfunc NewRPC(endpoint string) PhantasmaRPCfunc NewRPCMainnet() PhantasmaRPCfunc NewRPCSetMainnet() []PhantasmaRPCfunc NewRPCTestnet() PhantasmaRPCfunc NewRPCWithApiKey(endpoint, apiKey string) PhantasmaRPCfunc PreflightTransaction(ctx context.Context, source PreflightSource, msg carbon.TxMsg) (PreflightResult, error)github.com/phantasma-io/phantasma-sdk-go/pkg/rpc/response
Source: pkg/rpc/response
Declarations
const VMValueFieldsconst VMValueItemsconst VMValueText VMValueKind = iotatype ABIEventResult struct {type ABIMethodResult struct {type ABIParameterResult struct {type AccountInfoResult struct {type AccountResult struct {type AddressArguments struct {type AddressTransactionsResult struct {type ArchiveResult struct {type AuctionResult struct {type BalanceArguments struct {type BalanceResult struct {type BlockResult struct {type BuildInfoResult struct {type BurnFungibleArguments struct {type BurnNonFungibleArguments struct {type ChainConfigArguments struct {type ChainResult struct {type ChannelResult struct {type ConsensusNode struct {type ContractResult struct {type ContractStorageRow struct {type ContractStorageTable struct {type CreateMintedTokenSeriesArguments struct {type CreateTokenArguments struct {type CrowdsaleResult struct {type DappResult struct {type DeployContractArguments struct {type ErrorResult struct {type EstimateTransactionResult struct {type EventData interface {type EventExResult struct {type EventResult struct {type ExecuteScriptArguments struct {type GasConfigArguments struct {type GasConfigDataResult struct {type GasConfigResult struct {type GovernanceResult struct {type ImportContractsArguments struct {type ImportedContract struct {type InteropResult struct {type LeaderboardResult struct {type LeaderboardRowResult struct {type MarketOrderData struct {type MetadataArguments struct {type MintFungibleArguments struct {type MintNonFungibleArguments struct {type MintPhantasmaNonFungibleArguments struct {type NFTMint struct {type NameArguments struct {type NestedResolutionArguments struct {type NexusResult struct {type NodeConfigArguments struct {type NonFungibleInfoArguments struct {type NonFungibleInfoByRomIDArguments struct {type OracleResult struct {type OrganizationMemberResult struct {type OrganizationResult struct {type PeerResult struct {type PhantasmaNFTMint struct {type PhantasmaVMConfigArguments struct {type PhantasmaVMConfigResult struct {type PlatformResult struct {type RawArguments struct {type ReceiptResult struct {type RegisterNameArguments struct {type RegisterTokenContractArguments struct {type RepairSeriesArguments struct {type RepairTokenArguments struct {type ScriptResult struct {type SendRawTxResult struct {type SeriesInfoByMetaIDArguments struct {type SeriesMintCountRepair struct {type SeriesSupplement struct {type SignatureResult struct {type SingleResult struct {type SpecialResolutionArguments interface {type SpecialResolutionCall struct {type SpecialResolutionData struct {type StakeResult struct {type StorageResult struct {type SwapResult struct {type SymbolArguments struct {type TokenCreateData struct {type TokenDataResult struct {type TokenExternalResult struct {type TokenPriceResult struct {type TokenPropertyResult struct {type TokenReferenceArguments struct {type TokenRepair struct {type TokenResult struct {type TokenSchemasResult struct {type TokenSeriesArguments struct {type TokenSeriesCreateData struct {type TokenSeriesReferenceArguments struct {type TokenSeriesResult struct {type TokensConfigArguments struct {type TransactionResult struct {type TransferFungibleArguments struct {type TransferNonFungibleArguments struct {type UnknownEventData struct {type UnrecognizedArguments struct {type UpdateSeriesMetadataArguments struct {type UpdateTokenMetadataArguments struct {type VMNamedVariableSchemaResult struct {type VMStructSchemaResult struct {type VMValue struct {type VMValueKind uint8type VMVariableSchemaResult struct {type ValidatorResult struct {Fields
Abi stringjson:“abi”``Abi stringjson:“abi”``Abi stringjson:“abi”``Abi stringjson:“abi”``AbortReason stringjson:“abortReason,omitempty”``Active booljson:“active”``Address *stringjson:“address,omitempty”``Address stringjson:“address”``Address *stringjson:“address,omitempty”``Address stringjson:“address”``Address stringjson:“address”``Address stringjson:“address”``Address stringjson:“address”``Address stringjson:“address”``Address stringjson:“address”``Address stringjson:“address”``AllowedTxTypes stringjson:“allowedTxTypes”``Amount stringjson:“amount”``Amount stringjson:“amount”``Amount stringjson:“amount”``Archives []ArchiveResultjson:“archives”``Arguments SpecialResolutionArgumentsjson:“arguments,omitempty”``Available uintjson:“available”``Avatar stringjson:“avatar”``Balance stringjson:“balance”``Balances []BalanceResultjson:“balances”``BaseSymbol stringjson:“baseSymbol”``BaseSymbol stringjson:“baseSymbol”``BlockCount intjson:“blockCount”``BlockHash stringjson:“blockHash”``BlockHeight intjson:“blockHeight”``BlockRateTarget stringjson:“blockRateTarget”``BlockRateTarget uint32json:“blockRateTarget”``BuildTimeUTC stringjson:“buildTimeUtc”``BurnedSupply *stringjson:“burnedSupply,omitempty”``BurnedSupply stringjson:“burnedSupply”``Buyer stringjson:“buyer”``Calls []SpecialResolutionCalljson:“calls”``Calls []SpecialResolutionCalljson:“calls,omitempty”``CarbonAddress *stringjson:“carbonAddress,omitempty”``CarbonBaseTokenID uint64json:“carbonBaseTokenId”``CarbonID stringjson:“carbonId”``CarbonInstanceID uint64json:“carbonInstanceId”``CarbonNFTAddress stringjson:“carbonNftAddress”``CarbonOwner *stringjson:“carbonOwner,omitempty”``CarbonQuoteTokenID uint64json:“carbonQuoteTokenId”``CarbonSeriesID stringjson:“carbonSeriesId”``CarbonSeriesID stringjson:“carbonSeriesId”``CarbonSeriesID uint32json:“carbonSeriesId”``CarbonTokenID stringjson:“carbonTokenId”``CarbonTokenID stringjson:“carbonTokenId”``CarbonTokenID uint64json:“carbonTokenId”``CarbonTokenID uint64json:“carbonTokenId”``CarbonTxData stringjson:“carbonTxData”``CarbonTxType uint32json:“carbonTxType”``Chain stringjson:“chain”``Chain stringjson:“chain”``Chain stringjson:“chain”``Chain stringjson:“chain”``ChainAddress stringjson:“chainAddress”``ChainAddress stringjson:“chainAddress”``ChainAddress stringjson:“chainAddress”``ChainName stringjson:“chainName”``Chains []ChainResultjson:“chains,omitempty”``Channel stringjson:“channel”``Close stringjson:“Close”``Commit stringjson:“commit”``Content stringjson:“content”``Contract stringjson:“contract”``ContractName stringjson:“contractName”``Contracts []ImportedContractjson:“contracts”``Contracts []stringjson:“contracts,omitempty”``ContractsCount stringjson:“contractsCount”``CreationTime uintjson:“creationTime”``Creator stringjson:“creator”``CreatorAddress stringjson:“creatorAddress”``CreatorAddress stringjson:“creatorAddress”``CreatorAddress stringjson:“creatorAddress”``CurrentSupply stringjson:“currentSupply”``CurrentSupply stringjson:“currentSupply”``CurrentWinner stringjson:“currentWinner”``Dapps []stringjson:“dapps,omitempty”``Data stringjson:“data”``Data EventDatajson:“data,omitempty”``Data stringjson:“data”``DataEscrowAtoms *stringjson:“dataEscrowAtoms,omitempty”``DataEscrowPerRow *stringjson:“dataEscrowPerRow,omitempty”``DataEscrowPerRow stringjson:“dataEscrowPerRow”``DataRefundAtoms *stringjson:“dataRefundAtoms,omitempty”``DataRows *stringjson:“dataRows,omitempty”``DataTokenID *stringjson:“dataTokenId,omitempty”``DataTokenID stringjson:“dataTokenId”``DebugComment *stringjson:“debugComment,omitempty”``Decimals intjson:“decimals”``Decimals uint32json:“decimals”``Decimals stringjson:“decimals”``Decimals uintjson:“decimals”``Description *stringjson:“description,omitempty”``Description stringjson:“description”``DestinationAddress stringjson:“destinationAddress”``DestinationChain stringjson:“destinationChain”``DestinationHash stringjson:“destinationHash”``DestinationPlatform stringjson:“destinationPlatform”``Encryption *stringjson:“encryption,omitempty”``EndDate uintjson:“endDate”``EndDate uintjson:“endDate”``EndDate int64json:“endDate”``EndPrice stringjson:“endPrice”``EndPrice stringjson:“endPrice”``Error *stringjson:“error,omitempty”``Error stringjson:“error”``Events []EventResultjson:“events,omitempty”``Events []EventResultjson:“events”``Events []ABIEventResultjson:“events,omitempty”``Events []EventResultjson:“events”``Expiration uintjson:“expiration”``ExpiryWindow stringjson:“expiryWindow”``ExpiryWindow uint32json:“expiryWindow”``ExtendedEvents []EventExResultjson:“extendedEvents”``ExtensionPeriod stringjson:“extensionPeriod”``External []TokenExternalResultjson:“external,omitempty”``External stringjson:“external”``FeatureLevel intjson:“featureLevel”``FeatureLevel stringjson:“featureLevel”``Fee stringjson:“fee”``Fee stringjson:“fee”``Fee stringjson:“fee”``FeeMultiplier *stringjson:“feeMultiplier,omitempty”``FeeMultiplier stringjson:“feeMultiplier”``FeeShift bytejson:“feeShift”``FeeShift stringjson:“feeShift”``Fields []VMNamedVariableSchemaResultjson:“fields”``Fields map[string]VMValueFlags stringjson:“flags”``Flags stringjson:“flags”``Flags stringjson:“flags”``Flags stringjson:“flags”``Flags uintjson:“flags”``Flags stringjson:“flags”``FlagsNames []stringjson:“flagsNames”``From stringjson:“from”``From stringjson:“from”``From stringjson:“from”``Fuel stringjson:“fuel”``FuelPerContractDeploy stringjson:“fuelPerContractDeploy”``Gas *stringjson:“gas,omitempty”``GasAccount stringjson:“gasAccount”``GasBillKcalBase *stringjson:“gasBillKcalBase,omitempty”``GasBurnRatioMul *stringjson:“gasBurnRatioMul,omitempty”``GasBurnRatioMul stringjson:“gasBurnRatioMul”``GasBurnRatioShift bytejson:“gasBurnRatioShift”``GasBurnRatioShift stringjson:“gasBurnRatioShift”``GasConfig *GasConfigDataResultjson:“gasConfig,omitempty”``GasConstructor stringjson:“gasConstructor”``GasDappRatioMul *stringjson:“gasDappRatioMul,omitempty”``GasDappRatioShift *bytejson:“gasDappRatioShift,omitempty”``GasDappRatioShift *stringjson:“gasDappRatioShift,omitempty”``GasFeeCreateTokenBase *stringjson:“gasFeeCreateTokenBase,omitempty”``GasFeeCreateTokenBase stringjson:“gasFeeCreateTokenBase”``GasFeeCreateTokenSeries *stringjson:“gasFeeCreateTokenSeries,omitempty”``GasFeeCreateTokenSeries stringjson:“gasFeeCreateTokenSeries”``GasFeeCreateTokenSymbol *stringjson:“gasFeeCreateTokenSymbol,omitempty”``GasFeeCreateTokenSymbol stringjson:“gasFeeCreateTokenSymbol”``GasFeePerByte *stringjson:“gasFeePerByte,omitempty”``GasFeePerByte stringjson:“gasFeePerByte”``GasFeeQuery *stringjson:“gasFeeQuery,omitempty”``GasFeeQuery stringjson:“gasFeeQuery”``GasFeeRegisterName *stringjson:“gasFeeRegisterName,omitempty”``GasFeeRegisterName stringjson:“gasFeeRegisterName”``GasFeeTransfer *stringjson:“gasFeeTransfer,omitempty”``GasFeeTransfer stringjson:“gasFeeTransfer”``GasFrom stringjson:“gasFrom”``GasLeaderboard stringjson:“gasLeaderboard”``GasLimit stringjson:“gasLimit”``GasModelVersion uint32json:“gasModelVersion”``GasNexus stringjson:“gasNexus”``GasOracle stringjson:“gasOracle”``GasOrganization stringjson:“gasOrganization”``GasPayer stringjson:“gasPayer”``GasPrice stringjson:“gasPrice”``GasProducerRatioMul *stringjson:“gasProducerRatioMul,omitempty”``GasProducerRatioShift *bytejson:“gasProducerRatioShift,omitempty”``GasProducerRatioShift *stringjson:“gasProducerRatioShift,omitempty”``GasStandard stringjson:“gasStandard”``GasTarget stringjson:“gasTarget”``GasTokenID *stringjson:“gasTokenId,omitempty”``GasTokenID stringjson:“gasTokenId”``GetSchemas stringjson:“getSchemas”``GlobalHardCap stringjson:“globalHardCap”``GlobalSoftCap stringjson:“globalSoftCap”``Governance []GovernanceResultjson:“governance,omitempty”``Hash stringjson:“hash”``Hash stringjson:“hash”``Hash *stringjson:“hash,omitempty”``Hash stringjson:“hash”``Hash stringjson:“hash”``Hash stringjson:“hash”``Height uintjson:“height”``Height uintjson:“height”``High stringjson:“High”``ID stringjson:“id”``ID stringjson:“id”``Ids []stringjson:“ids,omitempty”``ImportedLiveCount stringjson:“importedLiveCount”``Index intjson:“index”``Index stringjson:“index”``Infusion []TokenPropertyResultjson:“infusion”``InstanceID stringjson:“instanceId”``InstanceIDs []stringjson:“instanceIds”``Interop []InteropResultjson:“interop”``IsMember booljson:“isMember”``IsNonFungible booljson:“isNonFungible”``IsStored booljson:“isStored”``Items []VMValueJSON json.RawMessageKey stringjson:“key”``Key stringjson:“key”``Kind stringjson:“kind”``Kind VMValueKindKind stringjson:“kind”``LegacyDataEscrowPerRow *stringjson:“legacyDataEscrowPerRow,omitempty”``ListingFee stringjson:“listingFee”``Local stringjson:“local”``Low stringjson:“Low”``MaxGas stringjson:“maxGas”``MaxMint stringjson:“maxMint”``MaxMint uint32json:“maxMint”``MaxMint stringjson:“maxMint”``MaxNameLength bytejson:“maxNameLength”``MaxNameLength stringjson:“maxNameLength”``MaxStructureSize stringjson:“maxStructureSize”``MaxStructureSize uint32json:“maxStructureSize”``MaxSupply stringjson:“maxSupply”``MaxSupply stringjson:“maxSupply”``MaxSupply uint32json:“maxSupply”``MaxSupply stringjson:“maxSupply”``MaxSupply stringjson:“maxSupply”``MaxSupply stringjson:“maxSupply”``MaxTokenSymbolLength bytejson:“maxTokenSymbolLength”``MaxTokenSymbolLength stringjson:“maxTokenSymbolLength”``MemberCount *stringjson:“memberCount,omitempty”``MemberTime *uint64json:“memberTime,omitempty”``Metadata []TokenPropertyResultjson:“metadata”``Metadata []TokenPropertyResultjson:“metadata,omitempty”``Metadata []TokenPropertyResultjson:“metadata,omitempty”``Metadata map[string]VMValuejson:“metadata”``Metadata map[string]VMValuejson:“metadata,omitempty”``Metadata map[string]stringjson:“metadata”``Metadata stringjson:“metadata”``MetadataRaw *stringjson:“metadataRaw,omitempty”``Method stringjson:“method”``MethodID uint32json:“methodId”``Methods []ABIMethodResultjson:“methods,omitempty”``Methods []ABIMethodResultjson:“methods,omitempty”``MinimumGasBill *stringjson:“minimumGasBill,omitempty”``MinimumGasOffer *stringjson:“minimumGasOffer,omitempty”``MinimumGasOffer stringjson:“minimumGasOffer”``Mint stringjson:“mint”``MintCount stringjson:“mintCount”``MintCount stringjson:“mintCount”``MissingBlocks []intjson:“missingBlocks,omitempty”``Mode stringjson:“mode”``Mode *stringjson:“mode,omitempty”``Module stringjson:“module”``ModuleID uint32json:“moduleId”``Name stringjson:“name”``Name *stringjson:“name,omitempty”``Name *stringjson:“name,omitempty”``Name stringjson:“name”``Name stringjson:“name”``Name *stringjson:“name,omitempty”``Name *stringjson:“name,omitempty”``Name stringjson:“name”``Name stringjson:“name”``Name stringjson:“name”``Name stringjson:“name”``Name stringjson:“name”``Name stringjson:“name”``Name stringjson:“name”``Name stringjson:“name”``Name stringjson:“name”``Name *stringjson:“name,omitempty”``Name stringjson:“name”``Name stringjson:“name”``Nexus stringjson:“nexus”``Nodes []ConsensusNodejson:“nodes”``Open stringjson:“Open”``Oracles []OracleResultjson:“oracles,omitempty”``Oracles []OracleResultjson:“oracles”``Organization *stringjson:“organization,omitempty”``Organizations []stringjson:“organizations,omitempty”``Owner stringjson:“owner”``Owner stringjson:“owner”``Owner *stringjson:“owner,omitempty”``Owner stringjson:“owner”``Owner *stringjson:“owner,omitempty”``Owner stringjson:“owner”``Owner stringjson:“owner”``Owner stringjson:“owner”``OwnerAddress stringjson:“ownerAddress”``OwnerAddress stringjson:“ownerAddress”``Owners []stringjson:“owners,omitempty”``Parameters []ABIParameterResultjson:“parameters”``Parent *stringjson:“parent,omitempty”``Payload stringjson:“payload”``PhantasmaSeriesID stringjson:“phantasmaSeriesId”``Platform stringjson:“platform”``Platform stringjson:“platform”``Platforms []PlatformResultjson:“platforms,omitempty”``PolicyFeeCreateTokenBase *stringjson:“policyFeeCreateTokenBase,omitempty”``PolicyFeeCreateTokenSeries *stringjson:“policyFeeCreateTokenSeries,omitempty”``PolicyFeeCreateTokenSymbol *stringjson:“policyFeeCreateTokenSymbol,omitempty”``PolicyFeeRegisterName *stringjson:“policyFeeRegisterName,omitempty”``Pow uintjson:“pow”``PreviousHash stringjson:“previousHash”``Price stringjson:“price”``Price []TokenPriceResultjson:“price,omitempty”``Price uintjson:“price”``Price stringjson:“price”``ProducerAddress *stringjson:“producerAddress,omitempty”``Properties []TokenPropertyResultjson:“properties”``Protocol uintjson:“protocol”``Protocol uintjson:“protocol”``QuoteSymbol stringjson:“quoteSymbol”``QuoteSymbol stringjson:“quoteSymbol”``RAM stringjson:“ram”``RAM stringjson:“ram”``RAM VMStructSchemaResultjson:“ram”``ROM stringjson:“rom”``ROM stringjson:“rom”``ROM VMStructSchemaResultjson:“rom”``Ram stringjson:“ram”``Ram stringjson:“ram”``Rams []stringjson:“rams”``RawArgs stringjson:“rawArgs”``ReceiveSymbol stringjson:“receiveSymbol”``Receiver stringjson:“receiver”``Recipient stringjson:“recipient”``RecommendedMaxData *stringjson:“recommendedMaxData,omitempty”``RecommendedMaxGas *stringjson:“recommendedMaxGas,omitempty”``Relay *stringjson:“relay,omitempty”``RepairMask stringjson:“repairMask”``Repairs []SeriesMintCountRepairjson:“repairs”``Repairs []TokenRepairjson:“repairs”``RepairsCount stringjson:“repairsCount”``RepairsCount stringjson:“repairsCount”``Reserved1 stringjson:“reserved1”``Reserved2 stringjson:“reserved2”``Reserved3 stringjson:“reserved3”``ResolutionID stringjson:“resolutionId”``ResolutionID uint64json:“resolutionId”``Result stringjson:“result”``Result stringjson:“result,omitempty”``Results []stringjson:“results”``ReturnType stringjson:“returnType”``ReturnType stringjson:“returnType”``Reward stringjson:“reward”``Rom stringjson:“rom”``Rom stringjson:“rom”``RomID stringjson:“romId”``RomID stringjson:“romId”``Roms []stringjson:“roms”``RootVariables []ContractStorageRowjson:“rootVariables”``Rows []ContractStorageRowjson:“rows”``Rows []LeaderboardRowResultjson:“rows,omitempty”``Schema *VMStructSchemaResultjson:“schema,omitempty”``Schema VMVariableSchemaResultjson:“schema”``Script stringjson:“script”``Script *stringjson:“script,omitempty”``Script stringjson:“script”``Script *stringjson:“script,omitempty”``Script stringjson:“script”``Script stringjson:“script”``Script stringjson:“script”``Script stringjson:“script”``Script stringjson:“script”``SellSymbol stringjson:“sellSymbol”``Seller stringjson:“seller”``Sender stringjson:“sender”``Sender stringjson:“sender”``Series stringjson:“series”``Series []TokenSeriesResultjson:“series”``SeriesID stringjson:“seriesId”``SeriesID stringjson:“seriesId”``SeriesID *stringjson:“seriesId,omitempty”``SeriesID stringjson:“seriesId”``SeriesMetadata VMStructSchemaResultjson:“seriesMetadata”``Signatures []SignatureResultjson:“signatures”``Size uintjson:“size”``SourceAddress stringjson:“sourceAddress”``SourceChain stringjson:“sourceChain”``SourceHash stringjson:“sourceHash”``SourcePlatform stringjson:“sourcePlatform”``Stake stringjson:“stake”``Stake StakeResultjson:“stake”``Stakes StakeResultjson:“stakes”``StartDate uintjson:“startDate”``StartDate uintjson:“startDate”``StartDate int64json:“startDate”``State stringjson:“state”``State *stringjson:“state,omitempty”``Status stringjson:“status”``Storage StorageResultjson:“storage”``Supplements []SeriesSupplementjson:“supplements”``SupplementsCount stringjson:“supplementsCount”``Symbol stringjson:“symbol”``Symbol stringjson:“symbol”``Symbol stringjson:“symbol”``Symbol stringjson:“symbol”``Symbol stringjson:“symbol”``Symbol stringjson:“symbol”``Symbol stringjson:“symbol”``Symbol stringjson:“symbol”``Symbol stringjson:“symbol”``Tables []ContractStorageTablejson:“tables”``TargetAddress stringjson:“targetAddress”``Text stringTime uintjson:“time”``Time uintjson:“time”``Timestamp uintjson:“timestamp”``Timestamp uintjson:“timestamp”``Timestamp uintjson:“Timestamp”``Timestamp uintjson:“timestamp”``To stringjson:“to”``To stringjson:“to”``Token stringjson:“token”``Token stringjson:“token”``Token stringjson:“token”``Token *stringjson:“token,omitempty”``TokenFlags stringjson:“tokenFlags”``TokenID stringjson:“tokenId”``TokenID stringjson:“tokenId”``TokenID stringjson:“tokenId”``TokenID stringjson:“tokenId”``TokenID stringjson:“tokenId”``TokenReferenceArgumentsTokenSchemas *TokenSchemasResultjson:“tokenSchemas”``TokenSchemas *stringjson:“tokenSchemas,omitempty”``TokenSeriesArgumentsTokens []TokenResultjson:“tokens,omitempty”``Tokens []stringjson:“tokens”``Tokens []NFTMintjson:“tokens”``Tokens []PhantasmaNFTMintjson:“tokens”``Txs []TransactionResultjson:“txs”``Txs []stringjson:“txs,omitempty”``Txs []TransactionResultjson:“txs”``Type stringjson:“type”``Type stringjson:“type”``Type stringjson:“type”``Type stringjson:“type”``URL stringjson:“url”``Unclaimed stringjson:“unclaimed”``Unclaimed stringjson:“unclaimed”``UnitsPerBlockDataByte *uint32json:“unitsPerBlockDataByte,omitempty”``Used uintjson:“used”``UserHardCap stringjson:“userHardCap”``UserSoftCap stringjson:“userSoftCap”``Validator stringjson:“validator”``ValidatorAddress stringjson:“validatorAddress”``Value stringjson:“value”``Value intjson:“value”``Value stringjson:“value”``Value VMValuejson:“value”``Value interface{}json:“error”``Value stringjson:“value”``Version bytejson:“version”``Version stringjson:“version”``Version stringjson:“version”``Version stringjson:“version”``Version stringjson:“version”``WouldAbort booljson:“wouldAbort”``
Methods
func (a *AccountResult) GetTokenBalance(t TokenResult) *BalanceResultfunc (a AccountResult) Clone() *AccountResultfunc (b BalanceResult) Clone() *BalanceResultfunc (b BalanceResult) ConvertDecimals() stringfunc (b BalanceResult) ConvertDecimalsToFloat() *big.Floatfunc (c *SpecialResolutionCall) UnmarshalJSON(data []byte) errorfunc (e *EstimateTransactionResult) ToFeeQuote() (carbon.FeeQuote, error)func (e *EventExResult) UnmarshalJSON(data []byte) errorfunc (e *EventResult) UnmarshalJSON(data []byte) errorfunc (g *GasConfigResult) ToGasConfig() (carbon.GasConfig, error)func (p *TokenPropertyResult) UnmarshalJSON(data []byte) errorfunc (s *SignatureResult) UnmarshalJSON(data []byte) errorfunc (s *SpecialResolutionData) UnmarshalJSON(data []byte) errorfunc (s ScriptResult) DecodeResultWithError() (*vm.VMObject, error)func (s ScriptResult) DecodeResultsWithError(index int) (*vm.VMObject, error)func (s StakeResult) ConvertDecimals() stringfunc (s StakeResult) ConvertDecimalsToFloat() *big.Floatfunc (t *TokenDataResult) UnmarshalJSON(data []byte) errorfunc (t *TokenResult) UnmarshalJSON(data []byte) errorfunc (t TokenResult) IsBurnable() boolfunc (t TokenResult) IsDivisible() boolfunc (t TokenResult) IsFiat() boolfunc (t TokenResult) IsFinite() boolfunc (t TokenResult) IsFuel() boolfunc (t TokenResult) IsFungible() boolfunc (t TokenResult) IsMintable() boolfunc (t TokenResult) IsStakable() boolfunc (t TokenResult) IsTransferable() boolfunc (t TransactionResult) StateIsFault() boolfunc (t TransactionResult) StateIsSuccess() boolfunc (u UnknownEventData) MarshalJSON() ([]byte, error)func (u UnrecognizedArguments) MarshalJSON() ([]byte, error)func (v *VMValue) UnmarshalJSON(data []byte) errorfunc (v VMValue) AsFields() (fields map[string]VMValue, ok bool)func (v VMValue) AsItems() (items []VMValue, ok bool)func (v VMValue) AsText() (text string, ok bool)func (v VMValue) Field(name string) (field VMValue, ok bool)func (v VMValue) IsText() boolfunc (v VMValue) MarshalJSON() ([]byte, error)func DecodeEventData(kind string, data json.RawMessage) EventDatafunc DecodeSpecialResolutionArguments(module, method string, data json.RawMessage) SpecialResolutionArgumentsfunc VMFields(fields map[string]VMValue) VMValuefunc VMItems(items ...VMValue) VMValuefunc VMText(text string) VMValuegithub.com/phantasma-io/phantasma-sdk-go/pkg/util
Source: pkg/util
Methods
func BigIntBytesFromCsharpOrPhantasmaByteArray(bytes []byte) ([]byte, int)func BigIntFromCsharpOrPhantasmaByteArray(bytes []byte) *big.Intfunc BigIntToCsharpByteArray(n *big.Int) []bytefunc BigIntToPhantasmaByteArray(n *big.Int) []bytefunc ConvertDecimals(number *big.Int, decimals int) stringfunc ConvertDecimalsBack(number string, decimals int) (*big.Int, error)func ConvertDecimalsBackEx(number string, decimals int, separator string) (string, error)func ConvertDecimalsEx(number string, decimals int, separator string) stringfunc ErrorDetect(s string) boolfunc TwosComplementConvertFrom(bytes []byte)func TwosComplementConvertTo(bytes []byte)github.com/phantasma-io/phantasma-sdk-go/pkg/util/hashing
Source: pkg/util/hashing
Methods
func Checksum(data []byte) []bytefunc DoubleSha256(data []byte) []bytefunc Sha256(data []byte) []bytegithub.com/phantasma-io/phantasma-sdk-go/pkg/vm
Source: pkg/vm
Declarations
const ABSconst ADDconst ANDconst Boolconst Bytesconst CALLconst CASTconst CATconst CLEAR // clears a registerconst COPY // copy by valueconst COUNTconst CTXconst DEBUGconst DECconst DIVconst EQUALconst EVM = 255const EXTCALLconst Enumconst GET // lookups a key and copies a reference into registerconst GTconst GTEconst INCconst JMPconst JMPIFconst JMPNOTconst LEFTconst LOADconst LTconst LTEconst MAXconst MINconst MODconst MOVE // copy referenceconst MULconst NEGATEconst NOP Opcode = iotaconst NOTconst None VMType = iotaconst Numberconst ORconst Objectconst PACK // unused for nowconst POPconst POWconst PUSHconst PUTconst RANGEconst REMOVE = 54const RETconst RIGHTconst SHLconst SHRconst SIGNconst SIZEconst SUBconst SUBSTRconst SWAPconst SWITCHconst Stringconst Structconst THROWconst Timestampconst UNPACK // unpacks serialized struct based on ref structconst XORtype Opcode bytetype VMObject struct {type VMObjectPair struct {type VMObjectStruct []VMObjectPairtype VMType bytevar VMTypeLookup = map[VMType]stringFields
Data interface{}Key VMObjectType VMTypeValue VMObject
Methods
func (t VMType) FromString(vmType string) VMTypefunc (v *VMObject) AsBool() boolfunc (v *VMObject) AsBytes() []bytefunc (v *VMObject) AsNumber() *big.Intfunc (v *VMObject) AsString() stringfunc (v *VMObject) CastTo(vmtype VMType) *VMObjectfunc (v *VMObject) Copy(other *VMObject)func (v *VMObject) Deserialize(reader *io.BinReader)func (v *VMObject) GetArrayType() VMTypefunc (v *VMObject) Serialize(writer *io.BinWriter)func (v *VMObject) SetValue(val []byte, vmtype VMType) *VMObjectfunc (v *VMObject) String() stringfunc ValidateStructKey(key *VMObject)github.com/phantasma-io/phantasma-sdk-go/pkg/vm/script_builder
Source: pkg/vm/script_builder
Declarations
type ScriptBuilder struct {Methods
func (s ScriptBuilder) AllowGas(from, to cryptography.Address, gasPrice, gasLimit *big.Int) ScriptBuilderfunc (s ScriptBuilder) AllowGasText(from, to string, gasPrice, gasLimit *big.Int) ScriptBuilderfunc (s ScriptBuilder) CallContract(contractName, method string, args ...interface{}) ScriptBuilderfunc (s ScriptBuilder) CallInterop(method string, args ...interface{}) ScriptBuilderfunc (s ScriptBuilder) CallNFT(symbol string, seriesID *big.Int, method string, args ...interface{}) ScriptBuilderfunc (s ScriptBuilder) CrossTransferNFT(destinationChain cryptography.Address, symbol string, from, to cryptography.Address, tokenID *big.Int) ScriptBuilderfunc (s ScriptBuilder) CrossTransferNFTText(destinationChain string, symbol string, from string, to string, tokenID *big.Int) ScriptBuilderfunc (s ScriptBuilder) CrossTransferNFTToText(destinationChain cryptography.Address, symbol string, from cryptography.Address, to string, tokenID *big.Int) ScriptBuilderfunc (s ScriptBuilder) CrossTransferToken(destinationChain cryptography.Address, symbol string, from, to cryptography.Address, amount *big.Int) ScriptBuilderfunc (s ScriptBuilder) CrossTransferTokenText(destinationChain string, symbol string, from string, to string, amount *big.Int) ScriptBuilderfunc (s ScriptBuilder) CrossTransferTokenToText(destinationChain cryptography.Address, symbol string, from cryptography.Address, to string, amount *big.Int) ScriptBuilderfunc (s ScriptBuilder) CurrentSize() intfunc (s ScriptBuilder) EmitCall(label string, regCnt byte) ScriptBuilderfunc (s ScriptBuilder) EmitConditionalJump(opcode vm.Opcode, srcReg byte, label string) ScriptBuilderfunc (s ScriptBuilder) EmitCopy(srcReg byte, dstReg byte) ScriptBuilderfunc (s ScriptBuilder) EmitExtCall(method string, reg byte) ScriptBuilderfunc (s ScriptBuilder) EmitJump(opcode vm.Opcode, label string, reg byte) ScriptBuilderfunc (s ScriptBuilder) EmitLabel(label string) ScriptBuilderfunc (s ScriptBuilder) EmitLoad(reg byte, bytes []byte, _type vm.VMType) ScriptBuilderfunc (s ScriptBuilder) EmitLoadBool(reg byte, toLoad bool) ScriptBuilderfunc (s ScriptBuilder) EmitLoadInt(reg byte, toLoad int) ScriptBuilderfunc (s ScriptBuilder) EmitLoadNumberAsBinary(reg byte, toLoad *big.Int) ScriptBuilderfunc (s ScriptBuilder) EmitLoadString(reg byte, toLoad string) ScriptBuilderfunc (s ScriptBuilder) EmitLoadTime(reg byte, toLoad time.Time) ScriptBuilderfunc (s ScriptBuilder) EmitM(opcode vm.Opcode, bytes []byte) ScriptBuilderfunc (s ScriptBuilder) EmitMove(srcReg byte, dstReg byte) ScriptBuilderfunc (s ScriptBuilder) EmitPop(reg byte) ScriptBuilderfunc (s ScriptBuilder) EmitPush(reg byte) ScriptBuilderfunc (s ScriptBuilder) EmitRaw(value []byte) ScriptBuilderfunc (s ScriptBuilder) EmitS(opcode vm.Opcode) ScriptBuilderfunc (s ScriptBuilder) EmitThrow(reg byte) ScriptBuilderfunc (s ScriptBuilder) EmitVarBytes(value int) ScriptBuilderfunc (s ScriptBuilder) EndScript() []bytefunc (s ScriptBuilder) EndScriptWithError() ([]byte, error)func (s ScriptBuilder) MintTokens(symbol string, from, to cryptography.Address, amount *big.Int) ScriptBuilderfunc (s ScriptBuilder) MintTokensText(symbol string, from, to string, amount *big.Int) ScriptBuilderfunc (s ScriptBuilder) SpendGas(address cryptography.Address) ScriptBuilderfunc (s ScriptBuilder) SpendGasText(address string) ScriptBuilderfunc (s ScriptBuilder) Stake(address cryptography.Address, amount *big.Int) ScriptBuilderfunc (s ScriptBuilder) StakeText(address string, amount *big.Int) ScriptBuilderfunc (s ScriptBuilder) ToScript() ([]byte, error)func (s ScriptBuilder) TransferBalance(symbol string, from, to cryptography.Address) ScriptBuilderfunc (s ScriptBuilder) TransferBalanceText(symbol string, from, to string) ScriptBuilderfunc (s ScriptBuilder) TransferNFT(symbol string, from, to cryptography.Address, tokenID *big.Int) ScriptBuilderfunc (s ScriptBuilder) TransferNFTText(symbol string, from, to string, tokenID *big.Int) ScriptBuilderfunc (s ScriptBuilder) TransferNFTToText(symbol string, from cryptography.Address, to string, tokenID *big.Int) ScriptBuilderfunc (s ScriptBuilder) TransferTokens(symbol string, from, to cryptography.Address, amount *big.Int) ScriptBuilderfunc (s ScriptBuilder) TransferTokensText(symbol string, from, to string, amount *big.Int) ScriptBuilderfunc (s ScriptBuilder) TransferTokensToText(symbol string, from cryptography.Address, to string, amount *big.Int) ScriptBuilderfunc (s ScriptBuilder) Unstake(address cryptography.Address, amount *big.Int) ScriptBuilderfunc (s ScriptBuilder) UnstakeText(address string, amount *big.Int) ScriptBuilderfunc BeginScript() ScriptBuilderfunc NewScriptBuilder() ScriptBuilder