API Documentation

Base URL: https://mzeroscanserver-production.up.railway.app/

How to send request using ReactJs/axios:

import axios from 'axios'; const API_KEY = 'your_api_key_here'; // Replace with your actual API key axios.get('https://yourapi.com/endpoint', { headers: { 'x-api-key': API_KEY // Use the appropriate header name as required by your API } }) .then(response => { // Handle the response console.log(response.data); }) .catch(error => { // Handle the error console.error('There was an error!', error); });

Get All Tokenizations

GET /api/getalltokenizations

Retrieves all tokenization data.

Example Response

[ { "_id": "65d3790c08fd801f8fec24ae", "date": 1708357895000, "tokenId": 35593857393, "from": "0x67d8f4d9685221026F8617A0bd5A1f989D71333C", "to": "0x57eF4d9b66d53094E1ef64eB65A632D4842dd015", "chain": "eth", "txhash": "0xae111e6b4b24d8575513b8d71b28f93b894270a6da2a174e1d2eea8b67fa159b" }, { "_id": "65d369be5253db2cd42e585d", "date": 1708357895000, "tokenId": 35593857393, "from": "0x67d8f4d9685221026F8617A0bd5A1f989D71333C", "to": "0x57eF4d9b66d53094E1ef64eB65A632D4842dd015", "chain": "eth", "txhash": "0xae111e6b4b24d8575513b8d71b28f93b894270a6da2a174e1d2eea8b67fa159b" }, { "_id": "65d3790ebde0ce620457fe63", "date": 1708357895000, "tokenId": 35593857393, "from": "0x67d8f4d9685221026F8617A0bd5A1f989D71333C", "to": "0x57eF4d9b66d53094E1ef64eB65A632D4842dd015", "chain": "eth", "txhash": "0xae111e6b4b24d8575513b8d71b28f93b894270a6da2a174e1d2eea8b67fa159b" } ]

Get All Transfers

GET /api/getalltransfers

Fetches all transfer records.

Example Response

[
{ "_id": 35625199673, "date": 1707588635000, "mintedBy": "0x95AACB6A64b578fd887471353AdBDC68EB2A11fC", "chain": "eth", "txhash": "0xa532c5fa7a174f9f7351e21d311350ae6177f2fc9287f588ed280d06e6dbe140" },
{ "_id": 35620752452, "date": 1707097307000, "mintedBy": "0x4e391e7775a52E96ec8fFA82Ec8F1F9687F570D4", "chain": "eth", "txhash": "0x3bd1d05e72d23450cfd475b4973b031d04b961b960117292685f183206653ecd" },
{ "_id": 35621307831, "date": 1707097307000, "mintedBy": "0x4e391e7775a52E96ec8fFA82Ec8F1F9687F570D4", "chain": "eth", "txhash": "0x3bd1d05e72d23450cfd475b4973b031d04b961b960117292685f183206653ecd" }
]

Get All Transfers By Hash

GET /api/getalltransfersbyhash/:hash

Fetches all transfer records by Transaction Hash.

Example Response

{ "_id": "65c7abf372573639caf3be98", "date": 1706926199000, "tokenId": 35620264496, "from": "0x0000000000000000000000000000000000000000", "to": "0x88121d1196bc3C3eA18c763D8944192a5ECA59Fa", "chain": "eth", "txhash": "0x3dca8a18c678b4ea8c9964f6e53b00a4e1073d7e1f4dad170dbc5dd3f8488eea" }

Get All Transfers by Address

GET /api/getalltransferbyaddress/:address

Fetches all transfer records for an address.

Example Response

[ { "_id": "65c7be626ad870f68b7b38f7", "date": 1707589218000, "tokenId": 35625199673, "from": "0x0000000000000000000000000000000000000000", "to": "0x95AACB6A64b578fd887471353AdBDC68EB2A11fC", "chain": "polygon", "txhash": "0x02d9cd896c9a8051a14c61efe7d5b9b83dea3b1c38e7298e7f70bea9b5aa0d00" }, { "_id": "65c7bd4f89b19285d85eaa99", "date": 1707588935000, "tokenId": 35625199673, "from": "0x95AACB6A64b578fd887471353AdBDC68EB2A11fC", "to": "0x0000000000000000000000000000000000000000", "chain": "eth", "txhash": "0x0ba331d86f201c3cf2d0c492df28ec8152c3d87a30defcccd9aa39c5fde3eade" }
]

Get All Bridge Transaction

GET /api/getallbridgetxs

Fetches all bridge records.

Example Response

[ { "_id": "0x0ba331d86f201c3cf2d0c492df28ec8152c3d87a30defcccd9aa39c5fde3eade", "srcUaAddress": "0x40909204bf1d4ff728700bddd927dffd85252d87", "dstUaAddress": "0x40909204bf1d4ff728700bddd927dffd85252d87", "updated": 1707589351, "created": 1707588975, "srcChainId": 30101, "dstChainId": 30109, "dstTxHash": "0x02d9cd896c9a8051a14c61efe7d5b9b83dea3b1c38e7298e7f70bea9b5aa0d00", "srcTxHash": "0x0ba331d86f201c3cf2d0c492df28ec8152c3d87a30defcccd9aa39c5fde3eade", "srcBlockHash": "0xd75769f340caf080457086f5bb20b5c3822adf653fa3fa8fff3f0859f72e339d", "srcBlockNumber": "19199419", "srcUaNonce": 1, "status": "DELIVERED" }
]

Get All Bridge Transactions By Hash

GET /api/getbridgetx/:txhash

Fetches bridge record for a transaction hash.

Example Response

[ { "srcUaAddress": "0x40909204bf1d4ff728700bddd927dffd85252d87", "dstUaAddress": "0x40909204bf1d4ff728700bddd927dffd85252d87", "updated": 1707589351, "created": 1707588975, "srcChainId": 30101, "dstChainId": 30109, "dstTxHash": "0x02d9cd896c9a8051a14c61efe7d5b9b83dea3b1c38e7298e7f70bea9b5aa0d00", "srcTxHash": "0x0ba331d86f201c3cf2d0c492df28ec8152c3d87a30defcccd9aa39c5fde3eade", "srcBlockHash": "0xd75769f340caf080457086f5bb20b5c3822adf653fa3fa8fff3f0859f72e339d", "srcBlockNumber": "19199419", "srcUaNonce": 1, "status": "DELIVERED" }
]