MoreThanWallet API is a RESTful API that allows you to access the data of the cryptocurrency markets, blockexplorers and your wallets. It is a simple and easy way to integrate your application with the MoreThanWallet platform.
The API runs at https://www.morethanwallet.com/api. All requests should be prefixed by this server URL. Access is provided by the standard RESTful requests. All response data is sent in JSON format.
The API is free and open source.
fetch("https://www.morethanwallet.com/api/market")
.then(response => response.json())
.then(data => console.log(data))
[
{
"Id":"bitcoin",
"Rank":1,
"Symbol":"btc",
"Name":"Bitcoin",
"Price":24459,
"Change":7.29957,
"Volume":46605341035,
"MarketCap":471858479037,
"Image":"https://assets.coingecko.com/coins/images/1/large/bitcoin.png?1547033579",
"Time":"05:39:27 16/10"
},
{
"...": "..."
}
]
fetch("https://www.morethanwallet.com/api/market/bitcoin")
.then(response => response.json())
.then(data => console.log(data))
{
"Id":"bitcoin",
"Symbol":"btc",
"Name":"Bitcoin",
"Image":"https://assets.coingecko.com/coins/images/1/large/bitcoin.png?1547033579",
"Price":23722,
"Change":-987.4673053747429,
"ChangeP":-3.99626,
"High":25230,
"Low":23340,
"Volume":47622460997,
"MarketCap":457329597249,
"Rank":1,
"Time":1676615888847,
"PricePoints":
[
21819.977699772928,
21955.609140971254,
21925.601781942183,
...
]
}
fetch("https://www.morethanwallet.com/api/mtweth/blocks/1")
.then(response => response.json())
.then(data => console.log(data))
{
"cat":"blocks",
"page":1,
"data":
{
"records":30602,
"data":
[
{
"Block":30602,
"Time":"09:21:08 17/02",
"Txn":0,
"Hash":
"0x25b16dcd9829f9cc615782a703af48db30d2c7d21036b28cf940455f5280f796"
},
{
...
}
]
}
}
fetch("https://www.morethanwallet.com/api/mtweth/item/blocks/0x2febf26c313852de2d5bda548b6e53ce4731be3e55032c65c6fb8b20f6d8ba0f")
.then(response => response.json())
.then(data => console.log(data))
{
"baseFeePerGas":"7",
"difficulty":"0",
"extraData":"0x",
"gasLimit":"30000000",
"gasUsed":"21000",
"hash":"0x2febf26c313852de2d5bda548b6e53ce4731be3e55032c65c6fb8b20f6d8ba0f",
"miner":"0xaDE7A3f0522258D2BDD9154A4a5521a822968954",
"nonce":"0x0000000000000000",
"number":14930,
"parentHash":"0xb97fb4348157b4f74d5c04dce07fd5142349782c824ff80af178f59a55077885",
"timestamp":1676304598,
"transactions":
[
"0x1fee75c925425ab6548b32619f10b5aa1d23ebea786c182fed6053ce8f93ecaa"
],
"cat":"block",
"trs":
[
{
"_id":"63ea60e8ffce90c66bfb4a40",
"provider": { },
"blockNumber":14930,
"blockHash":"0x2febf26c313852de2d5bda548b6e53ce4731be3e55032c65c6fb8b20f6d8ba0f",
"index":null,
"hash":"0x1fee75c925425ab6548b32619f10b5aa1d23ebea786c182fed6053ce8f93ecaa",
"type":0,
"to":"0xCB1B509b59a59B9f7fEF20864d9975Aedffe74EA",
"from":"0xaDE7A3f0522258D2BDD9154A4a5521a822968954",
"nonce":17,
"gasLimit":21000,
"gasPrice":2000000000,
"maxPriorityFeePerGas":null,
"maxFeePerGas":null,
"data":"0x",
"value":
{
"low":-986710016,
"high":1654613728,
"unsigned":false
},
"chainId":1337,
"signature": { },
"accessList":null,
"amount":44,
"timestamp":1676304598
}
]
}
fetch("https://www.morethanwallet.com/api/mtweth/address/1")
.then(response => response.json())
.then(data => console.log(data))
{
"cat":"accounts",
"page":1,
"data":
{
"records":12,
"data":
[
{
"Address":"0xFc21E7316AC1453d4Ec99a9EaeD7d7a3BC03E879",
"Balance":998399.9706
},
{
...
}
]
}
}
fetch("https://www.morethanwallet.com/api/mtweth/item/address/0x325b21F98eB8f7ee07F4D538d658622dE17eD2A6")
.then(response => response.json())
.then(data => console.log(data))
{
"_id":"63e4a5b9c9a88edfc2458cc3",
"address":"0x325b21F98eB8f7ee07F4D538d658622dE17eD2A6",
"balance":100,
"transactions":
[
{
"_id":"63e4a5b932b6cb2fcc510c4e",
"provider": {},
"blockNumber":2793,
"blockHash":"0xf5364d2747f754c9bf31399582db6ef7f3b14784cf0eedc529eaad032d4c5512",
"index":null,
"hash":"0x81456d854615817db741561d7d40658a12e2774b3676d770ca5ab97002a3f0ce",
"type":0,
"to":"0x325b21F98eB8f7ee07F4D538d658622dE17eD2A6",
"from":"0xFc21E7316AC1453d4Ec99a9EaeD7d7a3BC03E879",
"nonce":6,
"gasLimit":21000,
"gasPrice":200000000000,
"maxPriorityFeePerGas":null,
"maxFeePerGas":null,
"data":"0x",
"value":{"low":1661992960,"high":1808227885,"unsigned":false},
"chainId":1337,
"signature":{},
"accessList":null,
"amount":100,
"timestamp":1675873139
}
],
"cat":"account"
}
fetch("https://www.morethanwallet.com/api/mtweth/transactions/1")
.then(response => response.json())
.then(data => console.log(data))
{
"cat":"transactions",
"page":1,
"data":"{
records:38,
data:
[
{
Block:17989,
Time:11:11:06 14/02,
Amount:1000,
Hash:0x000cab2e69b1e4adaf72ab1eac535532555ec895018af836e6e94c53207925ff
},
{
...
}
]}
}
fetch("https://www.morethanwallet.com/api/mtweth/item/transactions/0x93813dbee9c3d0b7921b16c834c977986e0b8f158c6567dd7d47b664dc60a89f")
.then(response => response.json())
.then(data => console.log(data))
{
_id:"63fdaf9c69bb5a200d4ae1e1",
provider:,
blockNumber:2920,
blockHash:"0x67ce59e95153ff7574709c8e13f0952e90b88ef3e3f746b596b44c79493ee4ee",
index:null,
hash:"0x93813dbee9c3d0b7921b16c834c977986e0b8f158c6567dd7d47b664dc60a89f",
type:2,
to:"0xCB1B509b59a59B9f7fEF20864d9975Aedffe74EA",
from:"0x9288aBa316306C7Af8e0ABC0511c0323F64EEcaA",
nonce:0,
gasLimit:21000,
gasPrice:1500000007,
maxPriorityFeePerGas:1500000000,
maxFeePerGas:24448519821,
data:"0x",
value:{
low:-1316487168,
high:-1243369706,
unsigned:false
},
chainId:1337,
signature:,
accessList:[],
amount:50,
timestamp:1677569942,
cat:"transaction"
}