Request
{
"PROPOSAL_TYPE": "aergo",
"rawData": 0,
"funcName": "selectCandidate",
"smartContract": "AmgPfpYHXS4cgSYwEpKqBHpS9Sj1N7GBm61kwCn4BMuEmZoPzjzk",
"walletAddress": "AmLoAnTUdEuchCv96qFAsgBJYUsULtZbYeWvwx5QAo5eGsGd7g7A"
}
Response
{
"PROPOSAL_TYPE": "aergo",
"rawData": {
"age": 31,
"ballotBox": 0,
"name": "lee",
"sex": "M"
},
"status": "0000",
"funcName": "selectCandidate",
"smartContract": "AmgPfpYHXS4cgSYwEpKqBHpS9Sj1N7GBm61kwCn4BMuEmZoPzjzk"
}
Request
{
"PROPOSAL_TYPE": "aergo",
"rawData": {
"name": "entob",
"age": "24",
"sex": "M"
},
"funcName": "registerCandidate",
"smartContract": "AmgPfpYHXS4cgSYwEpKqBHpS9Sj1N7GBm61kwCn4BMuEmZoPzjzk",
"walletAddress": "AmLoAnTUdEuchCv96qFAsgBJYUsULtZbYeWvwx5QAo5eGsGd7g7A"
}
Response
{
"PROPOSAL_TYPE": "aergo",
"rawData": "FRX3P6aBtErn7vR1kXJpu34nYLNPTCJacaiibQR18TBM",
"status": "0000",
"funcName": "registerCandidate",
"smartContract": "AmgPfpYHXS4cgSYwEpKqBHpS9Sj1N7GBm61kwCn4BMuEmZoPzjzk"
}
Request
{
"PROPOSAL_TYPE": "aergo",
"rawData": "c51d6d912b6c683d5bf8564d77a9f0da6d1d1934d5f60130b443c0f2037a1393",
"walletAddress": "AmNCibxHjNehdz9fsyQuhpHPwMkfSxVEdvhQdPixeYKbNXkupaQZ"
}
Response
{
"PROPOSAL_TYPE": "aergo",
"rawData": {
"rawTransaction": {
"chainIdHash": "2u9Aw9x6ubbx8V8QssLaaJzbiNRtmh2ohzwfdixa3cBb",
"sender": "AmNCibxHjNehdz9fsyQuhpHPwMkfSxVEdvhQdPixeYKbNXkupaQZ",
"recipient": "AmNCibxHjNehdz9fsyQuhpHPwMkfSxVEdvhQdPixeYKbNXkupaQZ",
"amount": 0,
"nonce": 3,
"fee": {
"limit": 0
},
"payload": "c51d6d912b6c683d5bf8564d77a9f0da6d1d1934d5f60130b443c0f2037a1393",
"txType": "TRANSFER"
},
"signature": {
"sign": "AN1rKvtP9gUHFXn68dF7G15aLmPRvfW3NQfSw3EKcRkjjweXQ1K9wFP1CY6tLrEQcZbvQGitGcqzKSYv8A3bV1hYNvJobKNvQ"
},
"hash": "F32ZUa3bCXgUoeRivmN3BY9PfBN7wY6PZ889rqNVwbd8",
"blockHash": "F7X43QojNy9xLyx4raXTrd9wrWMoC14A8wYaGvYvKk8C",
"indexInBlock": 0,
"confirmed": true
},
"status": "0000"
}
Request
http://IP:PORT/bc/aergo/tx/receipt/0x083bf2e9132dea9da13fc558ccfc303c03565ef955dfb8a011a2c2957faef086
Response
{
"PROPOSAL_TYPE": "aergo",
"rawData": {
"accountAddress": "AmgPfpYHXS4cgSYwEpKqBHpS9Sj1N7GBm61kwCn4BMuEmZoPzjzk",
"status": "SUCCESS",
"result": "1",
"txHash": "3vMYfcDN3RcM3SpmyscZsPB51YZ8z8rTCCRmaWiS3z99",
"feeUsed": 0,
"blockNumber": 27203064,
"blockHash": "2MC4Vis1eq1KYYm3VdeMcM1bwwQE48esYrJ98CJKiMdX",
"indexInBlock": 0,
"sender": "AmLoAnTUdEuchCv96qFAsgBJYUsULtZbYeWvwx5QAo5eGsGd7g7A",
"recipient": "AmgPfpYHXS4cgSYwEpKqBHpS9Sj1N7GBm61kwCn4BMuEmZoPzjzk",
"feeDelegation": false,
"gasUsed": 0
},
"status": "0000"
}
Request
Response
{
"PROPOSAL_TYPE": "aergo",
"rawData": "AmMoV6tYjqumjLn6Edu5h4BP9iCkYBkr99eJmaNWc7SBTU8W7NaB",
"status": "0000"
}
사용 가능한 버전 1.3.2이상
Request
http://IP:PORT/bc/aergo/wallet/AmNXywBFYwwkY8vkLGozSyeLmM25ZvB468wkZokmof4CqZuD9DEc/nonce
Response
{
"PROPOSAL_TYPE": "aergo",
"rawData": 2
}
Request
http://IP:PORT/bc/aergo/tx/info/3vMYfcDN3RcM3SpmyscZsPB51YZ8z8rTCCRmaWiS3z99
Response
{
"PROPOSAL_TYPE": "aergo",
"rawData": {
"rawTransaction": {
"chainIdHash": "2u9Aw9x6ubbx8V8QssLaaJzbiNRtmh2ohzwfdixa3cBb",
"sender": "AmLoAnTUdEuchCv96qFAsgBJYUsULtZbYeWvwx5QAo5eGsGd7g7A",
"recipient": "AmgPfpYHXS4cgSYwEpKqBHpS9Sj1N7GBm61kwCn4BMuEmZoPzjzk",
"nonce": 1,
"fee": {
"limit": 0
},
"payload": {
"Args": ["uracle", "51", "M"],
"Name": "registerCandidate"
},
"txType": "CALL"
},
"signature": {
"sign": "AN1rKvt91E93EY1uvHYfMqzz2hLpZHbTnQjSWWRHPGrUpJqqS6TGwNXHsmx3YGeb3UaFoge1e24nryBm1US3fnJEPyxm19U6d"
},
"hash": "3vMYfcDN3RcM3SpmyscZsPB51YZ8z8rTCCRmaWiS3z99",
"blockHash": "2MC4Vis1eq1KYYm3VdeMcM1bwwQE48esYrJ98CJKiMdX",
"indexInBlock": 0,
"confirmed": true
},
"status": "0000"
}
Request
http://IP:PORT/bc/aergo/block/hash/2MC4Vis1eq1KYYm3VdeMcM1bwwQE48esYrJ98CJKiMdX
Response
{
"PROPOSAL_TYPE": "aergo",
"rawData": {
"hash": "2MC4Vis1eq1KYYm3VdeMcM1bwwQE48esYrJ98CJKiMdX",
"blockHeader": {
"chainId": "ogCyDbajCP9iHrQwSo2kgfVubmUjU6rAF",
"previousHash": "GvpyD16mA7Qn3xeXtgVzagNET7XLK4PAZ9iYMrRMPvBk",
"blockNumber": 27203064,
"timestamp": 1653451995997776012,
"rootHash": "njqfDAKWrrwccdk9MbjSVENJyReu4SryJixTJTqsHx1",
"txRootHash": "3vMYfcDN3RcM3SpmyscZsPB51YZ8z8rTCCRmaWiS3z99",
"receiptRootHash": "BAQCKsfwWFZNspSTZ5pnK9wf7HRKhCPsij84xy5N4sfo",
"confirmsCount": 0,
"publicKey": "GZsJqUv9MUPQNNetSzQyzijoSe3qWrHgWMoi3mWgnKEgpd69mj",
"coinbaseAccount": "AmPE5jckJuR5DHSE7aRmHf7nfaN5xcH8T3cdw3g7wBaPdWfW6vnG",
"sign": {
"sign": "381yXZ9c8fuJ1dXAZaFth3J4rCHuH3uuCZ9Y4pJoekjk65Fv92nXrLNBimXD5QCV8r9Cu1Cw8eDSWJuqieqcGKvVM3bYr25k"
}
},
"transactions": [{
"rawTransaction": {
"chainIdHash": "2u9Aw9x6ubbx8V8QssLaaJzbiNRtmh2ohzwfdixa3cBb",
"sender": "AmLoAnTUdEuchCv96qFAsgBJYUsULtZbYeWvwx5QAo5eGsGd7g7A",
"recipient": "AmgPfpYHXS4cgSYwEpKqBHpS9Sj1N7GBm61kwCn4BMuEmZoPzjzk",
"nonce": 1,
"fee": {
"limit": 0
},
"payload": {
"Args": ["uracle", "51", "M"],
"Name": "registerCandidate"
},
"txType": "CALL"
},
"signature": {
"sign": "AN1rKvt91E93EY1uvHYfMqzz2hLpZHbTnQjSWWRHPGrUpJqqS6TGwNXHsmx3YGeb3UaFoge1e24nryBm1US3fnJEPyxm19U6d"
},
"hash": "3vMYfcDN3RcM3SpmyscZsPB51YZ8z8rTCCRmaWiS3z99",
"blockHash": "2MC4Vis1eq1KYYm3VdeMcM1bwwQE48esYrJ98CJKiMdX",
"indexInBlock": 0,
"confirmed": true
}]
},
"status": "0000"
}
Request
http://IP:PORT/bc/aergo/block/27203064
Response
{
"PROPOSAL_TYPE": "aergo",
"rawData": {
"hash": "2MC4Vis1eq1KYYm3VdeMcM1bwwQE48esYrJ98CJKiMdX",
"blockHeader": {
"chainId": "ogCyDbajCP9iHrQwSo2kgfVubmUjU6rAF",
"previousHash": "GvpyD16mA7Qn3xeXtgVzagNET7XLK4PAZ9iYMrRMPvBk",
"blockNumber": 27203064,
"timestamp": 1653451995997776012,
"rootHash": "njqfDAKWrrwccdk9MbjSVENJyReu4SryJixTJTqsHx1",
"txRootHash": "3vMYfcDN3RcM3SpmyscZsPB51YZ8z8rTCCRmaWiS3z99",
"receiptRootHash": "BAQCKsfwWFZNspSTZ5pnK9wf7HRKhCPsij84xy5N4sfo",
"confirmsCount": 0,
"publicKey": "GZsJqUv9MUPQNNetSzQyzijoSe3qWrHgWMoi3mWgnKEgpd69mj",
"coinbaseAccount": "AmPE5jckJuR5DHSE7aRmHf7nfaN5xcH8T3cdw3g7wBaPdWfW6vnG",
"sign": {
"sign": "381yXZ9c8fuJ1dXAZaFth3J4rCHuH3uuCZ9Y4pJoekjk65Fv92nXrLNBimXD5QCV8r9Cu1Cw8eDSWJuqieqcGKvVM3bYr25k"
}
},
"transactions": [{
"rawTransaction": {
"chainIdHash": "2u9Aw9x6ubbx8V8QssLaaJzbiNRtmh2ohzwfdixa3cBb",
"sender": "AmLoAnTUdEuchCv96qFAsgBJYUsULtZbYeWvwx5QAo5eGsGd7g7A",
"recipient": "AmgPfpYHXS4cgSYwEpKqBHpS9Sj1N7GBm61kwCn4BMuEmZoPzjzk",
"nonce": 1,
"fee": {
"limit": 0
},
"payload": {
"Args": ["uracle", "51", "M"],
"Name": "registerCandidate"
},
"txType": "CALL"
},
"signature": {
"sign": "AN1rKvt91E93EY1uvHYfMqzz2hLpZHbTnQjSWWRHPGrUpJqqS6TGwNXHsmx3YGeb3UaFoge1e24nryBm1US3fnJEPyxm19U6d"
},
"hash": "3vMYfcDN3RcM3SpmyscZsPB51YZ8z8rTCCRmaWiS3z99",
"blockHash": "2MC4Vis1eq1KYYm3VdeMcM1bwwQE48esYrJ98CJKiMdX",
"indexInBlock": 0,
"confirmed": true
}]
},
"status": "0000"
}
Request
http://IP:PORT/bc/aergo/block/meta/hash/2MC4Vis1eq1KYYm3VdeMcM1bwwQE48esYrJ98CJKiMdX
Response
{
"PROPOSAL_TYPE": "aergo",
"rawData": {
"blockHash": "2MC4Vis1eq1KYYm3VdeMcM1bwwQE48esYrJ98CJKiMdX",
"blockHeader": {
"chainId": "ogCyDbajCP9iHrQwSo2kgfVubmUjU6rAF",
"previousHash": "GvpyD16mA7Qn3xeXtgVzagNET7XLK4PAZ9iYMrRMPvBk",
"blockNumber": 27203064,
"timestamp": 1653451995997776012,
"rootHash": "njqfDAKWrrwccdk9MbjSVENJyReu4SryJixTJTqsHx1",
"txRootHash": "3vMYfcDN3RcM3SpmyscZsPB51YZ8z8rTCCRmaWiS3z99",
"receiptRootHash": "BAQCKsfwWFZNspSTZ5pnK9wf7HRKhCPsij84xy5N4sfo",
"confirmsCount": 0,
"publicKey": "GZsJqUv9MUPQNNetSzQyzijoSe3qWrHgWMoi3mWgnKEgpd69mj",
"coinbaseAccount": "AmPE5jckJuR5DHSE7aRmHf7nfaN5xcH8T3cdw3g7wBaPdWfW6vnG",
"sign": {
"sign": "381yXZ9c8fuJ1dXAZaFth3J4rCHuH3uuCZ9Y4pJoekjk65Fv92nXrLNBimXD5QCV8r9Cu1Cw8eDSWJuqieqcGKvVM3bYr25k"
}
},
"txCount": 1,
"blockSize": 642
},
"status": "0000"
}
Request
http://IP:PORT/bc/aergo/block/meta/27203064
Response
{
"PROPOSAL_TYPE": "aergo",
"rawData": {
"hash": "2MC4Vis1eq1KYYm3VdeMcM1bwwQE48esYrJ98CJKiMdX",
"blockHeader": {
"chainId": "ogCyDbajCP9iHrQwSo2kgfVubmUjU6rAF",
"previousHash": "GvpyD16mA7Qn3xeXtgVzagNET7XLK4PAZ9iYMrRMPvBk",
"blockNumber": 27203064,
"timestamp": 1653451995997776012,
"rootHash": "njqfDAKWrrwccdk9MbjSVENJyReu4SryJixTJTqsHx1",
"txRootHash": "3vMYfcDN3RcM3SpmyscZsPB51YZ8z8rTCCRmaWiS3z99",
"receiptRootHash": "BAQCKsfwWFZNspSTZ5pnK9wf7HRKhCPsij84xy5N4sfo",
"confirmsCount": 0,
"publicKey": "GZsJqUv9MUPQNNetSzQyzijoSe3qWrHgWMoi3mWgnKEgpd69mj",
"coinbaseAccount": "AmPE5jckJuR5DHSE7aRmHf7nfaN5xcH8T3cdw3g7wBaPdWfW6vnG",
"sign": {
"sign": "381yXZ9c8fuJ1dXAZaFth3J4rCHuH3uuCZ9Y4pJoekjk65Fv92nXrLNBimXD5QCV8r9Cu1Cw8eDSWJuqieqcGKvVM3bYr25k"
}
},
"transactions": [{
"rawTransaction": {
"chainIdHash": "2u9Aw9x6ubbx8V8QssLaaJzbiNRtmh2ohzwfdixa3cBb",
"sender": "AmLoAnTUdEuchCv96qFAsgBJYUsULtZbYeWvwx5QAo5eGsGd7g7A",
"recipient": "AmgPfpYHXS4cgSYwEpKqBHpS9Sj1N7GBm61kwCn4BMuEmZoPzjzk",
"nonce": 1,
"fee": {
"limit": 0
},
"payload": {
"Args": ["uracle", "51", "M"],
"Name": "registerCandidate"
},
"txType": "CALL"
},
"signature": {
"sign": "AN1rKvt91E93EY1uvHYfMqzz2hLpZHbTnQjSWWRHPGrUpJqqS6TGwNXHsmx3YGeb3UaFoge1e24nryBm1US3fnJEPyxm19U6d"
},
"hash": "3vMYfcDN3RcM3SpmyscZsPB51YZ8z8rTCCRmaWiS3z99",
"blockHash": "2MC4Vis1eq1KYYm3VdeMcM1bwwQE48esYrJ98CJKiMdX",
"indexInBlock": 0,
"confirmed": true
}]
},
"status": "0000"
}