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/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +3 -2
package/package.json
CHANGED
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
|
-
|
|
98
|
-
|
|
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
|