Contract Events
The DomainSale smart contract emits a number of events to allow listenres to provide full information about the current state of domains for sale and under auction. The events emitted are as follows:
Offer
This event is emitted when an offer
transaction is received. The event emits the following parameters:
seller
the address selling the domain (this is indexed)name
the name of the domain, minus the.eth
ending (so for example if the offer is onmydomain.eth
this would bemydomain
)price
the fixed price at which the domain can be purchased immediately (if this is0
it means that this domain cannot be purchased immediately)reserve
the lowest acceptable bid at which the domain will enter auction (if this is0
it means that this domain cannot be purchased at auction)
Bid
This event is emitted when a bid
transaction is received. The event emits the following parameters:
bidder
the address making the bid (this is indexed)name
the name of the domain, minus the.eth
ending (so for example if the bid is onmydomain.eth
this would bemydomain
)bid
the bid that was made
Cancel
This event is emitted when a cancel
transaction is received. The event emits the following parameters:
seller
the address selling the domain (this is indexed)name
the name of the domain, minus the.eth
ending (so for example if the cancellation is onmydomain.eth
this would bemydomain
)
Transfer
This event is emitted when a domain is transferred, after either a buy
or a finish
transaction is received. The event emits the following parameters:
seller
the address of the domain seller (this is indexed)buyer
the address to of the domain buyer (this is indexed)name
the name of the domain, minus the.eth
ending (so for example if the domain transferred ismydomain.eth
this would bemydomain
)value
the amount that the buyer paid to buy the domain