Difference between revisions of "API"

From DeFiChain-Wiki
Line 6: Line 6:
 
== Blockchain ==
 
== Blockchain ==
 
=== Addresses ===
 
=== Addresses ===
http://mainnet-api.defichain.io/api/DFI/mainnet/address/8RUNjYgCHkT56t4C38YaaDvUQcY4HozdcD<br>
+
* http://mainnet-api.defichain.io/api/DFI/mainnet/address/8RUNjYgCHkT56t4C38YaaDvUQcY4HozdcD<br>
http://mainnet-api.defichain.io/api/DFI/mainnet/address/8RUNjYgCHkT56t4C38YaaDvUQcY4HozdcD/balance<br>
+
* http://mainnet-api.defichain.io/api/DFI/mainnet/address/8RUNjYgCHkT56t4C38YaaDvUQcY4HozdcD/balance<br>
http://mainnet-api.defichain.io/api/DFI/mainnet/address/8RUNjYgCHkT56t4C38YaaDvUQcY4HozdcD/txs<br>
+
* http://mainnet-api.defichain.io/api/DFI/mainnet/address/8RUNjYgCHkT56t4C38YaaDvUQcY4HozdcD/txs<br>
http://mainnet-api.defichain.io/api/DFI/mainnet/address/8RUNjYgCHkT56t4C38YaaDvUQcY4HozdcD?limit=20<br>
+
* http://mainnet-api.defichain.io/api/DFI/mainnet/address/8RUNjYgCHkT56t4C38YaaDvUQcY4HozdcD?limit=20<br>
http://mainnet-api.defichain.io/api/DFI/mainnet/address/stats/rich-list?pageno=1&pagesize=200<br>
+
* http://mainnet-api.defichain.io/api/DFI/mainnet/address/stats/rich-list?pageno=1&pagesize=200<br>
 
=== Transactions ===
 
=== Transactions ===
http://mainnet-api.defichain.io/api/DFI/mainnet/tx/923bfa3e400d841baa88a566bf3a348a181f1d16881fb36dd46cb8561db5dc92<br>
+
* http://mainnet-api.defichain.io/api/DFI/mainnet/tx/923bfa3e400d841baa88a566bf3a348a181f1d16881fb36dd46cb8561db5dc92<br>
http://mainnet-api.defichain.io/api/DFI/mainnet/tx/923bfa3e400d841baa88a566bf3a348a181f1d16881fb36dd46cb8561db5dc92/coins<br>
+
* http://mainnet-api.defichain.io/api/DFI/mainnet/tx/923bfa3e400d841baa88a566bf3a348a181f1d16881fb36dd46cb8561db5dc92/coins<br>
 
=== Blocks ===
 
=== Blocks ===
https://api.defichain.io/v1/getBlockActivity?network=mainnet<br>
+
* https://api.defichain.io/v1/getBlockActivity?network=mainnet<br>
http://mainnet-api.defichain.io/api/DFI/mainnet/block/12345<br>
+
* http://mainnet-api.defichain.io/api/DFI/mainnet/block/12345<br>
http://mainnet-api.defichain.io/api/DFI/mainnet/block?limit=100&anchorsOnly=true<br>
+
* http://mainnet-api.defichain.io/api/DFI/mainnet/block?limit=100&anchorsOnly=true<br>
http://mainnet-api.defichain.io/api/DFI/mainnet/block?limit=100&anchorsOnly=false<br>
+
* http://mainnet-api.defichain.io/api/DFI/mainnet/block?limit=100&anchorsOnly=false<br>
http://mainnet-api.defichain.io/api/DFI/mainnet/block?limit=500000&anchorsOnly=false <--response 200MB!<br>
+
* http://mainnet-api.defichain.io/api/DFI/mainnet/block?limit=500000&anchorsOnly=false <--response 200MB!<br>
  
 
== DEX (Decentraliced Exchange) ==
 
== DEX (Decentraliced Exchange) ==

Revision as of 18:07, 16 January 2021

General

Blockchain

Addresses

Transactions

Blocks

DEX (Decentraliced Exchange)

General


  • ETH-DFI: id=4
  • BTC-DFI: id=5
  • USDT-DFI: id=6