Versions in this module Expand all Collapse all v0 v0.8.1 Feb 13, 2022 v0.8.0 Feb 13, 2022 Changes in this version + const Burn + const EditionMarker + const EditionV1 + const Fungible + const FungibleAsset + const MasterEditionV1 + const MasterEditionV2 + const MetadataV1 + const Multiple + const NonFungible + const NonFungibleEdition + const ReservationListV1 + const ReservationListV2 + const Single + const Uninitialized + var METADATA_REPLACE = regexp.MustCompile("\u0000") + var PROGRAM_ID = solana.MustPublicKeyFromBase58("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s") + func Clean(str string) string + func DeriveMetadataPublicKey(programID, mint solana.PublicKey) (solana.PublicKey, error) + type AccountListable interface + ListAccounts func() []*solana.AccountMeta + type Collection struct + Key solana.PublicKey + Verified bool + type CreateMetadataAccount struct + Accounts *CreateMetadataAccountAccounts + Data Data + Instruction InstType + IsMutable bool + func (i CreateMetadataAccount) ListAccounts() []*solana.AccountMeta + type CreateMetadataAccountAccounts struct + Metadata *solana.AccountMeta + Mint *solana.AccountMeta + MintAuthority *solana.AccountMeta + Payer *solana.AccountMeta + RentProgram *solana.AccountMeta + SystemProgram *solana.AccountMeta + UpdateAuthority *solana.AccountMeta + type Creator struct + Address solana.PublicKey + Share int8 + Verified bool + type Data struct + Creators *[]Creator + Name string + SellerFeeBasisPoints uint16 + Symbol string + URI string + type DataV2 struct + Collection *Collection + Creators *[]Creator + Name string + SellerFeeBasisPoints uint16 + Symbol string + URI string + Uses *Uses + type InstType uint8 + const ApproveCollectionAuthorityInst + const ApproveUseAuthorityInst + const ConvertMasterEditionV1ToV2Inst + const CreateMasterEditionInst + const CreateMasterEditionV3Inst + const CreateMetadataAccountV1Inst + const CreateMetadataAccountV2Inst + const DeprecatedCreateMasterEditionInst + const DeprecatedCreateReservationListInst + const DeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInst + const DeprecatedMintPrintingTokensInst + const DeprecatedMintPrintingTokensViaTokenInst + const DeprecatedSetReservationListInst + const MintNewEditionFromMasterEditionViaTokenInst + const MintNewEditionFromMasterEditionViaVaultProxyInst + const PuffMetadataInst + const RevokeCollectionAuthorityInst + const RevokeUseAuthorityInst + const SignMetadataInst + const UnverifyCollectionInst + const UpdateMetadataAccountV1Inst + const UpdateMetadataAccountV2Inst + const UpdatePrimarySaleHappenedViaTokenInst + const UtilizeInst + const VerifyCollectionInst + type Instruction struct + Impl interface{} + func NewCreateMetadataAccountInstruction(programID solana.PublicKey, data Data, isMutable bool, ...) *Instruction + func NewInstruction(programId solana.PublicKey, impl interface{}) *Instruction + func NewUpdateMetadataAccountV1Instruction(programID solana.PublicKey, data *Data, updateAuthority *solana.PublicKey, ...) *Instruction + func NewUpdateMetadataAccountV2Instruction(programID solana.PublicKey, data *DataV2, updateAuthority *solana.PublicKey, ...) *Instruction + func (i *Instruction) Accounts() (out []*solana.AccountMeta) + func (i *Instruction) Data() ([]byte, error) + func (i *Instruction) ProgramID() solana.PublicKey + type Key borsh.Enum + type Metadata struct + Collection *Collection + Data Data + EditionNonce *uint8 + IsMutable bool + Key Key + Mint solana.PublicKey + PrimarySaleHappened bool + TokenStandard *TokenStandard + UpdateAuthority solana.PublicKey + Uses *Uses + func (m *Metadata) Decode(in []byte) error + type TokenStandard borsh.Enum + type UpdateMetadataAccountV1Accounts struct + Metadata *solana.AccountMeta + UpdateAuthorityKey *solana.AccountMeta + type UpdateMetadataAccountV2Accounts struct + Metadata *solana.AccountMeta + UpdateAuthorityKey *solana.AccountMeta + type UpdateMetadataV1Account struct + Accounts *UpdateMetadataAccountV1Accounts + Data *Data + Instruction InstType + PrimarySaleHappened *bool + UpdateAuthority *solana.PublicKey + func (i UpdateMetadataV1Account) ListAccounts() []*solana.AccountMeta + type UpdateMetadataV2Account struct + Accounts *UpdateMetadataAccountV2Accounts + Data *DataV2 + Instruction InstType + IsMutable *bool + PrimarySaleHappened *bool + UpdateAuthority *solana.PublicKey + func (i UpdateMetadataV2Account) ListAccounts() []*solana.AccountMeta + type UseMethod borsh.Enum + type Uses struct + Remaining uint64 + Total uint64 + UseMethod UseMethod