-
Only tech topics about Waves: dev tools, libs, RIDE, dApps, Nodes Github: http://tiny.cc/github-waves IDE: https://ide.wavesplatform.com/ Online Course: https://stepik.org/course/54415 StackOverflow: #wavesplatform Jobs: https://t.me/wavesridejobs
Hello. I have create a plugin for make payments with any wx.network token. Im going to finish to test it then I will sell it
Читать полностью…
Something like this:
const progressbar = document.querySelector(".progress");
const changeProgress = (progress) => {
progressbar.style.width = `${progress}%`;
};
async function loadJson(url) {
let response = await fetch(url);
if (response.status == 200) {
let json = await response.json();
return json;
}
throw new Error(response.status);
}
async function loadAll() {
while(height > targetHeight) {
const json = await loadJson(baseUrl + (lastTx == null ? "" : "?after=" + lastTx));
var v0 = json[0];
var vv = v0.filter(function (e) { return (e.type === 16 && e.call.function === "stakeNFT") && e.height >= targetHeight; });
vvv = vvv.concat(vv);
lastTx = v0[v0.length - 1].id;
if (startHeight == 0) startHeight = v0[0].height;
height = v0[v0.length - 1].height;
changeProgress((startHeight - height) / (startHeight - targetHeight) * 100);
}
}
const targetHeight = 2639245;
const baseUrl = "https://nodes.wavesnodes.com/transactions/address/3PAETTtuW7aSiyKtn9GuML3RgtV1xdq1mQW/limit/1000";
var lastTx = null;
var vvv = [];
var startHeight = 0;
var height = 999999999;
loadAll();
vvv.sort((a, b) => a.timestamp - b.timestamp); // reverse the order
Читать полностью…
I though this api was caching all tx in a local db to allow such filtering isnt it?
Читать полностью…
Under the hood it uses getAddressTransactions and then filter by function, so you can use own indexer based on this
Читать полностью…
if we fetch per 24 and transactions are above 100 for the day = starting missing some txs
Читать полностью…
You can do it here if its still updated i believe, filter tx by sender/dapp/function https://api.wavesplatform.com/v0/docs/
Читать полностью…
unit0 contract have a lot of transaction, will take a time and resources till filter them...
Читать полностью…
I use https://github.com/deemru/WavesReproduce to implement custom offchain logic based on contract calls
Читать полностью…
Seems like someone gave us 20k already, thanks anyway!!
Читать полностью…
don't know yet, shutdown on request, need to investigate
Читать полностью…
Is https://waves-ide (dot) com/ safe and effective now?
Читать полностью…
You dont have to construct, you have it in the initial 100 response as:
"lastCursor": "NDg0Mjk1OTAwMDMyOjpkZXNj"
You pass NDg0Mjk1OTAwMDMyOjpkZXNj as after to get the next 100 and so on with new lastCursor
Little help please. How do you construct the after="base64" query parameter to get the next 100 txs? I've tried btoa(response.json[length-1].id) in javascript but no joy. Thanks.
On another note, does someone know what the current number of micro-blocks per WAVES per block set at now?
I mean this node endpoint
/transactions/address/{address}/limit/{limit}
It shows up to 1000 last with moving cursor, after that you parse each tx, only left invokeScriptTx with given name and other params
But there is cursor, you can get 100, then next 100 etc until last:
"lastCursor": "U2F0IEp1biAwMiAyMDE4IDE0OjAxOjQ1IEdNVCswMzAwIChNU0spOjozUHVrdnJzN2FwN1ZmQVlyTHlpZlNvZ0xYM0NuTVV4c0VFbmhuNk40WUVHWjo6YXNj",
"isLastPage": true
its limited to 100 transactions, we cant calculate how much specific function will be called
Читать полностью…
Without controling rollbacks? Its hard to rely on such API, it can be used only as an UI
Читать полностью…
Wont help, we need something like API that we fetch transaction by specific function
Читать полностью…
There is no option to able finder transactions from specific wallet by function right ? On nodes or Waves data API
Example:
https://w8.io/txs/g/3PKgN8rfmvF7hK7RWJbpvkh59e1pQkUzero_appendBlock_v2_16
I'm happy with whatever I can get, if someone has a lot 10-20k wouldn't be crazy 😂
Читать полностью…
Is there some place to request a lot of testnet WAVES at once for development? I keep running out 😝
Читать полностью…
Hey everyone. How long it will be disabled?
Читать полностью…