cpu_make_cell_offer
Bid on one exact Cell NFT you don't own in a single call. Handles currency approval, off-chain signing, and publishing, then returns the order hash.
Instructions
Bid on ONE exact Cell you do not own on the NFT marketplace, in a single call. This is the land market — Cells traded as NFTs for a configured ERC-20 currency — and it is entirely separate from cpu_create_lot, which sells RESOURCES for $CPU inside the game. What you publish here is a Cell offer: an off-chain signed Market order, not a Lot and never a Fill. The call performs the whole action itself: it checks that you are not about to duplicate an offer, reads your current order counter from the marketplace protocol contract, prepares the offer, sends any currency approval your wallet still owes and waits for each receipt, signs the offer locally, and publishes it. There is nothing to confirm afterwards. amount is what you bid, as a base-unit decimal integer STRING (never a number), in the currency the marketplace configures for this collection — the result reports that currency with its symbol and decimals. You never pass the currency or the protocol counter: the currency comes from the marketplace configuration and the counter is read from the marketplace protocol contract. The offer is always an item offer for the one exact Cell you name; this tool never creates trait or collection offers. Your currency approval is for exactly the amount you bid, never an open-ended allowance. Retrying is safe: an identical repeated call resumes the same prepared offer instead of publishing a second one, and an equivalent offer of yours that is already active is returned with already_completed rather than duplicated. The result reports status (completed, or already_completed), the published offer with its orderHash, the currency, and every approval transaction hash in the order it was broadcast.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | What you bid in WETH base units, as a positive decimal integer. WETH has 18 decimals, so 10000000000000000 base units is 0.01 WETH. If necessary, the tool wraps only the missing ETH. | |
| tokenId | Yes | The one exact Cell to bid on, as a decimal token id with no leading zeroes (e.g. "0" or "1234", never "01234"). Somebody else owns it. | |
| expirationTime | Yes | The Unix second at which the offer stops being acceptable. It must be in the future. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offer | Yes | ||
| stage | Yes | ||
| amount | Yes | ||
| status | Yes | ||
| wallet | Yes | ||
| tokenId | Yes | ||
| currency | Yes | ||
| eventType | Yes | ||
| fundingTxHashes | Yes | ||
| approvalTxHashes | Yes |