stackswap-front-api-test-02 1.0.78 → 1.0.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stackswap-front-api-test-02",
3
- "version": "1.0.78",
3
+ "version": "1.0.79",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "start": "tsc -b tsconfig.build.json --watch --verbose",
package/src/index.ts CHANGED
@@ -94,8 +94,9 @@ export class StackswapMainnetAPI implements StackswapAPI{
94
94
 
95
95
 
96
96
  getCurrentBlock: () => Promise<any> = async () => {
97
- const get_result = await axios.get(this.config.STACKS_API_URL() + '/extended/v1/stx_supply');
98
- return get_result.data.block_height;
97
+ //https://stacks-node-api.mainnet.stacks.co/extended/v1/block?limit=0
98
+ const get_result = await axios.get(this.config.STACKS_API_URL() + '/extended/v1/block?limit=0');
99
+ return get_result.data.total;
99
100
  };
100
101
 
101
102
  // @ts-ignore