samuelvanderwaal / metaboss

The Metaplex NFT-standard Swiss Army Knife tool.
Apache License 2.0
688 stars 220 forks source link

RPC response error #206

Closed giface closed 1 year ago

giface commented 1 year ago

$ metaboss sign all --keypair [Key Pair JSON PATH] --creator [CANDY MACHINE ID V2] --v2

Error: RPC response error -32602: Invalid params: unknown variant base58, expected binary.

Caused by: RPC response error -32602: Invalid params: unknown variant base58, expected binary.

samuelvanderwaal commented 1 year ago

$ metaboss sign all --keypair [Key Pair JSON PATH] --creator [CANDY MACHINE ID V2] --v2

Error: RPC response error -32602: Invalid params: unknown variant base58, expected binary.

Caused by: RPC response error -32602: Invalid params: unknown variant base58, expected binary.

What version of Metaboss and what format is you keypair file?

giface commented 1 year ago

I'm running: $ metaboss --version Metaboss 0.10.0

Keypair file is in JSON Array.

Also, the same RPC error occur in snapshots function without using the keypair which I never experience before:

$ metaboss snapshot mints --creator [CANDY MACHINE ID V2] --v2 --output . Error: RPC response error -32602: Invalid params: unknown variant base58, expected binary.

Caused by: RPC response error -32602: Invalid params: unknown variant base58, expected binary.

samuelvanderwaal commented 1 year ago

I'm running: $ metaboss --version Metaboss 0.10.0

Keypair file is in JSON Array.

Also, the same RPC error occur in snapshots function without using the keypair which I never experience before:

$ metaboss snapshot mints --creator [CANDY MACHINE ID V2] --v2 --output . Error: RPC response error -32602: Invalid params: unknown variant base58, expected binary.

Caused by: RPC response error -32602: Invalid params: unknown variant base58, expected binary.

What RPC provider?

giface commented 1 year ago

I tried both : RPC URL: https://api.devnet.solana.com and Quicknode $ solana --version solana-cli 1.9.29 (src:0c54340a; feat:462418899)

But both return the same error. I have also re-created a new wallet but no luck. Anywhere I can look for the log?

Just found out that I can do "metaboss sign one" at a time but cannot "sign all"

I have tried my Quicknode RPC but same error.

samuelvanderwaal commented 1 year ago

I tried both : RPC URL: https://api.devnet.solana.com and Quicknode $ solana --version solana-cli 1.9.29 (src:0c54340a; feat:462418899)

But both return the same error. I have also re-created a new wallet but no luck. Anywhere I can look for the log?

Just found out that I can do "metaboss sign one" at a time but cannot "sign all"

I have tried my Quicknode RPC but same error.

I was able to duplicate this error so I will look into it later today.

samuelvanderwaal commented 1 year ago

Upgrade to Metaboss v0.10.1 and see if it fixes the issue.

giface commented 1 year ago

YES !! That was the problem MemcmpEncodedBytes Base58 variant was deprecated. Change from Base58 to Byte definitely helps now. Thank you again for your help. Please keep up with the great work of Metaboss.

Please Close this issue.

samuelvanderwaal commented 1 year ago

YES !! That was the problem MemcmpEncodedBytes Base58 variant was deprecated. Change from Base58 to Byte definitely helps now. Thank you again for your help. Please keep up with the great work of Metaboss.

Please Close this issue.

What's weird is it's not deprecated in the docs and the variant it tells you to use is deprecated. I've opened an issue with Solana but glad that this is working again.