TOP
or
check비밀번호가 틀립니다.
정보를 입력해주세요
이메일을 입력해 비밀번호를 변경하세요
취소하기
입력하신 이메일에 대한 계정이 있을경우 인증코드가 포함된 메일이 발송됩니다. 메일이 도착하지 않을 경우 스팸메일함을 확인해주세요.
check비밀번호가 틀립니다.
닫기
이메일
summer@summer.com
닉네임
summer
직업
이메일을 입력해 비밀번호를 변경하세요
취소하기
입력하신 이메일에 대한 계정이 있을경우 인증코드가 포함된 메일이 발송됩니다. 메일이 도착하지 않을 경우 스팸메일함을 확인해주세요.
회원 탈퇴시 계정 정보는 복구할 수 없으며, 게시판에 등록한 게시글 삭제가 불가합니다.


check비밀번호가 틀립니다.
check
탈퇴가 완료되었습니다.
닫기
제품 > SVM API
Service node의 목록 정보 얻기,
host url 관리 등의 기능을 제공합니다.
info /host/getHostList
Get Host List
Get the host list owned by SApp. Upon receipt of the request, the host list is verified once again every 30 days.
Example
SApp - Javascript sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
var psQuery = {"serviceID" : "serviceID""chainID":"chainID"};
$.ajax({
    url: "/host/getHostList"
    type: 'POST',
    data: JSON.stringify(psQuery),
    dataType: 'json'
    contentType:"application/json;charset=UTF-8",
    success: function(data) { 
    retData = data;
    },
    error:function(data,status,er) { 
    alert("error: "+data.responseText+" status: "+status+" er:"+er);
    }
});
 
Request parameters
form parameter name Description Value
serviceId Service ID
Request sample
JSON Object
{"serviceID" : "serviceID", "chainID" : "chainID"}
Result
{"result":"ACCEPT","sa_elapsedTime":96,"apiVersion":"1.1.0","sa_startTime":1620797643011,"sa_endTime":1620797643107,"chain_info":{"chain_id":"NHBIZNET0E","net_type":"biz","chain_code":"ecchain","version":"0.9.2"},"list":["https://nhwallet1.nodehome.io","https://nhwallet2.nodehome.io","https://nhwallet3.nodehome.io","https://nhwallet4.nodehome.io"]}
Result parameters
parameter name Description
result
string
Processing result
list
array[]
Host url list
ref
string
Result message
Response sample
JSON Object
{ "result":"ACCEPT","list":
["http://www.sample.co.kr","http://192.168.0.1:8080"] }
info /host/getSimpleHostList
Simple Node host
Get the host list owned by SApp. The requested service has no host list validation.
Example
SApp - Javascript sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
var psQuery = {"chainID":"chainID"};
$.ajax({
    url: "/host/getSimpleHostList"
    type: 'POST',
    data: JSON.stringify(psQuery),
    dataType: 'json'
    contentType:"application/json;charset=UTF-8",
    success: function(data) { 
    retData = data;
    },
    error:function(data,status,er) { 
    alert("error: "+data.responseText+" status: "+status+" er:"+er);
    }
});
    
Request parameters
form parameter name Description Value
serviceId Service ID
Request sample
JSON Object
{"chainID" : "chainID"}
Result
Result parameters
parameter name Description
result
string
Processing result
list
array[]
Host url list
ref
string
Result message
Response sample
JSON Object
{ "result":"ACCEPT","list":
["http://www.sample.co.kr","http://127.0.0.1:8080"] }
info /host/requestAddHost
host url registration request
When the service url registration request is received, the request URL is verified and registered in the local host list.
This API is a feature that is automatically called by other APIs. Developers should not implement or call.
Example
Request parameters
form parameter name Description
serviceId Service ID
mport host authentication program used port
remoteAddessIp Registration request address ip
requestUrl Registration request url
Response sample
JSON Object
{"serviceid":"nodehome" ,"mport" : "8860", "remoteAddessIp" : "192.168.0.1", "requestUrl":"http://......"}
Result parameters
parameter name Description
result
string
Processing result
message
array[]
Result message
Response sample
JSON Object
{ "result":"OK","message":"" }
info /host/requestVerification
Node hacking check
The node manager registers the black list after validation.
If the target Sapp is a hacked node, it is blacklisted and propagated to other Sapps.
Example
SApp - Javascript sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var psQuery = {"mport":"8886","serviceId":"xxxxxxx","requestUrl":"http://xxx.nodehome.io","targetUrl":"http://xxx.nodehome.io"};
$.ajax({
    url: "/host/requestVerification"
    type: 'POST',
    data: JSON.stringify(psQuery),
    dataType: 'json'
    contentType:"application/json;charset=UTF-8",
    success: function(data) { 
    retData = data;
    },
    error:function(data,status,er) { 
    alert("error: "+data.responseText+" status: "+status+" er:"+er);
    }
});
Request parameters
form parameter name Description
serviceId Service ID
requestUrl Request host url
targetUrl Target host url
mport Verification connect port
Response sample
JSON Object
{"mport":"8886","serviceId":"xxxxxxx","requestUrl":"http://xxx.nodehome.io","targetUrl":"http://xxx.nodehome.io"}
Result parameters
parameter name Description
result
string
Processing result
Response sample
JSON Object
{ "result":"OK", "message":"Normal host"} or { "result":"FAIL", "message":"Fake host"}
info /host/requestBlockHost
Blacklist request processing
The blacklist registration processing request is handled by another server.
Upon receipt of the request, it checks the target SApp and blocks it, and notifies the seed server.
Developers should not implement or call.
Request parameters
form parameter name name Description
serviceId Service ID
verifiHost Validation target SApp host url
mport host authentication program used port
Response sample
JSON Object
{"serviceId":"nodehome","verifiHost":"http://......","mport":"8886"}
Result parameters
parameter name Description
result
string
Processing result
Response sample
JSON Object
{"result":"OK"}