Request
{
"PROPOSAL_TYPE": "ethereum",
"rawData": "did:hecate:nex:2182e239888d6afc61bd0d677b58b0443bea3ffdA1",
"funcName": "getDidDoc",
"smartContract": "0x55c4cB2eA6f02bB88bf4A30570536AB03B4aa9d6"
}
Response
{
"PROPOSAL_TYPE": "ethereum",
"rawData": {
"bcKey": "did:hecate:nex:2182e239888d6afc61bd0d677b58b0443bea3ffdA1",
"bcValue":"{…..}",
"didTimestamp": "1591851625",
"bcStatus": "0"
},
"status": "0000",
"funcName": "getDidDoc"
}
Request
{
"PROPOSAL_TYPE": "ethereum",
"rawData": {
"bcKey": "did:hecate:nex:2182e239888d6afc61bd0d677b58b0443bea3ffdA1",
"bcValue":"{…..}",
"didTimestamp": "1591851625"
},
"funcName": "regDidDoc",
"smartContract": "0x55c4cB2eA6f02bB88bf4A30570536AB03B4aa9d6"
}
Response
{
"PROPOSAL_TYPE": "ethereum",
"rawData": "0x1022a7c2494de53dc32ccefb94e7a11d561985a063ee755a3cf6fc9f25abb56a",
"status": "0000",
"funcName": "regDidDoc"
}
Request
http://IP:PORT/bc/eth/tx/receipt/0x083bf2e9132dea9da13fc558ccfc303c03565ef955dfb8a011a2c2957faef086
Response
{
"PROPOSAL_TYPE": "ethereum",
"rawData": {
"transactionHash": "0x083bf2e9132dea9da13fc558ccfc303c03565ef955dfb8a011a2c2957faef086",
"transactionIndex": 0,
"blockHash": "0x8911e1c737970e2180be53a841c8666884bce506fca9fcd7648a4dede24dac3d",
"blockNumber": 21851946,
"cumulativeGasUsed": 75852,
"gasUsed": 75852,
"status": 1,
"from": "0xf7c889312a56daa3fbd198934880e7d51d1b4655",
"to": "0x55c4cb2ea6f02bb88bf4a30570536ab03b4aa9d6",
"logs": [{
"removed": false,
"logIndex": 0,
"transactionIndex": 0,
"transactionHash": "0x083bf2e9132dea9da13fc558ccfc303c03565ef955dfb8a011a2c2957faef086",
"blockHash": "0x8911e1c737970e2180be53a841c8666884bce506fca9fcd7648a4dede24dac3d",
"blockNumber": 21851946,
"address": "0x55c4cb2ea6f02bb88bf4a30570536ab03b4aa9d6",
"data": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000832653233393838386436616663363162643064363737623538623034343362656133666664413100000000000000000000000000000000000000000000000000000000000000000000000000020a7b5c2240636f6e746578745c223a5c22687474703a2f2f736368656d612e6f72672f5c222c5c2269645c223a5c226469643a6865636174653a6e65783a323138326532333938383864366166633631626430643637376235386230343433626561336666645c222c5c22637265617465645c223a5000000000000000000000000000000000000000000000000000000000000000000",
"topics": ["0x4edff151847655827d51b09e7d0e98ef14572ea8e42b16cf77fb65f85220c4d7"]
}],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000800010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000"
},
"status": "0000"
}
Request
Response
{
"PROPOSAL_TYPE": "ethereum",
"rawData": "AmMoV6tYjqumjLn6Edu5h4BP9iCkYBkr99eJmaNWc7SBTU8W7NaB",
"status": "0000"
}
사용 가능한 버전 1.3.2이상
Request
http://IP:PORT/bc/eth/wallet/0xa6eb7e9e4c3a8745c3f68c2443a1630a938adf0a/nonce
Response
{
"PROPOSAL_TYPE": "ethereum",
"rawData": 2
}
Request
Response
{
"PROPOSAL_TYPE": "ethereum",
"rawData": "AmMoV6tYjqumjLn6Edu5h4BP9iCkYBkr99eJmaNWc7SBTU8W7NaB",
"status": "0000"
}
Request
Response
{
"PROPOSAL_TYPE": "ethereum",
"rawData": 0,
"status": "0000"
}
Request
Response
{
"PROPOSAL_TYPE": "ethereum",
"rawData": {
"number": 21854622,
"hash": "0xef8b2ca9f52dc9ee27f14844307a37bfed995f33067f6d7ce52f2f1ac6ab1fc3",
"parentHash": "0x79586eb6ba426376b2a6d73e701e862c624b2797fd3a50ca82e675063bb44c8f",
"nonce": 0,
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"stateRoot": "0x3233bfc7b31e3fb89f5b7f178b772588fcb544ec8380038278dbe731f69d9299",
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"miner": "0x1a90ae455bb0a6105983c8bfc7a3f4c92e9f59af",
"mixHash": "0x63746963616c2062797a616e74696e65206661756c7420746f6c6572616e6365",
"difficulty": 1,
"totalDifficulty": 21854623,
"extraData": "0xf90148a00000000000000000000000000000000000000000000000000000000000000000f854941a90ae455bb0a6105983c8bfc7a3f4c92e9f59af94567065cc0805bcf00468d09568262155cee7899094b96fc92798d4790866c427d3b47f32f816f560be94bc0693c8950f5d555a3efbc13b33058131f2bf06808400000000f8c9b8416c655a4538833a620baedb17b80f37f1bdcfef905df10d30a610dcafe24a9d0e64215ad7bd721bca3d76c0258a1127767544764e5246119c28cb88919036a9be00b841e1335edf8fec8fbae9bdd5f8c991a23eab9d5887d2fffb850bb6a7696054ec307fa82ff2cd6438307e9a6ef0624c90b3fb32ed7305aaf81556e85edde1991ea000b841f5b016a392c75c641716751981251ef1009b13770412eed10f77dc906419eb8b4b3a074955aa6806f2a98e667efdb27162d38dddb49362a1c63ec1be395ecc2301",
"size": 846,
"gasLimit": 225280000,
"gasUsed": 0,
"timestamp": 1645062638,
"transactions": [],
"uncles": [],
"baseFeePerGas": 0
},
"status": "0000"
}
Request
http://IP:PORT/bc/eth/block/10
Response
{
"PROPOSAL_TYPE": "ethereum",
"rawData": {
"number": 21854622,
"hash": "0xef8b2ca9f52dc9ee27f14844307a37bfed995f33067f6d7ce52f2f1ac6ab1fc3",
"parentHash": "0x79586eb6ba426376b2a6d73e701e862c624b2797fd3a50ca82e675063bb44c8f",
"nonce": 0,
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"stateRoot": "0x3233bfc7b31e3fb89f5b7f178b772588fcb544ec8380038278dbe731f69d9299",
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"miner": "0x1a90ae455bb0a6105983c8bfc7a3f4c92e9f59af",
"mixHash": "0x63746963616c2062797a616e74696e65206661756c7420746f6c6572616e6365",
"difficulty": 1,
"totalDifficulty": 21854623,
"extraData": "0xf90148a00000000000000000000000000000000000000000000000000000000000000000f854941a90ae455bb0a6105983c8bfc7a3f4c92e9f59af94567065cc0805bcf00468d09568262155cee7899094b96fc92798d4790866c427d3b47f32f816f560be94bc0693c8950f5d555a3efbc13b33058131f2bf06808400000000f8c9b8416c655a4538833a620baedb17b80f37f1bdcfef905df10d30a610dcafe24a9d0e64215ad7bd721bca3d76c0258a1127767544764e5246119c28cb88919036a9be00b841e1335edf8fec8fbae9bdd5f8c991a23eab9d5887d2fffb850bb6a7696054ec307fa82ff2cd6438307e9a6ef0624c90b3fb32ed7305aaf81556e85edde1991ea000b841f5b016a392c75c641716751981251ef1009b13770412eed10f77dc906419eb8b4b3a074955aa6806f2a98e667efdb27162d38dddb49362a1c63ec1be395ecc2301",
"size": 846,
"gasLimit": 225280000,
"gasUsed": 0,
"timestamp": 1645062638,
"transactions": [],
"uncles": [],
"baseFeePerGas": 0
},
"status": "0000"
}
Request
curl -X PATCH 'http://IP:PORT/bc/eth/abi-file' -F 'file=@"./some.json"'
Response
"Smart Contract ABI Files Update Success"
Request
curl -X GET http://IP:PORT/bc/eth/abi-files/init
Response
"Smart Contract ABI Files Reload Success"
Request
{
"header": {
"Authorization": "Basic Q0FTQ1NNQkpTQlFNWlgzQkFNWklOREdWOjQyMGQxNGQ0LTg3MDItNDQxYy04ZjU5LWQxNDgxZDVjZTc4OA=="
},
"endPointUrl": "https://iam.chainz.biz/auth/realms/chainz/protocol/openid-connect/token",
"body": "grant_type=client_credentials",
"methodType": "POST"
}
Response
{
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjVmNHbWdGa3drdDI0blRvQlcxOVZLbjlMNU12WmJVdFJfeUptdkg0RVNRIn0.eyJleHAiOjE2NDgwMTk4MTUsImlhdCI6MTY0ODAxOTIxNSwianRpIjoiNDhkODExNWYtZTM5Ni00YzIyLTkzNTItZjFiNjZjNzdiZjBhIiwiaXNzIjoiaHR0cHM6Ly9pYW0uY2hhaW56LmJpei9hdXRoL3JlYWxtcy9jaGFpbnoiLCJhdWQiOlsib3BlcmEtc2VydmljZSIsInRva2VuLXNlcnZpY2UiXSwic3ViIjoiNjY4OGQ0NGMtYmJhYi00NjI1LWE0ZGQtMGE2MTY3YTZkOGFiIiwidHlwIjoiQmVhcmVyIiwiYXpwIjoiQ0FTQ1NNQkpTQlFNWlgzQkFNWklOREdWIiwiYWNyIjoiMSIsInNjb3BlIjoidHMtc2NvcGUgb3BlcmEtc2NvcGUiLCJjbGllbnRIb3N0IjoiMTAuMTEwLjEwLjIwOCIsImNsaWVudElkIjoiQ0FTQ1NNQkpTQlFNWlgzQkFNWklOREdWIiwicHJvdmlkZXItY29kZSI6IlhCWk4zODg2IiwiY2xpZW50QWRkcmVzcyI6IjEwLjExMC4xMC4yMDgiLCJhdXRob3JpdGllcyI6WyJST0xFX09QRVJBVE9SIiwiUk9MRV9vZmZsaW5lX2FjY2VzcyIsIlJPTEVfUFJPVklERVIiLCJST0xFX1VTRVIiLCJST0xFX3VtYV9hdXRob3JpemF0aW9uIiwiUk9MRV9PUEVSQVRPUiIsIlJPTEVfb2ZmbGluZV9hY2Nlc3MiLCJST0xFX1BST1ZJREVSIiwiUk9MRV9VU0VSIiwiUk9MRV91bWFfYXV0aG9yaXphdGlvbiJdfQ.Ugsh_UBVBXarvYWfrptX2C0ZWCIBBqZa6eqyrIez-bZPWhkzy6FWVoMPzldEjkJuTqxPECHtb7vZRXS2b8XxaI977uiWpWOpzumJp4qDHf-v4VRtcrJdkqT5Tq-S1lXG3Nse-ZOHS3RqtCFLWngeqbUR8EJOxiITxWdHmLzc-jTbScPBcw77l1kKWR-JZynU6pddmKN9WK8SseRmZJQ810xmyUgri3Ge47VAxeIH2DbGnMWYXIRlKqSqVf23ncM7ukQSvJ37lzkr5gGW5mz8_rhf6buUxMdJCVOKYQA69TaoQz1LAoMiBeHCzkJsyw6F7Jwby3DOShqN9f2qjKgXog",
"expires_in": 600,
"refresh_expires_in": 0,
"token_type": "Bearer",
"not-before-policy": 0,
"scope": "ts-scope opera-scope"
}