For example if I want to register three TLD domains:
example1.eth
example2.eth
example3.eth
Can I make one startAuctionAndBid transaction for all three?
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.
Sign up to join this communityCan I make one startAuctionAndBid transaction for all three?
Yes, but it's called startAuctionsAndBid
(note the extra s
):
Here is the Solidity version of the contract method, as a reference for how to use it:
/**
* @dev Start a set of auctions and bid on one of them
*
* This method functions identically to calling `startAuctions` followed by `newBid`,
* but all in one transaction.
*
* @param hashes A list of hashes to start auctions on.
* @param sealedBid A sealed bid for one of the auctions.
*/
function startAuctionsAndBid(bytes32[] hashes, bytes32 sealedBid) public payable {
startAuctions(hashes);
newBid(sealedBid);
}