WaveClamp
FAQ

Creating NFT smart contract code: what to ask first

05

ERC-1155 basics

What does creating NFT smart contract code with ERC-1155 involve?

A Solidity file that implements the ERC-1155 functions and events, plus tests that check balances and transfer events on a local chain. It starts with an SPDX licence comment and a pragma solidity line, defines balanceOf, safeTransferFrom and uri(id), and needs a minting function with access control. WaveClamp reads and edits that file and runs your tests. You review every diff.

How does ERC-1155 differ from ERC-721?

The difference is that ERC-721 gives one contract one collection of unique tokens, each with its own owner, while ERC-1155 lets one contract manage many token types, each with a numeric id, as fungible, non-fungible or semi-fungible units. A virtual 3D art gallery NFT set could use one id per artwork. Both are Ethereum standards, and batch functions move several ids at once.

What functions and events does the standard define?

The standard defines balanceOf, balanceOfBatch, safeTransferFrom, safeBatchTransferFrom, setApprovalForAll, isApprovedForAll and uri(id), plus the events TransferSingle, TransferBatch, ApprovalForAll and URI. That is 4 events. The batch functions move several token ids in one transaction, and WaveClamp can grep a project for each name so you see where every function and event is declared or used. Start the review with the minting and approval functions.

How do safe transfers work?

A safe transfer checks the receiver: when the receiver is a contract, it must implement onERC1155Received and onERC1155BatchReceived and accept the tokens, otherwise the transfer is rejected. That protects tokens from getting stuck in a contract that cannot handle them. A test for a receiving contract is worth writing, and the agent can draft it and run it through Shell while you read the diff.

What does the uri(id) function return?

A string that points to the metadata JSON of a token. The value may contain the text {id}, which clients replace with the token id in lowercase hexadecimal, padded to 64 characters, so one pattern can serve every id. Keep the pattern short. WaveClamp can write the JSON files with write_file and check the pattern in the contract with grep. Test one id before you create the rest.

Using WaveClamp

Does the agent run tools by itself?

Yes. The agent calls the tools itself, and every action appears in the chat as a card with its real result, so you read output instead of a description. An expanded card shows the full command result or the file diff. In Auto-run actions run at once, in Ask first the agent pauses before actions that change something, and in Plan only it runs nothing.

How do I start NFT smart contract development on a test network?

The first step is a local chain or a test network, whose coins have no value, plus a small Solidity file. Open the project folder in WaveClamp, pick Plan only to read the steps, then switch to Ask first so each edit arrives as a diff. Your own compile command and test command run through Shell. Never use real funds or real keys.

Can WaveClamp help with handling ERC20, ERC721 and ERC1155 deployments across chains?

Yes, with limits. The agent edits the contracts and runs your own deploy command through Shell against a local chain or a test network, but it deploys nothing by itself. Real-value deployments are outside the purpose of this site, and a deployed contract cannot be changed, so an independent security review comes first. Ask first pauses before actions that change something.

Is mirazcode.com the official WaveClamp website?

Yes, mirazcode.com is the official WaveClamp website. It hosts the original build: download the setup program of about 34 MB here, compare its SHA-256 checksum with the published manifest, and run it only when the two match. Use the Send feedback button inside the app for questions or problems. The installer is not code-signed yet. The portable single .exe of about 25 MB exists as a separate build.

Are the results always right?

No. The agent does not guarantee that code, scans or analysis are correct, and a model can write code that compiles but behaves wrongly. You check every result and every diff before you accept it, run your test command and read the exit code. For anything with real value, an independent security review comes before deployment. Treat each answer as a draft to test.

Models, privacy and download

Do my files leave the PC?

The answer depends on the model you pick. With a cloud AI provider, the prompt, including the text of any file the agent reads, goes to that provider. With a model running on your PC, nothing leaves the machine. Chats, working folders and API keys stay on the PC, and secrets in tool output are redacted before they reach the model.

Which models can I connect?

A cloud AI provider through a standard API endpoint, a model running on your PC, or the built-in model, which is ready to use without your own endpoint. The Test button checks an endpoint and shows the response time and the context window. Pick per task. A bigger model suits hard review questions, and a smaller one suits small edits.

What should a small project check before real-value use?

A small ERC20 utility project earns transparency by publishing its source and its tests, and the same habit applies to a multi-token set. Add an independent security review, because a deployed contract cannot be changed. WaveClamp does not replace that review and gives no financial advice. Keep keys out of files, and use throwaway accounts while you practise. Read each diff before you accept it.

How do I check the download?

The installer is not code-signed yet, so compare its SHA-256 checksum with the published manifest. In a terminal, run certutil -hashfile with the path of the file and the word SHA256, then compare the two strings. If Windows SmartScreen warns, click More info and then Run anyway only after the checksum matches. Pick the setup program, not the portable .exe.

WaveClamp for Windows

Ask WaveClamp about your first contract

Download WaveClamp ↗