https://github.com/steppsr/get_coin_id
This Bash script will get the nft_coin_id for a given nft_id. The script will search all Wallet IDs until it finds the NFT ID, then return the Coin ID for the NFT.
https://github.com/steppsr/get_coin_id
bash chia chia-blockchain nft
Last synced: about 1 month ago
JSON representation
This Bash script will get the nft_coin_id for a given nft_id. The script will search all Wallet IDs until it finds the NFT ID, then return the Coin ID for the NFT.
- Host: GitHub
- URL: https://github.com/steppsr/get_coin_id
- Owner: steppsr
- License: apache-2.0
- Created: 2023-12-05T06:40:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-05T07:06:53.000Z (over 2 years ago)
- Last Synced: 2025-11-12T05:39:38.281Z (7 months ago)
- Topics: bash, chia, chia-blockchain, nft
- Language: Shell
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# get_coin_id
This Bash script will get the `nft_coin_id` for a given `nft_id`. The script will search all Wallet IDs until it finds the NFT ID, then return the Coin ID for the NFT.
## Parameters
- Parameter 1 = NFT ID
## Running the command
```
bash get_coin_id.sh
Example:
bash get_coin_id.sh nft1y4ff5f2dqdr7ss6hnq6mudwwpj03dpmd9vefdfks4t9hcmfe5acq3cyk7z
```
## How is this useful?
If you've ever wanted to create a zero mojo NFT offer, you need to use the RPC (currently) and that requires the Coin ID for your NFT. Here is an format for creating a zero mojo NFT.
```
chia rpc wallet create_offer_for_ids '{"offer":{"COIN_ID_HERE":-1},"fee":0,"driver_dict":{},"validate_only":false}'
```
Be sure to replace `COIN_ID_HERE` with your Coin ID for your NFT.
Here is an real example:
```
chia rpc wallet create_offer_for_ids '{"offer":{"0xb0986cc156ab4fb6917722d400486ef9ecb2033d74aa553d0717eed6716e5e57":-1},"fee":0,"driver_dict":{},"validate_only":false}'
```