Functions
getAllListings
- getAllListings(connection: Connection): Promise<AccountData<DecodeStruct<{ fields: [{ name: "bump"; type: "u8" }, { name: "lister"; type: "publicKey" }, { name: "tokenManager"; type: "publicKey" }, { name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" }, RecursiveDepth4<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], EmptyDefined>>>>>>[]>
Parameters
Returns Promise<AccountData<DecodeStruct<{ fields: [{ name: "bump"; type: "u8" }, { name: "lister"; type: "publicKey" }, { name: "tokenManager"; type: "publicKey" }, { name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" }, RecursiveDepth4<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], EmptyDefined>>>>>>[]>
getAllMarketplaces
- getAllMarketplaces(connection: Connection): Promise<AccountData<DecodeStruct<{ fields: [{ name: "bump"; type: "u8" }, { name: "name"; type: "string" }, { name: "paymentManager"; type: "publicKey" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" }, RecursiveDepth4<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], EmptyDefined>>>>>>[]>
Parameters
Returns Promise<AccountData<DecodeStruct<{ fields: [{ name: "bump"; type: "u8" }, { name: "name"; type: "string" }, { name: "paymentManager"; type: "publicKey" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" }, RecursiveDepth4<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], EmptyDefined>>>>>>[]>
getAllOfType
- getAllOfType<T>(connection: Connection, key: string): Promise<AccountData<T>[]>
Type Parameters
Parameters
connection: Connection
key: string
Returns Promise<AccountData<T>[]>
getAllTransferAuthorities
- getAllTransferAuthorities(connection: Connection): Promise<AccountData<DecodeStruct<{ fields: [{ name: "bump"; type: "u8" }, { name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "allowedMarketplaces"; type: { option: { vec: "publicKey" } } }]; kind: "struct" }, RecursiveDepth4<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], EmptyDefined>>>>>>[]>
Parameters
Returns Promise<AccountData<DecodeStruct<{ fields: [{ name: "bump"; type: "u8" }, { name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "allowedMarketplaces"; type: { option: { vec: "publicKey" } } }]; kind: "struct" }, RecursiveDepth4<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], EmptyDefined>>>>>>[]>
getListing
- getListing(connection: Connection, mintId: PublicKey): Promise<AccountData<DecodeStruct<{ fields: [{ name: "bump"; type: "u8" }, { name: "lister"; type: "publicKey" }, { name: "tokenManager"; type: "publicKey" }, { name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" }, RecursiveDepth4<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], EmptyDefined>>>>>>>
Parameters
connection: Connection
mintId: PublicKey
Returns Promise<AccountData<DecodeStruct<{ fields: [{ name: "bump"; type: "u8" }, { name: "lister"; type: "publicKey" }, { name: "tokenManager"; type: "publicKey" }, { name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" }, RecursiveDepth4<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], EmptyDefined>>>>>>>
getListingsForIssuer
- getListingsForIssuer(connection: Connection, issuerId: PublicKey): Promise<AccountData<DecodeStruct<{ fields: [{ name: "bump"; type: "u8" }, { name: "lister"; type: "publicKey" }, { name: "tokenManager"; type: "publicKey" }, { name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" }, RecursiveDepth4<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], EmptyDefined>>>>>>[]>
Parameters
connection: Connection
issuerId: PublicKey
Returns Promise<AccountData<DecodeStruct<{ fields: [{ name: "bump"; type: "u8" }, { name: "lister"; type: "publicKey" }, { name: "tokenManager"; type: "publicKey" }, { name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" }, RecursiveDepth4<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], EmptyDefined>>>>>>[]>
getListingsForMarketplace
- getListingsForMarketplace(connection: Connection, marketplaceId: PublicKey): Promise<AccountData<DecodeStruct<{ fields: [{ name: "bump"; type: "u8" }, { name: "lister"; type: "publicKey" }, { name: "tokenManager"; type: "publicKey" }, { name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" }, RecursiveDepth4<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], EmptyDefined>>>>>>[]>
Parameters
connection: Connection
marketplaceId: PublicKey
Returns Promise<AccountData<DecodeStruct<{ fields: [{ name: "bump"; type: "u8" }, { name: "lister"; type: "publicKey" }, { name: "tokenManager"; type: "publicKey" }, { name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" }, RecursiveDepth4<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], EmptyDefined>>>>>>[]>
getMarketplace
- getMarketplace(connection: Connection, marketplaceId: PublicKey): Promise<AccountData<DecodeStruct<{ fields: [{ name: "bump"; type: "u8" }, { name: "name"; type: "string" }, { name: "paymentManager"; type: "publicKey" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" }, RecursiveDepth4<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], EmptyDefined>>>>>>>
Parameters
connection: Connection
marketplaceId: PublicKey
Returns Promise<AccountData<DecodeStruct<{ fields: [{ name: "bump"; type: "u8" }, { name: "name"; type: "string" }, { name: "paymentManager"; type: "publicKey" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" }, RecursiveDepth4<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], EmptyDefined>>>>>>>
getMarketplaceByName
- getMarketplaceByName(connection: Connection, name: string): Promise<AccountData<DecodeStruct<{ fields: [{ name: "bump"; type: "u8" }, { name: "name"; type: "string" }, { name: "paymentManager"; type: "publicKey" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" }, RecursiveDepth4<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], EmptyDefined>>>>>>>
Parameters
connection: Connection
name: string
Returns Promise<AccountData<DecodeStruct<{ fields: [{ name: "bump"; type: "u8" }, { name: "name"; type: "string" }, { name: "paymentManager"; type: "publicKey" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" }, RecursiveDepth4<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], EmptyDefined>>>>>>>
getTransfer
- getTransfer(connection: Connection, mintId: PublicKey): Promise<AccountData<DecodeStruct<{ fields: [{ name: "bump"; type: "u8" }, { name: "tokenManager"; type: "publicKey" }, { name: "from"; type: "publicKey" }, { name: "to"; type: "publicKey" }]; kind: "struct" }, RecursiveDepth4<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], EmptyDefined>>>>>>>
Parameters
connection: Connection
mintId: PublicKey
Returns Promise<AccountData<DecodeStruct<{ fields: [{ name: "bump"; type: "u8" }, { name: "tokenManager"; type: "publicKey" }, { name: "from"; type: "publicKey" }, { name: "to"; type: "publicKey" }]; kind: "struct" }, RecursiveDepth4<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], EmptyDefined>>>>>>>
getTransferAuthority
- getTransferAuthority(connection: Connection, transferAuthorityId: PublicKey): Promise<AccountData<DecodeStruct<{ fields: [{ name: "bump"; type: "u8" }, { name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "allowedMarketplaces"; type: { option: { vec: "publicKey" } } }]; kind: "struct" }, RecursiveDepth4<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], EmptyDefined>>>>>>>
Parameters
connection: Connection
transferAuthorityId: PublicKey
Returns Promise<AccountData<DecodeStruct<{ fields: [{ name: "bump"; type: "u8" }, { name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "allowedMarketplaces"; type: { option: { vec: "publicKey" } } }]; kind: "struct" }, RecursiveDepth4<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], EmptyDefined>>>>>>>
getTransferAuthorityByName
- getTransferAuthorityByName(connection: Connection, name: string): Promise<AccountData<DecodeStruct<{ fields: [{ name: "bump"; type: "u8" }, { name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "allowedMarketplaces"; type: { option: { vec: "publicKey" } } }]; kind: "struct" }, RecursiveDepth4<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], EmptyDefined>>>>>>>
Parameters
connection: Connection
name: string
Returns Promise<AccountData<DecodeStruct<{ fields: [{ name: "bump"; type: "u8" }, { name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "allowedMarketplaces"; type: { option: { vec: "publicKey" } } }]; kind: "struct" }, RecursiveDepth4<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], EmptyDefined>>>>>>>
getTransfersFromUser
- getTransfersFromUser(connection: Connection, from: PublicKey): Promise<AccountData<DecodeStruct<{ fields: [{ name: "bump"; type: "u8" }, { name: "tokenManager"; type: "publicKey" }, { name: "from"; type: "publicKey" }, { name: "to"; type: "publicKey" }]; kind: "struct" }, RecursiveDepth4<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], EmptyDefined>>>>>>[]>
Parameters
connection: Connection
from: PublicKey
Returns Promise<AccountData<DecodeStruct<{ fields: [{ name: "bump"; type: "u8" }, { name: "tokenManager"; type: "publicKey" }, { name: "from"; type: "publicKey" }, { name: "to"; type: "publicKey" }]; kind: "struct" }, RecursiveDepth4<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], EmptyDefined>>>>>>[]>
getTransfersToUser
- getTransfersToUser(connection: Connection, to: PublicKey): Promise<AccountData<DecodeStruct<{ fields: [{ name: "bump"; type: "u8" }, { name: "tokenManager"; type: "publicKey" }, { name: "from"; type: "publicKey" }, { name: "to"; type: "publicKey" }]; kind: "struct" }, RecursiveDepth4<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], EmptyDefined>>>>>>[]>
Parameters
connection: Connection
to: PublicKey
Returns Promise<AccountData<DecodeStruct<{ fields: [{ name: "bump"; type: "u8" }, { name: "tokenManager"; type: "publicKey" }, { name: "from"; type: "publicKey" }, { name: "to"; type: "publicKey" }]; kind: "struct" }, RecursiveDepth4<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], DecodedHelper<[{ name: "AcceptListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }]; kind: "struct" } }, { name: "CreateListingIx"; type: { fields: [{ name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "UpdateListingIx"; type: { fields: [{ name: "marketplace"; type: "publicKey" }, { name: "paymentAmount"; type: "u64" }, { name: "paymentMint"; type: "publicKey" }]; kind: "struct" } }, { name: "InitMarketplaceIx"; type: { fields: [{ name: "name"; type: "string" }, { name: "authority"; type: "publicKey" }, { name: "paymentMints"; type: { option: { vec: "publicKey" } } }]; kind: "struct" } }], EmptyDefined>>>>>>[]>