WEMIX3.0
Search…
Account APIs

POST /accounts/balance

  • HEADER
key
value
required
Content-Type
application/json
true
api-key
api key
true
  • BODY(application/json)
key
type
value
required
addresses
List<String>
Address of account: - min : 1
- max : 20
true

POST https://microscopeapi.test.wemix.com/accounts/balance
api-key: 1ba5e446edf1997f67b51bf9e60b3fbba6fa1bf84301115292805d7e24f43539
Content-Type: application/json
{
"addresses" : [
"0x76C6E4A0a2A141343c370D5d36276DA643B0c829",
"0xcD07A6d6A8DE7CdD3F5E1224eBC3540f70AEC52f"
]
}

key
type
value
status
String
Status of request
message
String
Response Message of request
results
Json
Results of request
results.data
List<Object>
List of data
results.data.address
String
Address of account
results.data.balance
String
Balance of address

{
"status": "200",
"message": "success",
"results": {
"data": [
{
"address": "0x76C6E4A0a2A141343c370D5d36276DA643B0c829",
"balance": "999999999989999999999589997401953799975191356000"
},
{
"address": "0xcD07A6d6A8DE7CdD3F5E1224eBC3540f70AEC52f",
"balance": "10000000000009000000000000000004"
}
]
}
}

GET /accounts/{address_hash}/transactions

  • HEADER
key
value
required
api-key
api key
true
  • PATH VARIABLE
key
type
value
required
address_hash
String
  • Address(sender/receiver/contract)
true
  • QUERY STRING
key
type
value
required
limit
Integer
Maximum number of record will retrieve Default: 50, Max: 1000
false
offset
Integer
Start retrieve record Default: 0
false
startBlock
String
Start block Default: null
false
endBlock
String
End block Default: null
false
input
Boolean
Include input data Default: false
false

GET https://microscopeapi.test.wemix.com/accounts/0x76C6E4A0a2A141343c370D5d36276DA643B0c829/transactions
api-key: 1ba5e446edf1997f67b51bf9e60b3fbba6fa1bf84301115292805d7e24f43539

key
type
value
status
String
Status of request
message
String
Response Message of request
reuslts
Json
Results of request
reuslts.count
String
Total count of data
reuslts.data
List<Object>
List of data
results.data.timestamp
String
UTC time when the transaction occurred
results.data.nonce
String
Number of transaction requests
results.data.sender
String
Address of sender
results.data.receiver
String
Address of receiver
results.data.value
String
Value of transaction
results.data.confirmations
String
Block height
results.data.transaction_hash
String
Hash value of the transaction
results.data.block_hash
String
Hash value of the block
results.data.transaction_index
String
Index of the transaction on the block
results.data.tx_status
String
Status of the transaction: - 0: Failed, - 1: Success
results.data.tx_message
String
Message when executing transaction
results.data.in_tx_status
String
Status of internal transaction. - 0: Failed, - 1: Success
results.data.in_tx_message
String
Message when executing internal transaction
results.data.receiver_extra.logo
String
Contains extra data of token address such as logo
results.data.tx_fee
String
Fee of executing the transaction
results.data.block_number
String
Number of block that contains the transaction
results.data.contract_address
String
Address of contract creation if this is create contract transaction
results.data.gas_limit
String
Limit of gas for executing the transaction
results.data.gas_price
String
Gas price of transaction
results.data.cumulative_gas_used
String
Total amount of gas used when transaction was executed in the block.
results.data.gas_used
String
Total amount of Gas used transactions
results.data.max_fee_per_gas
String
Maximum (priority fee + base fee) limit
results.data.max_priority_fee_per_gas
String
Maximum priority fee limit
results.data.input
String
ABI encoding of transaction data

{
"status": "200",
"message": "success",
"results": {
"count": "1000016",
"data": [
{
"timestamp": "2022-08-25T08:25:38Z",
"nonce": "17",
"sender": "0x88F7b71B92ec8ad6E516cE537e0C7204725FE0e5",
"receiver": "0x76C6E4A0a2A141343c370D5d36276DA643B0c829",
"value": "1",
"confirmations": "2150942",
"transaction_hash": "0x3d9c70aa167999338597f4ed493d98bc45ee6397b7e3aec2a77e1941e221ac73",
"block_hash": "0x88a9835ed66f9dc38d95d30d5d276264aa6eb1aaf19c07823288b54062659b3f",
"transaction_index": "0",
"tx_status": "1",
"tx_message": "",
"in_tx_status": "0",
"in_tx_message": null,
"tx_fee": "2100000000021000",
"block_number": "3363591",
"contract_address": null,
"gas_limit": "21000",
"gas_price": "100000000001",
"cumulative_gas_used": "21000",
"gas_used": "21000",
"max_fee_per_gas": "100000000010",
"max_priority_fee_per_gas": "100000000000",
"input": "0x"
}
]
}
}

GET /accounts/{address_hash}/internal-transactions

  • HEADER
key
value
required
api-key
api key
true
  • PATH VARIABLE
key
type
value
required
address_hash
String
  • Address(sender/receiver/contract)
  • Transaction Address
true
  • QUERY STRING
key
type
value
required
limit
Integer
Maximum number of record will retrieve Default: 50, Max: 1000
false
offset
Integer
Start retrieve record Default: 0
false
startBlock
String
Start block Default: null
false
endBlock
String
End block Default: null
false
input
Boolean
Include input data Default: false
false

GET https://microscopeapi.test.wemix.com/accounts/0xA68A135Ccd37E720000fC30CFcc453b15F8040df/internal-transactions
api-key: 1ba5e446edf1997f67b51bf9e60b3fbba6fa1bf84301115292805d7e24f43539RESPONSE DATA

key
type
value
status
String
Status of request
message
String
Response Message of request
reuslts
Json
Results of request
reuslts.count
String
Total count of data
reuslts.data
List<Object>
List of data
results.data.timestamp
String
UTC time when the transaction occurred
results.data.sender
String
Address of sender
results.data.receiver
String
Address of receiver
results.data.value
String
Value of internal transaction
results.data.status
String
Status of internal transaction - 0 : Failed - 1 : Success
results.data.message
String
Message of internal transaction
results.data.transaction_hash
String
Hash value of the transaction
results.data.block_number
String
Block height
results.data.contract_address
String
Address of contract creation if this is create contract transaction
results.data.trace_address
List<String>
Trace mapping information
results.data.trace_type
String
Type of trace: call, delegatecall, codecall, staticcall, selfdestruct
results.data.sub_traces
String
Number of sub traces from this internal transaction
results.data.transaction_index
String
Index of the transaction on the block
results.data.gas_used
String
Total amount of Gas used transactions
results.data.gas_limit
String
Limit of gas for executing the transaction
results.data.external_receiver
String
Whether external receive has occurred - 0: external transaction exists - 1: external transaction does not exist
results.data.input
String
ABI encoding of transaction data

{
"status": "200",
"message": "success",
"results": {
"count": "6816",
"data": [
{
"timestamp": "2022-07-17T10:47:03Z",
"sender": "0x2F664960a7FBdaDA8e133DbAF1Bfc27DCCBADBfb",
"receiver": "0xA68A135Ccd37E720000fC30CFcc453b15F8040df",
"value": "0",
"status": "1",
"message": "",
"transaction_hash": "0x1a03528eecf165678d7fbcb9ceeee45a98b02f10a5ce30236ef29ee5b3747c84",
"block_number": "2472",
"contract_address": null,
"trace_address": [
"0",
"1",
"1"
],
"trace_type": "staticcall",
"sub_traces": null,
"transaction_index": "0",
"gas_used": "2715",
"gas_limit": "29039032",
"external_receiver": "0",
"input": "0x0d2020dd476f7665726e616e6365436f6e74726163740000000000000000000000000000"
},
...
]
}
}

GET /accounts/{address_hash}/token-transfer

  • HEADER
key
value
required
api-key
api key
true
  • PATH VARIABLE
key
type
value
required
address_hash
String
  • Address(sender/receiver/contract)
  • Transaction Address
true
  • QUERY STRING
key
type
value
required
limit
Integer
Maximum number of record will retrieve Default: 50, Max: 1000
false
offset
Integer
Start retrieve record Default: 0
false
startBlock
String
Start Block Default: null
false
endBlock
String
End Block Default: null
false

GET https://microscopeapi.test.wemix.com/accounts/0x8FC8Bf053a2B9093ffC9BE17D8345ef377eDF4c7/token-transfer
api-key: 1ba5e446edf1997f67b51bf9e60b3fbba6fa1bf84301115292805d7e24f43539

key
type
value
status
String
Status of request
message
String
Message of request
results
Json
Results of request
results.count
String
Total count of data
results.data
List<Object>
List of data
results.data.count
String
Count of data
results.data.nonce
String
Number of transaction requests
results.data.timestamp
String
UTC time when the transaction occurred
results.data.sender
String
Address of sender
results.data.receiver
String
Address of receiver
results.data.value
String
Transfer value
results.data.confirmations
String
Number of block's confirmation
results.data.standard
String
Token Type: - ERC-20 - ERC-721
results.data.block_number
String
Block number
results.data.transaction_hash
String
Hash of transaction
results.data.block_hash
String
Hash of block
results.data.token_address
String
Token creation if this is create token contract address
results.data.token_name
String
Name of token
results.data.token_symbol
String
Symbol of token
results.data.token_decimals
String
Decimals of token
results.data.transaction_index
String
Index of transaction
results.data.gas_limit
String
Gas limit of transaction to be used maximum
results.data.gas_price
String
Gas price of transaction
results.data.gas_used
String
Total amount of Gas used transactions
results.data.cumulative_gas_used
String
Total amount of Gas used transactions

{
"status": "200",
"message": "success",
"results": {
"count": "4",
"data": [
{
"nonce": "13",
"timestamp": "2022-07-21T01:54:50Z",
"sender": "0x5b440A8EB6dA118906d0272Db38124227Fc90450",
"receiver": "0x8FC8Bf053a2B9093ffC9BE17D8345ef377eDF4c7",
"value": "10016000000000000000000",
"confirmations": "5211482",
"standard": "ERC-20",
"block_number": "316140",
"transaction_hash": "0x384190e648adba38f690ddfdbceadf6ba22bdfcb839d84258023d0f054db299e",
"block_hash": "0x5ee7b6764778afe3ea33659446b9268a42c021c070447e396d2b0108a714b381",
"token_address": "0x8bbf83C074C6B4616129A6ADb0e35268E87Fdf15",
"token_name": "TEST GOLD",
"token_symbol": "TGLD",
"token_decimals": "18",
"transaction_index": "313",
"gas_limit": "35311",
"gas_price": "0",
"gas_used": "30511",
"cumulative_gas_used": "6603511"
},
...
]
}
}

GET /accounts/{address_hash}/mined-blocks

  • HEADER
key
value
required
api-key
api key
true
  • PARH VARIABLE
key
type
value
required
address_hash
String
Address of miner
true
  • QUERY STRING
key
type
value
required
limit
Number
Maximum number of record will retrieve Default: 50
false
offset
Number
Start retrieve record Default: 0
false

GET https://microscopeapi.test.wemix.com/accounts/0x53C1cf9e9c8cFBd947168147ECac23461008ed8d/mined-blocks
api-key: 1ba5e446edf1997f67b51bf9e60b3fbba6fa1bf84301115292805d7e24f43539

key
type
value
status
String
Status of request
message
String
Message of request
results
Json
Results of request
results.count
String
Total count of data
results.data
List<Object>
List of data
results.data.timestamp
String
UTC time when the transaction occurred
results.data.miner
String
Address of miner
results.data.reward
String
Reward for miner when mining this block
results.data.block_number
Integer
Block height
results.data.gas_used
BigInteger
Number of used gas
results.data.gas_limit
BigInteger
Number of limit gas
results.data.transaction_count
Integer
Number of transactions in the block
results.data.in_txs_count
Integer
Number of internal transactions in the block
results.data.avg_gas_used
Double
Average used gas for transactions on the block

{
"status": "200",
"message": "success",
"results": {
"count": "138296",
"data": [
{
"timestamp": "2022-08-16T16:07:39Z",
"miner": "0x53C1cf9e9c8cFBd947168147ECac23461008ed8d",
"reward": "1000000000000000000",
"block_number": "2613712",
"gas_used": "0",
"gas_limit": "105000000",
"transaction_count": "0",
"in_txs_count": "0",
"avg_gas_used": "0"
},
...
]
}
}
Copy link
On this page
Get WEMIX Balance for a single address
Get list of transactions by address.
Get "Internal Transactions" by address & Get "Internal Transactions" by transaction hash
Get a list of "ERC20 - Token Transfer Events" by address
Get list of Blocks Mined by address