Coder Social home page Coder Social logo

metaboss's Introduction

Crate Downloads Build Status License

Metaboss

metaboss logo

Overview

The Solana Metaplex NFT 'Swiss Army Knife' tool.

Features:

  • Decode the metadata of a token mint account

  • Mint new NFTs from a JSON file or URIs

  • Set primary_sale_happened bool on an NFT's metadata

  • Set update_authority address on an NFT's metadata

  • Verify a creator by signing the metadata accounts for all tokens in a list, for a given candy machine id or a single mint account

  • Get a snapshot of current NFT holders for a given candy machine ID or update authority

... and more! See the docs for full features and usage instructions.

Suggestions and PRs welcome!

Note: This is experimental software for a young ecosystem. Use at your own risk. The author is not responsible for misuse of the software or for the user failing to test specific commands on devnet before using on production NFTs.

Alternate Tools

Some alternate tools that do similar things:

Installation

Install Binary

Copy the following to a terminal:

bash <(curl -sSf https://raw.githubusercontent.com/samuelvanderwaal/metaboss/main/scripts/install.sh)

If you get errors you may need dependencies:

Ubuntu:

sudo apt install libssl-dev libudev-dev pkg-config

MacOS may need openssl:

brew install openssl@3

Binaries

Linux, MacOS and Windows binaries available in releases, thanks to CI work done by Kartik Soneji.

Install From crates.io

cargo install metaboss

Install From Source

Requires Rust 1.58 or later.

Install Rust.

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Clone the source:

git clone [email protected]:samuelvanderwaal/metaboss.git

or

git clone https://github.com/samuelvanderwaal/metaboss.git

Change directory and check out the main branch:

cd metaboss
git checkout main

Install or build with Rust:

cargo install --path ./

or

cargo build --release

Contact

Email: [email protected]

Twitter: @samvwaal

Discord: @archaeopteryx#7615

metaboss's People

Contributors

0xsuperman avatar 21e8 avatar alanchen1910 avatar amorriscode avatar arivictor avatar arrowana avatar febo avatar goriunov avatar jclmnop avatar kartiksoneji avatar kevinrodriguez-io avatar marksackerberg avatar oboxodo avatar omahs avatar omarkilani avatar samuelvanderwaal avatar skrrb avatar statikdev avatar stegabob avatar sunguru98 avatar the-mercenaries-ltd avatar tracy-codes avatar xiaoxianboy avatar zpalmtree avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

metaboss's Issues

Metaboss not defaulting to cluster

image

Metaboss version: 0.3.1

Error Message: [2021-12-10T18:54:31Z ERROR metaboss] Could not find a valid Solana-CLI config file. Please specify a RPC manually with '-r' or set up your Solana-CLI config file.

Command: metaboss snapshot mints -c 5sBU6EEvBJjMKs3qpLSVhRuYcTbWYhsswnnNTYZq9zwk

update metadata uri network error

Hi there,

image

I keep getting this error when trying to update the uri of an nft minted on the devnet - I've already set the config file to have the devnet api, and have checked that the devnet is up and running. Does anyone know what could be causing this issue?

Thank you!

RPC response error -32002 on Instruction 4

I'm trying to test out minting NFTs on devnet.

When I run
metaboss mint one -k my_solana_wallet.json --rpc https://api.devnet.solana.com -d nft.json --receiver HarFxdtVoskW5JEbxwP7QAUZiWvuUnmUWdybYnURvvqa
[2022-01-28T05:51:50Z WARN metaboss] Using a public RPC URL is not recommended for heavy tasks as you will be rate-limited and suffer a performance hit.
Please use a private RPC endpoint for best performance results.
Error: RPC response error -32002: Transaction simulation failed: Error processing Instruction 4: custom program error: 0x26 [41 log messages]

me.json

{
    "name": "TestNFT1",
    "symbol": "TNFT",
    "uri": "https://arweave.net/FPGAv1XnyZidnqquOdEbSY6_ES735ckcDTdaAtI7GFw",
    "seller_fee_basis_points": 100,
    "creators": [
        {
            "address": "HarFxdtVoskW5JEbxwP7QAUZiWvuUnmUWdybYnURvvqa",
            "verified": false,
            "share": 100
        }
    ]
}

Am I missing something obvious?

No unverified metadata for this creator and candy machine

image

image

When i run the metaboss sign all -k -c with or without --v2 in the end, in both scenarios is says that theres no unverified metadata, but as you can see in the solana explorer still shows as unverified, even when i used this command for the first time it was the same response

error: could not compile `libsecp256k1` - ubuntu

I know this isn't fully related to metaboss but hopefully someone here had this issue when trying to install cargo install metaboss ? I've searched everywhere and can't find a solution. This is on ubuntu 21.10 on a VPS with 1GB of ram.

I've tried: sudo apt-get install libsecp256k1-dev and it didnt help

   Compiling tokio-native-tls v0.3.0
   Compiling ed25519-dalek-bip32 v0.1.1
error: could not compile `libsecp256k1`

Caused by:
  process didn't exit successfully: `rustc --crate-name libsecp256k1 --edition=2018 /root/.cargo/registry/src/github.com-1ecc6299db9ec823/libsecp256k1-0.6.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="hmac"' --cfg 'feature="hmac-drbg"' --cfg 'feature="sha2"' --cfg 'feature="static-context"' --cfg 'feature="std"' --cfg 'feature="typenum"' -C metadata=0d80d34fc55a2b62 -C extra-filename=-0d80d34fc55a2b62 --out-dir /tmp/cargo-installm2qWH7/release/deps -L dependency=/tmp/cargo-installm2qWH7/release/deps --extern arrayref=/tmp/cargo-installm2qWH7/release/deps/libarrayref-ee1f5e5cb538f6d3.rmeta --extern base64=/tmp/cargo-installm2qWH7/release/deps/libbase64-61ff7f70cf1b36b4.rmeta --extern digest=/tmp/cargo-installm2qWH7/release/deps/libdigest-fe64ccfa241c5d37.rmeta --extern hmac_drbg=/tmp/cargo-installm2qWH7/release/deps/libhmac_drbg-3ee228d62272f05f.rmeta --extern libsecp256k1_core=/tmp/cargo-installm2qWH7/release/deps/liblibsecp256k1_core-f85cc74ed334f1b7.rmeta --extern rand=/tmp/cargo-installm2qWH7/release/deps/librand-e31e9982e41c534a.rmeta --extern serde=/tmp/cargo-installm2qWH7/release/deps/libserde-8d7d4ceaeba897ce.rmeta --extern sha2=/tmp/cargo-installm2qWH7/release/deps/libsha2-b4586486385d79af.rmeta --extern typenum=/tmp/cargo-installm2qWH7/release/deps/libtypenum-8d402692c022a671.rmeta --cap-lints allow` (signal: 9, SIGKILL: kill)

Could not find a valid Solana-CLI config file. Please specify a RPC manually with '-r' or set up your Solana-CLI config file.

Getting these errors while trying to run metaboss on a Mac.

metaboss decode mint -a 23gaZq8578xHozMWADsmZ2hAFqZ15iyHmQtRw14meds2 [2021-12-22T10:09:24Z ERROR metaboss] Could not find a valid Solana-CLI config file. Please specify a RPC manually with '-r' or set up your Solana-CLI config file.

So I try manually specifying the rpc but I get this:

metaboss decode mint -a 23gaZq8578xHozMWADsmZ2hAFqZ15iyHmQtRw14meds2 [2021-12-22T10:09:24Z ERROR metaboss] Could not find a valid Solana-CLI config file. Please specify a RPC manually with '-r' or set up your Solana-CLI config file. Paolos-MacBook-Pro:metaboss pao$ metaboss decode mint -r https://api.mainnet-beta.solana.com -a 23gaZq8578xHozMWADsmZ2hAFqZ15iyHmQtRw14meds2 error: Found argument '-r' which wasn't expected, or isn't valid in this context

Solana is setup on my machine, and solana get config seems to be ok, so I'm not sure what the issue could be.

Metaboss 0.3.2

snapshot mints --update-authority empty json

I am trying to get the minter accounts of a collection.

The end goal is to determine who payed for the mint (versus the free mints).

Example NFT from the collection:
https://explorer.solana.com/address/EXpjsvvr83BfYc8oZ6buaaE5t9uF7ptki9haB1nWzmD1

this command should provide a the holders if I'm not mistaken:

snapshot mints --update-authority 6d3XsxcLYnPKpgcspevQyCvkfPfuz2rcLjBkL1T9kaJY
or
snapshot holders --update-authority 6d3XsxcLYnPKpgcspevQyCvkfPfuz2rcLjBkL1T9kaJY

I'm using this RPC endpoint:
json_rpc_url: "https://solana-api.projectserum.com"

The resulting file is always a empty json.

Request: Add burn token

Would be nice to have a command that will burn the spl token, clean up the Metadata/Master record accounts etc.

Questions on update data

Hi,
I have an NFT that was created by candy machine before but it had a spelling error in one of the traits.
I suppose I have to put in the additional data for <YOUR_CANDY_MACHINE_ID>.
But what is <KEYPAIR_CREATOR>? Must its 'share' be 50?
thanks!

Question regarding data layout of mint accounts

Thank you for the awesome work on this project. I have a simple question - I see that the query to find mint accounts for a given Candy Machine ID is a simple scan that does a memcmp at a particular offset of the 'data' contained in accounts:

let config = RpcProgramAccountsConfig {
        filters: Some(vec![RpcFilterType::Memcmp(Memcmp {
            offset: 1 + // key
            32 + // update auth
            32 + // mint
            4 + // name string length
            MAX_NAME_LENGTH + // name
            4 + // uri string length
            MAX_URI_LENGTH + // uri*
            4 + // symbol string length
            MAX_SYMBOL_LENGTH + // symbol
            2 + // seller fee basis points
            1 + // whether or not there is a creators vec
            4, // creators
            bytes: MemcmpEncodedBytes::Base58(candy_machine_id.to_string()),
            encoding: None,
        })]),
        account_config: RpcAccountInfoConfig {
            encoding: Some(UiAccountEncoding::Base64),
            data_slice: None,
            commitment: Some(CommitmentConfig {
                commitment: CommitmentLevel::Confirmed,
            }),
        },
        with_context: None,
    };

Could you please point me to the authoritative resource that specifies the data layout for Mint accounts? The closest thing I have found is this resource from Metaplex, but interestingly it does not mention that the Candy Machine ID is stored in the data of mint accounts.

That's all I need - I'm trying to get a grasp of Metaplex's internals, and if such a resource exists it would be very helpful.

Thank you!
-- A very frustrated engineer trying to develop in Solana

Issue: RPC response error -32002

I am getting the following error RPC response error -32002. I have looked previous issues and seen there was a problem with people using the wrong account but I believe I am using the right one. From the Solscan view I am using the token address. Is this the right one?

Issue: RPC response error -32002

Hello,

1- Trying to do a 'metaboss update data'

[2021-12-05T12:44:00Z DEBUG reqwest::connect] starting new connection: https://api.mainnet-beta.solana.com/
[2021-12-05T12:44:01Z DEBUG reqwest::async_impl::client] response '200 OK' for https://api.mainnet-beta.solana.com/
[2021-12-05T12:44:01Z DEBUG reqwest::async_impl::client] response '200 OK' for https://api.mainnet-beta.solana.com/
[2021-12-05T12:44:01Z DEBUG reqwest::async_impl::client] response '200 OK' for https://api.mainnet-beta.solana.com/
[2021-12-05T12:44:01Z DEBUG solana_client::rpc_client] -32002 Transaction simulation failed: Error processing Instruction 0: Program failed to complete
[2021-12-05T12:44:01Z DEBUG solana_client::rpc_client] 1: Program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s invoke [1]
[2021-12-05T12:44:01Z DEBUG solana_client::rpc_client] 2: Program log: Instruction: Update Metadata Accounts
[2021-12-05T12:44:01Z DEBUG solana_client::rpc_client] 3: Program log: libstd rust_begin_panic
[2021-12-05T12:44:01Z DEBUG solana_client::rpc_client] 4: Program log: panicked at 'index out of bounds: the len is 0 but the index is 0', program/src/utils.rs:773:9
[2021-12-05T12:44:01Z DEBUG solana_client::rpc_client] 5: Program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s consumed 200000 of 200000 compute units
[2021-12-05T12:44:01Z DEBUG solana_client::rpc_client] 6: Program failed to complete: BPF program panicked
[2021-12-05T12:44:01Z DEBUG solana_client::rpc_client] 7: Program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s failed: Program failed to complete
[2021-12-05T12:44:01Z DEBUG solana_client::rpc_client]

"operation timed out" when taking a holders snapshot

It really doesn't seem like this would be a bug on metaboss... but would you briefly list possible reasons/workarounds for this?

I'm trying to take a daily holders snapshot, but I almost always get "operation timed out". I'm using an unlimited private RPC from GenesysGo which is working just fine for everything else I do, so I can't think of why it would timeout only for metaboss.

Build Failed: failed to run custom build command for `hidapi v1.3.2 - 'Unable to find libudev'

I'm running WSL2 (ubuntu) on Win11. After installing Rust. cargo install metaboss keeps failing.,

Compiling libsecp256k1-gen-ecmult v0.2.1
   Compiling dlopen_derive v0.1.4
error: failed to run custom build command for 'hidapi v1.3.2'

Caused by:
  process didn't exit successfully: '/tmp/cargo-installxegDyc/release/build/hidapi-4ef3d90209c4264a/build-script-build' (exit status: 101)
  thread 'main' panicked at 'Unable to find libudev: Could not run '"pkg-config" "--libs" "--cflags" "libudev"'
  The pkg-config command could not be found

I've already installed libudev-dev, so I have no idea where to go from here?

aaa@g15:~$ sudo apt-get install libudev-dev Reading package lists... Done Building dependency tree Reading state information... Done libudev-dev is already the newest version (245.4-4ubuntu3). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Thanks!

Request: Allow setting the recentBlockhash in the all Metaboss transaction

Sometimes you need to do a mint or other metaplex action in response to another transaction on the chain. However, often you want to do it before the transaction you are responding to is finalized in the cluster.

Therefore, being able to set the recent blockhash that the transaction you're pushing references, allows it to be forked out in the case that the transaction you're responding to never gets finalized / gets forked out.

update_nft command throwing an error.

Hi, I'm running the update_nft command and getting the following error.

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ParseIntError { kind: InvalidDigit }', src/parse.rs:11:34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I have created the NFT using the Metaplex Candy Machine.

I have been able to use the script to run decode and get_mints without issues.

Mint NFT directly from URI

Add a feature to mint a NFT directly from a URI rather than having to provide the on-chain formatted JSON file.

build issue

I just clone the repo and follow the build instruction.
While building the source code, I ran into an issue
image

I have no idea how to fix this issue.

Images not loading after Mint on devnet

I've minted two NFTs on devnet but their images are not showing on the Phantom wallet.

image

This is the link to the armory: https://www.nftarmory.me/view/address/62BjRAuHuSUQLU4rrHFAGPbDx5as6amnZ6hkSpSTBoRW

I've tried the creators[0].verified field with both "true" and "false", but no success:

{
    "name": "my nft",
    "symbol": "MYNFT",
    "uri": "https://arweave.net/JiHStIaDf5lSniBmBpPGKPKPFpJdXMelCslgfEPRLbE",
    "seller_fee_basis_points": 100,
    "creators": [
        {
            "address": "GBphEVmasEBHxzaotYF7PxSgZfHTCFXNRXfzySk6cKrW",
            "verified": true,
            "share": 100
        }
    ]
}

The code I've used to mint the NFT:

export keypair="$HOME/.config/solana/devnet.json"
export rpc='... hidden for security ...'
export receiver='62BjRAuHuSUQLU4rrHFAGPbDx5as6amnZ6hkSpSTBoRW'
export nft_data_file='/tmp/new_nft.json'

metaboss -r $rpc mint one -k $keypair --nft-data-file $nft_data_file --receiver $receiver

Outputs:

Tx id: 2oisYBcg2MtfCoKJM4LwNPNxFd4c9nxA4FMrY3Zpvzrbkw65TALUfcmSCdD1iF571gp6TrRLm4X2kg1ZNQSoohBr
Mint account: 8KGaxFov5WxrDb9a1pre46qPSwNv4aZpNcRuppRHmWMk
Done!

Tx id: 32TKgpVZTA332vAFw6weUbPTjbT5tixYaJX1qJ6p5jEBeXFTkQt1kJfiP1q5JfrsBJfxePVuUknmLyzE1v1ov5Jo
Mint account: gdUzbYNYzupdv7XoTJ18hcm7hRwBein1dggCDHAuo6z
Done!

Metaboss version:

$ metaboss --version
Metaboss 0.3.4

failed to run custom build command for `ring v0.16.20`

This is error is caused when i run cargo install metaboss

failed to run custom build command for ring v0.16.20
Caused by:
process didn't exit successfully: C:\Users\Asus\AppData\Local\Temp\cargo-installeFpalP\release\build\ring-3e454d6d63d15752\build-script-build (exit code: 101)
--- stdout
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-pc-windows-gnu")
HOST = Some("x86_64-pc-windows-gnu")
CC_x86_64-pc-windows-gnu = None
CC_x86_64_pc_windows_gnu = None
HOST_CC = None
CC = None
CFLAGS_x86_64-pc-windows-gnu = None
CFLAGS_x86_64_pc_windows_gnu = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("false")
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")

--- stderr
running "gcc.exe" "-O3" "-ffunction-sections" "-fdata-sections" "-m64" "-I" "include" "-Wall" "-Wextra" "-std=c1x" "-Wbad-function-cast" "-Wnested-externs" "-Wstrict-prototypes" "-pedantic" "-pedantic-errors" "-Wall" "-Wextra" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wenum-compare" "-Wfloat-equal" "-Wformat=2" "-Winline" "-Winvalid-pch" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wundef" "-Wuninitialized" "-Wwrite-strings" "-fno-strict-aliasing" "-fvisibility=hidden" "-g3" "-DNDEBUG" "-c" "-oC:\Users\Asus\AppData\Local\Temp\cargo-installeFpalP\release\build\ring-ac55c94ec460ee28\out\aes_nohw.o" "crypto/fipsmodule/aes/aes_nohw.c"
thread 'main' panicked at 'failed to execute ["gcc.exe" "-O3" "-ffunction-sections" "-fdata-sections" "-m64" "-I" "include" "-Wall" "-Wextra" "-std=c1x" "-Wbad-function-cast" "-Wnested-externs" "-Wstrict-prototypes" "-pedantic" "-pedantic-errors" "-Wall" "-Wextra" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wenum-compare"
"-Wfloat-equal" "-Wformat=2" "-Winline" "-Winvalid-pch" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wundef" "-Wuninitialized" "-Wwrite-strings" "-fno-strict-aliasing" "-fvisibility=hidden" "-g3" "-DNDEBUG" "-c" "-oC:\Users\Asus\AppData\Local\Temp\cargo-installeFpalP\release\build\ring-ac55c94ec460ee28\out\aes_nohw.o" "crypto/fipsmodule/aes/aes_nohw.c"]: program not found', C:\Users\Asus.cargo\registry\src\github.com-1ecc6299db9ec823\ring-0.16.20\build.rs:653:9
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile metaboss v0.3.4, intermediate artifacts can be found at C:\Users\Asus\AppData\Local\Temp\cargo-installeFpalP

Caused by:
build failed

Have problem while use metaboss to change metadata,

I tried to update metadata but have this problem

Using a public RPC URL is not recommended for heavy tasks as you will be rate-limited and suffer a performance hit.
            Please use a private RPC endpoint for best performance results.
Error: invalid variant

As i understand I must add --rpc but now i have another error message

error: Found argument '--rpc' which wasn't expected, or isn't valid in this context

USAGE:
    metaboss-windows-latest.exe update data --account <account> --keypair <keypair> --new-data-file <new-data-file>

How use private rpc to update metadate?

Error: invalid variant

I trying to run metaboss snapshot holders -c 6pzuJN2DpgKQfVVAmVHJpaeQYYDevyBAC2jPxrYv9n3 inside a docker container but it return me ERROR: invalid variant some tip to figure out what its happening?

Snapshot command provided with incorrect flag

Currently, the snapshot command for update authority is shown as "metaboss snapshot holders --update_authority <UPDATE_AUTHORITY> --output <OUTPUT_DIR>" in the readme.md; however, the flag is "--update-authority". Small difference of the underline vs hyphen

snapshot or holders always yields empty results (windows)

Hi all,

Using the latest v0.2.2 binary for windows running .\metaboss-windows-latest.exe snapshot holders -c <candy-machine-id> always yields empty results, where as using an online tool like "gib-meta" does output the correct data.

Is there anything I might be missing in setting this up? I've just moved the binary (.exe) inside the metaplex folder as well but it makes no difference.

Thanks!

Improve error message for "RPC response error -32002"

While I was trying to mint an NFT I was getting the bellow error on devnet.

The problem was my creator.address value was not the same address as the Solana keypair (I forgot to change it in the JSON file).

I would suggest adding a custom message so that it display the root cause early.

{
    "name": "my nft",
    "symbol": "MYNFT",
    "uri": "https://arweave.net/JiHStIaDf5lSniBmBpPGKPKPFpJdXMelCslgfEPRLbE",
    "seller_fee_basis_points": 100,
    "creators": [
        {
            "address": "<I GOT THIS ADDRESS WRONG>", <--this was wrong
            "verified": false,
            "share": 100
        }
    ]
}

Generic error message:

Error: RPC response error -32002: Transaction simulation failed: Error processing Instruction 4: custom program error: 0x26 [41 log messages]

Commands that I was running:

# without rpc
metaboss mint one -k $keypair --nft-data-file $nft_data_file --receiver $receiver
# with rpc
metaboss -r $rpc mint one -k $keypair --nft-data-file $nft_data_file --receiver $receiver

Failing to mint NFT

Using the mint command I am receiving the following error:

Error: RPC response error -32002: Transaction simulation failed: Error processing Instruction 4: custom program error: 0x26 [41 log messages]

Caused by:
RPC response error -32002: Transaction simulation failed: Error processing Instruction 4: custom program error: 0x26 [41 log messages]

Where to see transaction error logs

Im executing metaboss update data and expect to be able to update metadata of an nft with a new arweave uri. it say transaction error and there are some logs. but i have no idea where to see the log. Any idea where i can see the logs?

Screenshot 2021-12-18 at 11 42 21

Mint list error 0x2d

I tried to execute the batch mint command but encountered the following error:

Failed to mint "new_nfts/01.json": RPC response error -32002: Transaction simulation failed: Error processing Instruction 4: custom program error: 0x2d [41 log messages

May I ask where I can find the error message and how to resolve this? Thanks!! ><

String is the wrong size when using update_nft and update_nft_all

As the title says, I'm getting an Error: String is the wrong size when running the update_nft and update_nft_all commands.

I used this exact command:

metaboss update_nft  --keypair ./wallet/real.json --mint-account C5ZExwgzKx7qaykLrhigADTxYyhgR48vw7JWS65WRpa8 --new-uri https://arweave.net/IhHRwaNLwcjQxz4KR045a13wVt1PPXzVmBYmJ3c4Ck0
Error: String is the wrong size

I don't see any problems with it and in fact, if you visit the uri and use the Solana explorer to look for the key on devnet, you will find it.

RPC response error -32002: Transaction simulation failed: Blockhash not found

When updating an NFT's on chain data am getting this the error from the title, Have also tried another NFT token address and getting a separate error:

Error: RPC response error -32002: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x7 [5 log messages]

Command used:
metaboss -r update data --account --keypair --new-data-file

error: failed to download `metaboss v0.3.3`

I'm getting the following error messages when running "cargo install metaboss". My system is Windows10 and I have tested a couple of different Rust versions.

C:\Users\johan>cargo install metaboss
    Updating crates.io index
error: failed to download `metaboss v0.3.3`

Caused by:
  unable to get packages from source

Caused by:
  failed to parse manifest at `C:\Users\johan\.cargo\registry\src\github.com-1ecc6299db9ec823\metaboss-0.3.3\Cargo.toml`

Caused by:
  feature `edition2021` is required

  this Cargo does not support nightly features, but if you
  switch to nightly channel you can add
  `cargo-features = ["edition2021"]` to enable this feature

snapshot candy machine mint accounts in correct order of mint

Hey there,

the snapshot feature is a cool one. But is it possible to retrieve the mint accounts in the order that they were minted (ordered by date)?
That would be very helpful when someone wants to implement features based just on the NFT #id of the collection.

Thanks for your help and the great tool!

Using hardware wallet

I'm trying to sign the metadata for an unverified creator using a hardware wallet, but it doesn't seem to accept usb://ledger as a keypair. Is this possible?

RPC response error -32002 with 0x36 error code

Hi, thanks for providing such convenient and amazing tools!

I've update the uri successfully by running
metaboss update uri -u <new_uri> -a <NFT mint address> -k <update_autority_keypair>
and it worked just fine!

But since the number in the uri has changed, for example, from "My NFT # 100" to "My NFT # 101",
I also want to update the on-chain data so that they display consistently.

However, when I ran
metaboss update data -n <new_data.json> -a <NFT mint address> -k <update_autority_keypair>
It constantly showing 0x36 error, which I found is the
CannotVerifyAnotherCreator: You cannot unilaterally verify another creator, they must sign" error.

I've follow the format from here: https://metaboss.rs/update.html
and I also added the original creator as well as the candymachine, both of them set to be verified.

Any suggestion is appreciated!

Update Metadata doesn't work

Hi teams !

I wanna try to update the metadata of one of my NFT, and when I run the command :
metaboss update data --account --keypair --new-data-file

I have the error :
Error: missing field uri at line 29 column 1

Here the screenshot :
image

Can you help me ?
Thanks you !

Misleading error when using `-r` option

Hi,

Thanks for this project!
Wanted to let you know I experienced a very strange / misleading error message this evening on 0.3.4...

When trying to mint list or mint one with the -r override:

metaboss mint list -r https://api.devnet.solana.com --keypair [redacted] --nft-data-dir [redacted] --primary-sale-happened  
[2022-01-10T02:50:54Z WARN  metaboss] Using a public RPC URL is not recommended for heavy tasks as you will be rate-limited and suffer a performance hit.
            Please use a private RPC endpoint for best performance results.
[2022-01-10T02:50:54Z ERROR metaboss::mint] Failed to mint "0.json": Invalid Base58 string
[2022-01-10T02:50:54Z ERROR metaboss::mint] Failed to mint "1.json": Invalid Base58 string
Done!

But after messing around with it trying to figure out what was wrong with my key and / or address for over an hour, I tried removing various things from the command on a whim and this worked fine:

metaboss mint list --keypair [redacted] --nft-data-dir [redacted] --primary-sale-happened             
[2022-01-10T03:09:25Z WARN  metaboss] Using a public RPC URL is not recommended for heavy tasks as you will be rate-limited and suffer a performance hit.
            Please use a private RPC endpoint for best performance results.
Tx id: [redacted]
Mint account: [redacted]
Tx id: [redacted]
Mint account:[redacted]
Done!

Not sure why this would matter / change things in a way that would break Pubkey processing / parsing? I'm on macOS using zsh if it is maybe related to some weird CLI expansion thing?

Cheers!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.