Request
{
"clientName": "Uracle"
}
Response
{
"clientId": "ymmyntm4mzctntaxyi0zngq5lwe2mgutnzvin2iwnjzkntc3",
"clientSecret": "7d52a876-ee4f-37c0-b41e-a775941a0fd5",
"clientName": "Uracle",
"authorization": "eW1teW50bTRtemN0bnRheHlpMHpuZ3E1bHdlMm1ndXRuenZpbjJpd25qemtudGMzOjdkNTJhODc2LWVlNGYtMzdjMC1iNDFlLWE3NzU5NDFhMGZkNQ==",
"tokenType": "Basic"
}
Request
http://IP:PORT/api/v1/oauth/clients/Uracle
Response
{
"clientId": "ymmyntm4mzctntaxyi0zngq5lwe2mgutnzvin2iwnjzkntc3",
"clientSecret": "7d52a876-ee4f-37c0-b41e-a775941a0fd5",
"clientName": "Uracle",
"authorization": "eW1teW50bTRtemN0bnRheHlpMHpuZ3E1bHdlMm1ndXRuenZpbjJpd25qemtudGMzOjdkNTJhODc2LWVlNGYtMzdjMC1iNDFlLWE3NzU5NDFhMGZkNQ==",
"tokenType": "Basic"
}
Headers
Request
Response
{
"scope": "profile",
"token_type": "Bearer",
"expires_in": "86399",
"access_token": "eyJraWQiOiJkNGQwN2M1NC03OGVjLTQyNWYtODFiMy1iN2M1YmJjMDZjNWIiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJ5bW15bnRtNG16Y3RudGF4eWkwem5ncTVsd2UybWd1dG56dmluMml3bmp6a250YzMiLCJhdWQiOiJ5bW15bnRtNG16Y3RudGF4eWkwem5ncTVsd2UybWd1dG56dmluMml3bmp6a250YzMiLCJuYmYiOjE2NTY0MDYxMjAsInNjb3BlIjpbInByb2ZpbGUiXSwiaXNzIjoiaHR0cDpcL1wvbG9jYWxob3N0Ojk3ODAiLCJleHAiOjE2NTY0OTI1MjAsImlhdCI6MTY1NjQwNjEyMH0.nE_9Mg32CJSurKiwA1G6yRV8guKGyIkBvytPdla0dsQN7G4F7MBhzD8cGzGwA88u9epyPhT3oD3DAK1o9nx4XNnlLOoFC-da93pSPox8tyN5ezDOz9Fzm9BfuqT9YHpHmmRbzmwDl8-_q5J6fs0T2F_Dgds25qAN2_Wd2Re88tAd5l7ypPinRcxLzGfBY_DcBYARimwp8pA_Bqm00S_dK1i-g8ssaqNgIpmIvWIJyxdRiIxSaPeVHlgekwrdGu7QxOEgle6XyYQQvnd_vZvU2kr-c7hkzimq4Vrm1YVwI4usofsyzFmzrmTzTUN_SZPv8KLC061axBQJUNwWreINCQ"
}
Headers
Request
{
"rawData": 0,
"funcName": "selectCandidate",
"smartContract": "AmgiRx44b2meBtZoKjPR2WT1Bn5jzU41SqNpH5Xz4obTDYvu5yDa",
"walletAddress": "AmPiwE81hwBB1HzfDMJysGi5nhK4qE6iGiyJyYuyBDUimyMYRxXB"
}
Response
{
"rawData": {
"age": "31",
"ballotBox": 0,
"name": "Uracle",
"sex": "M"
}
}
Headers
Request
{
"rawData": {
"name": "Uracle",
"age": "31",
"sex": "M"
},
"funcName": "registerCandidate",
"smartContract": "AmgiRx44b2meBtZoKjPR2WT1Bn5jzU41SqNpH5Xz4obTDYvu5yDa",
"walletAddress": "AmPiwE81hwBB1HzfDMJysGi5nhK4qE6iGiyJyYuyBDUimyMYRxXB"
}
Response
{
"rawData": "BxMJ6grvU3ZKszrGf5LKvFxhV3LLfKQCArapgQY8yfge"
}
Headers
Request
{
"rawData": {
"name": "Uracle",
"age": "31",
"sex": "M"
},
"walletAddress": "AmPiwE81hwBB1HzfDMJysGi5nhK4qE6iGiyJyYuyBDUimyMYRxXB"
}
Response
{
"rawData": "BxMJ6grvU3ZKszrGf5LKvFxhV3LLfKQCArapgQY8yfge"
}
Headers
Request
http://IP:PORT/bc/aergo/tx/receipt/BxMJ6grvU3ZKszrGf5LKvFxhV3LLfKQCArapgQY8yfge
Response
{
"rawTransaction": {
"chainIdHash": "2u9Aw9x6ubbx8V8QssLaaJzbiNRtmh2ohzwfdixa3cBb",
"sender": "AmPiwE81hwBB1HzfDMJysGi5nhK4qE6iGiyJyYuyBDUimyMYRxXB",
"recipient": "AmgiRx44b2meBtZoKjPR2WT1Bn5jzU41SqNpH5Xz4obTDYvu5yDa",
"nonce": 1,
"fee": {},
"payload": {
"Args": ["Uracle", "31", "M"],
"Name": "registerCandidate"
},
"txType": "CALL"
},
"signature": {},
"hash": "BxMJ6grvU3ZKszrGf5LKvFxhV3LLfKQCArapgQY8yfge",
"blockHash": "2bjYUe8R26CJXbgAsFrSJzSZ7UdeiY28S1LB4q1xXS4h",
"indexInBlock": 0,
"confirmed": true
}
Headers
Request
Response
{
"rawData": "AmMRfgZQUXBMtPRHdReXXHnn2TbXHXsxRwmB7kHXaBh2hTdx26wf"
}
Request
http://IP:PORT/bc/aergo/wallet/AmNXywBFYwwkY8vkLGozSyeLmM25ZvB468wkZokmof4CqZuD9DEc/nonce
Response
{
"rawData": 2
}
Headers
Request
http://IP:PORT/bc/aergo/tx/info/BxMJ6grvU3ZKszrGf5LKvFxhV3LLfKQCArapgQY8yfge
Response
{
"rawData": {
"rawTransaction": {
"chainIdHash": "2u9Aw9x6ubbx8V8QssLaaJzbiNRtmh2ohzwfdixa3cBb",
"sender": "AmPiwE81hwBB1HzfDMJysGi5nhK4qE6iGiyJyYuyBDUimyMYRxXB",
"recipient": "AmgiRx44b2meBtZoKjPR2WT1Bn5jzU41SqNpH5Xz4obTDYvu5yDa",
"nonce": 1,
"fee": {},
"payload": {
"Args": ["Uracle", "31", "M"],
"Name": "registerCandidate"
},
"txType": "CALL"
},
"signature": {},
"hash": "BxMJ6grvU3ZKszrGf5LKvFxhV3LLfKQCArapgQY8yfge",
"blockHash": "2bjYUe8R26CJXbgAsFrSJzSZ7UdeiY28S1LB4q1xXS4h",
"indexInBlock": 0,
"confirmed": true
}
}
Headers
Request
http://IP:PORT/bc/aergo/block/hash/2bjYUe8R26CJXbgAsFrSJzSZ7UdeiY28S1LB4q1xXS4h
Response
{
"rawData": {
"hash": "2bjYUe8R26CJXbgAsFrSJzSZ7UdeiY28S1LB4q1xXS4h",
"blockHeader": {},
"transactions": [{
"rawTransaction": {
"chainIdHash": "2u9Aw9x6ubbx8V8QssLaaJzbiNRtmh2ohzwfdixa3cBb",
"sender": "AmPiwE81hwBB1HzfDMJysGi5nhK4qE6iGiyJyYuyBDUimyMYRxXB",
"recipient": "AmgiRx44b2meBtZoKjPR2WT1Bn5jzU41SqNpH5Xz4obTDYvu5yDa",
"nonce": 1,
"fee": {},
"payload": {
"Args": ["Uracle", "31", "M"],
"Name": "registerCandidate"
},
"txType": "CALL"
},
"signature": {},
"hash": "BxMJ6grvU3ZKszrGf5LKvFxhV3LLfKQCArapgQY8yfge",
"blockHash": "2bjYUe8R26CJXbgAsFrSJzSZ7UdeiY28S1LB4q1xXS4h",
"indexInBlock": 0,
"confirmed": true
}]
}
}
Headers
Request
http://IP:PORT/bc/aergo/block/30218782
Response
{
"rawData": {
"hash": "2bjYUe8R26CJXbgAsFrSJzSZ7UdeiY28S1LB4q1xXS4h",
"blockHeader": {},
"transactions": [{
"rawTransaction": {
"chainIdHash": "2u9Aw9x6ubbx8V8QssLaaJzbiNRtmh2ohzwfdixa3cBb",
"sender": "AmPiwE81hwBB1HzfDMJysGi5nhK4qE6iGiyJyYuyBDUimyMYRxXB",
"recipient": "AmgiRx44b2meBtZoKjPR2WT1Bn5jzU41SqNpH5Xz4obTDYvu5yDa",
"nonce": 1,
"fee": {},
"payload": {
"Args": ["Uracle", "31", "M"],
"Name": "registerCandidate"
},
"txType": "CALL"
},
"signature": {},
"hash": "BxMJ6grvU3ZKszrGf5LKvFxhV3LLfKQCArapgQY8yfge",
"blockHash": "2bjYUe8R26CJXbgAsFrSJzSZ7UdeiY28S1LB4q1xXS4h",
"indexInBlock": 0,
"confirmed": true
}]
}
}
Headers
Request
http://IP:PORT/bc/aergo/block/meta/hash/2MC4Vis1eq1KYYm3VdeMcM1bwwQE48esYrJ98CJKiMdX
Response
{
"rawData": {
"blockHash": "2bjYUe8R26CJXbgAsFrSJzSZ7UdeiY28S1LB4q1xXS4h",
"blockHeader": {
"chainId": "ogCyDbajCP9iHrQwSo2kgfVubmUjU6rAF",
"previousHash": "AC7SVr7CcKC85H84hTLMUWpxTEzmcqppEfnriLMSiBXw",
"blockNumber": 30218782,
"timestamp": 1656468668402173847,
"rootHash": "AH2B7RGGCsGkCiZUF58LkvdJWftx9pU43Px4qDd1YT3b",
"txRootHash": "BxMJ6grvU3ZKszrGf5LKvFxhV3LLfKQCArapgQY8yfge",
"receiptRootHash": "9Z84fmmEVUVi2WZDwKzXizMbnQNbDwGUFbgk7bfwbzjs",
"confirmsCount": 0,
"publicKey": "GZsJqUv9MUPQNNetSzQyzijoSe3qWrHgWMoi3mWgnKEgpd69mj",
"coinbaseAccount": "AmPE5jckJuR5DHSE7aRmHf7nfaN5xcH8T3cdw3g7wBaPdWfW6vnG",
"sign": "381yXYvgMoMnwW2s75dc2weVqGbXuUuPzrKX6mKWHaHGb9p7wHPQP8kyo7CaG9g2TnVMAYcvMNwvKWQNeSxapjRa6WbTvdtq"
},
"txCount": 1,
"blockSize": 642
}
}
Headers
Request
http://IP:PORT/bc/aergo/block/meta/27203064
Response
{
"rawData": {
"blockHash": "2bjYUe8R26CJXbgAsFrSJzSZ7UdeiY28S1LB4q1xXS4h",
"blockHeader": {
"chainId": "ogCyDbajCP9iHrQwSo2kgfVubmUjU6rAF",
"previousHash": "AC7SVr7CcKC85H84hTLMUWpxTEzmcqppEfnriLMSiBXw",
"blockNumber": 30218782,
"timestamp": 1656468668402173847,
"rootHash": "AH2B7RGGCsGkCiZUF58LkvdJWftx9pU43Px4qDd1YT3b",
"txRootHash": "BxMJ6grvU3ZKszrGf5LKvFxhV3LLfKQCArapgQY8yfge",
"receiptRootHash": "9Z84fmmEVUVi2WZDwKzXizMbnQNbDwGUFbgk7bfwbzjs",
"confirmsCount": 0,
"publicKey": "GZsJqUv9MUPQNNetSzQyzijoSe3qWrHgWMoi3mWgnKEgpd69mj",
"coinbaseAccount": "AmPE5jckJuR5DHSE7aRmHf7nfaN5xcH8T3cdw3g7wBaPdWfW6vnG",
"sign": "381yXYvgMoMnwW2s75dc2weVqGbXuUuPzrKX6mKWHaHGb9p7wHPQP8kyo7CaG9g2TnVMAYcvMNwvKWQNeSxapjRa6WbTvdtq"
},
"txCount": 1,
"blockSize": 642
}
}