metaplex-foundation / get-collection

Rust and TypeScript example code for finding all members from a collection id.
27 stars 15 forks source link

maxSupportedTransactionVersion not supported #6

Open metasal1 opened 10 months ago

metasal1 commented 10 months ago

Do you think this is really a RPC issue OR should the script be updated?

Getting signatures... Found 1293 signatures Getting transaction data... /Users/metasal/Projects on HDD/TEMP/get-collection/get-collection-ts/node_modules/@solana/web3.js/src/connection.ts:4833 throw new SolanaJSONRPCError(res.error, 'failed to get transaction'); ^ SolanaJSONRPCError: failed to get transaction: Transaction version (0) is not supported by the requesting client. Please try the request again with the following configuration parameter: "maxSupportedTransactionVersion": 0 at Connection.getTransaction (/Users/metasal/Projects on HDD/TEMP/get-collection/get-collection-ts/node_modules/@solana/web3.js/src/connection.ts:4833:13) at processTicksAndRejections (node:internal/process/task_queues:95:5) at async Promise.all (index 0) at async main (/Users/metasal/Projects on HDD/TEMP/get-collection/get-collection-ts/index.ts:43:24) { code: -32015, data: undefined

samuelvanderwaal commented 10 months ago

The script is old and needs to be updated but a much better approach would be to use a RPC provider that supports the DAS API and then use the getAssetsByGroup call where the group id is the collection mint.

Some providers:

https://developers.metaplex.com/bubblegum/rpcs

metasal1 commented 10 months ago

Thanks

My second google search discovered that to.

Should I PR using getAssetsByGroup?

On Sun, 17 Dec 2023 at 6:28 am, Samuel Vanderwaal @.***> wrote:

The script is old and needs to be updated but a much better approach would be to use a RPC provider that supports the DAS API https://docs.helius.dev/compression-and-das-api/digital-asset-standard-das-api and then use the getAssetsByGroup call where the group id is the collection mint.

Some providers:

https://developers.metaplex.com/bubblegum/rpcs

— Reply to this email directly, view it on GitHub https://github.com/metaplex-foundation/get-collection/issues/6#issuecomment-1858912803, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANDP6C7I65C6EJUVZHA7GBTYJXY45AVCNFSM6AAAAABAXQAOH2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJYHEYTEOBQGM . You are receiving this because you authored the thread.Message ID: @.***>

samuelvanderwaal commented 10 months ago

Thanks My second google search discovered that to. Should I PR using getAssetsByGroup? On Sun, 17 Dec 2023 at 6:28 am, Samuel Vanderwaal @.> wrote: The script is old and needs to be updated but a much better approach would be to use a RPC provider that supports the DAS API https://docs.helius.dev/compression-and-das-api/digital-asset-standard-das-api and then use the getAssetsByGroup call where the group id is the collection mint. Some providers: https://developers.metaplex.com/bubblegum/rpcs — Reply to this email directly, view it on GitHub <#6 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANDP6C7I65C6EJUVZHA7GBTYJXY45AVCNFSM6AAAAABAXQAOH2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJYHEYTEOBQGM . You are receiving this because you authored the thread.Message ID: @.>

That would be great!