Should be called to deploy new smart exchange
contract to ethereum network and to register it with given identifier.
{
"id": 8,
"jsonrpc": "2.0",
"method": "exchange_create",
"params": [
"XROF",
false
]
}
curl -X POST --data '{"id":8,"jsonrpc":"2.0","method":"exchange_create","params":["XROF", false]}' -H "Content-Type: application/json" http://localhost:8545
{
"jsonrpc": "2.0",
"id": 8,
"result": "0x209f728097e6ea54068c62b5b534c115b9c5d5b5"
}
Name | Code |
---|---|
UNKNOWN_ERROR | 100 |
IDENTIFIER_IS_INCORRECT | 101 |
IDENTIFIER_NOT_OWNED | 103 |
IDENTIFIER_CANNOT_OVERWRITE | 104 |
CONTRACT_DEPLOYMENT_ERROR | 108 |