From HEXONET Wiki
Domain API
Contents |
API Commands
TRADEDOMAIN
[COMMAND]
COMMAND = TradeDomain <span class="label label-important">REQUIRED</span> DOMAIN = <DOMAIN> OWNERCONTACT0 = <CONTACT> X-CONFIRM-DA-NEW-REGISTRANT = 1 <span class="label label-info">OPTIONAL</span> X-CONFIRM-DA-OLD-REGISTRANT = 1 EOF
[RESPONSE]
DESCRIPTION = Command completed successfully; realtime domain trade succeeded CODE = 200 EOF
STATUSDOMAIN
[COMMAND]
COMMAND = StatusDomain DOMAIN = btc.info EOF
[RESPONSE]
CODE = 200 DESCRIPTION = Command completed successfully PROPERTY[STATUS][0] = ACTIVE PROPERTY[STATUS][1] = clientTransferProhibited ... PROPERTY[CURRENT-REGISTRANT-NAME][0] = ... PROPERTY[CURRENT-REGISTRANT-ORGANIZATION][0] = ... PROPERTY[CURRENT-REGISTRANT-EMAIL][0] = ... ... PROPERTY[TRANSFERLOCK][0] = 1 PROPERTY[TRANSFERLOCK-EXPIRATIONDATE][0] = YYYY-MM-DD HH:MM:SS PROPERTY[TRADE-TRANSFERLOCK-EXPIRATIONDATE][0] = YYYY-MM-DD HH:MM:SS ... EOF
[HEADER] USER=test.user
[COMMAND] COMMAND = ModifyDomain DOMAIN = btc.info TRANSFERLOCK = 0 EOF
[RESPONSE] CODE=552 DESCRIPTION=Object status does not allow for operation; Change of Registrant TRANSFERLOCK in place until 2017-01-09 09:53:24 EOF
With opt-out from transferlock:
[COMMAND]
COMMAND=TradeDomain
DOMAIN=btc.info
OWNERCONTACT0=P-JUW40
X-CONFIRM-DA-NEW-REGISTRANT=1
X-REQUEST-OPT-OUT-TRANSFERLOCK=1
EOF
[RESPONSE]
DESCRIPTION=Command completed successfully; trade pending - non-real-time
CODE=200
PENDING=1
QUEUETIME=0
RUNTIME=0.96
EOF