waves_ride_dapps_dev | Unsorted

Telegram-канал waves_ride_dapps_dev - Waves Dev Jedi | RIDE for dApps

-

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

Subscribe to a channel

Waves Dev Jedi | RIDE for dApps

No, i believe noone uses this endpoint.

Sending tx with specific (your) generator can be tricky, because you have only lastBlock access at the blockchain level.

So you have to patch your node to increase probability of the operation, to not broadcast such transaction to other nodes.

In this case when your node will generate a block it will include the transaction.

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Hi guys, to make a tx with your own node mined block, is this the process?

1. Set API key for your node, as explained here: https://docs.waves.tech/en/waves-node/node-api/api-key

2. Sign tx with your own API key, example:

curl -X POST "http://127.0.0.1:6869/transactions/sign"\
-H "X-API-Key: my-api-key"\
-H "Content-Type: application/json"\
-d '{"type":16,"sender":"3NAM4ijPv7rwFBqcshqv41CVhKoSK22nEoT","call":{"function":"deposit","args":[]},"payment":[{"amount":300000000,"assetId":null}],"dApp":"3N9yCRmNsLK2aPStjLBne3EUiPSKvVHYgKk","feeAssetId":null,"fee":500000}'

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Can I somehow get this information from the Matcher API ? 🙏🙏

Читать полностью…

Waves Dev Jedi | RIDE for dApps

no, I remember to look somewhere in the composite part

Читать полностью…

Waves Dev Jedi | RIDE for dApps

I update settings every minute in my client

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Could you please advise me where to find this setting for the given pairs? I haven't needed it for years, but now, with various combinations that may change frequently, I need it. I don't see such an endpoint in the matcher anywhere. Thank you

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Good evening, may I ask if there has been any change in the fee structure on the WX Network exchange today? For some pairs, I see a "percent type" fee with 0% and a minimum fee of 0.1 WAVES equivalent, whereas it used to be 0.1% with a 0.01 minimum WAVES equivalent. Does the "dynamic type" still exist? I checked the documentation in the fees section, and it seems to me that it hasn't been updated. Is this an error or a permanent change? Thank you.

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Yes and if you have some leasers in the future, the amount they staked, rewards etc. will make your Node balance look messy.

It might be better to keep your own $waves in a separate private wallet rather than in your Node wallet.

Читать полностью…

Waves Dev Jedi | RIDE for dApps

So I need to stake 1k to it?
Having it on my nose won't work?
Than this is my mistake

Читать полностью…

Waves Dev Jedi | RIDE for dApps

This was the image making me think, I did something wrong, since my address is not here under the generators😳🙈..

Читать полностью…

Waves Dev Jedi | RIDE for dApps

3. As far as I can see your rest API is public! http://198.7.117.21:6869

You may prefer to use it locally (127.0.0.1:6869) for security reasons.

Check doc
https://docs.waves.tech/en/waves-node/node-configuration#rest-api-settings

Читать полностью…

Waves Dev Jedi | RIDE for dApps

1. You don't need to have 1k $waves on your Node Wallet to run a generator Node but you need 1k staked $waves on the Node Wallet.

For security reasons or something Node owners generally use this way.

Ex;
Wallet_A, has the node program and is running and have 0 $waves (or any).

Wallet_B has 1k $waves.

Wallet_B stakes 1k $waves to Wallet_A and after 1k blocks Wallet_A becomes a generator Node.

Читать полностью…

Waves Dev Jedi | RIDE for dApps

AHH ok, I was asking because I was confused since it looks like I am not even trying to generate blocks, but good than I just wait:)

Читать полностью…

Waves Dev Jedi | RIDE for dApps

2024-12-23 14:20:41,936 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(bUZdSsP... -> GZTr8PW..., txs=1) appended, diff=dceff707
2024-12-23 14:20:43,657 INFO [tor.default-dispatcher-12] c.w.a.h.CompositeHttpService - HTTP 200 OK from GET http://localhost:6869/node/status
2024-12-23 14:20:43,849 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(39d3e3o... -> bUZdSsP..., txs=1) appended, diff=3b13d6c0
2024-12-23 14:20:45,981 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(3HA7rav... -> 39d3e3o..., txs=3) appended, diff=1b28abd4
2024-12-23 14:20:53,917 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(3R4oThC... -> 3HA7rav..., txs=2) appended, diff=936ad84c
2024-12-23 14:20:55,901 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(7v27pTY... -> 3R4oThC..., txs=2) appended, diff=1e766a92
2024-12-23 14:20:58,508 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(FMFoKmT... -> 7v27pTY..., txs=3) appended, diff=706a3d9f
2024-12-23 14:20:59,984 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(45x1aWA... -> FMFoKmT..., txs=2) appended, diff=73aba721
2024-12-23 14:21:01,953 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(EpCVxGo... -> 45x1aWA..., txs=1) appended, diff=f1986314
2024-12-23 14:21:03,971 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(EEAcG2Q... -> EpCVxGo..., txs=1) appended, diff=1fd613a8
2024-12-23 14:21:06,009 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(C7TgR9K... -> EEAcG2Q..., txs=1) appended, diff=63627168
2024-12-23 14:21:08,469 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(HchXjdY... -> C7TgR9K..., txs=1) appended, diff=d78a8536
2024-12-23 14:21:10,001 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(35LCtKY... -> HchXjdY..., txs=1) appended, diff=eef8eb1
2024-12-23 14:21:14,337 INFO [ctor.default-dispatcher-6] c.w.a.h.CompositeHttpService - HTTP 200 OK from GET http://localhost:6869/node/status
2024-12-23 14:21:16,397 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(7BmB9QS... -> 35LCtKY..., txs=2) appended, diff=74be8585
2024-12-23 14:21:18,520 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(ATS43Fq... -> 7BmB9QS..., txs=1) appended, diff=dafbc023
2024-12-23 14:21:20,632 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(D5pDgF5... -> ATS43Fq..., txs=1) appended, diff=790869d2
2024-12-23 14:21:22,424 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(J5PMG9g... -> D5pDgF5..., txs=1) appended, diff=98ab7ce
2024-12-23 14:21:24,501 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(7DDrFpP... -> J5PMG9g..., txs=1) appended, diff=6bc2de7e
2024-12-23 14:21:30,133 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(fbsksDt... -> 7DDrFpP..., txs=2) appended, diff=d8b8b98
2024-12-23 14:21:32,028 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(AFBUSye... -> fbsksDt..., txs=1) appended, diff=8da0afb7
2024-12-23 14:21:34,356 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(6zkjMwp... -> AFBUSye..., txs=1) appended, diff=a5002023
2024-12-23 14:21:40,479 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(5CEfqWg... -> 6zkjMwp..., txs=3) appended, diff=96709877
2024-12-23 14:21:44,943 INFO [tor.default-dispatcher-10] c.w.a.h.CompositeHttpService - HTTP 200 OK from GET http://localhost:6869/node/status
2024-12-23 14:21:47,080 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(EEpJHs7... -> 5CEfqWg..., txs=1) appended, diff=9fdb92f8
2024-12-23 14:21:49,201 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(2cNHRsZ... -> EEpJHs7..., txs=1) appended, diff=b578e963
2024-12-23 14:21:51,324 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(DWXGxyB... -> 2cNHRsZ..., txs=1) appended, diff=c58c5fad

Читать полностью…

Waves Dev Jedi | RIDE for dApps

So with 1000 waves its ~50/50 for a single block per week

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Other thing, I want to broadcast a tx with Python.
Waves docs, is not so clear. And Waves Lessons link is broken.

1. Pywaves is not supported anymore, right?

2 How to proceed?
a. I cloned waves-python
b. Requirements Python >=3.9, I have 3.12
c. pip install waves-python, done
d. ? I would have to add private key somewhere.
e. ? write and broadcast tx

Читать полностью…

Waves Dev Jedi | RIDE for dApps

You can use the code below as a reference:

- parse matcher settings: https://github.com/deemru/WavesKit/blob/7c3e536a8f8c9591e4738028aaea5735d14c1d08/src/WavesKit.php#L767

- set matcher fee based on these settings: https://github.com/deemru/WavesKit/blob/7c3e536a8f8c9591e4738028aaea5735d14c1d08/src/WavesKit.php#L879

Читать полностью…

Waves Dev Jedi | RIDE for dApps

But I cannot see percent setting, for example WAVES/USDTu pair has 0%, other pairs 0.1%

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Field: "type": "spending", mean percent fee? There is no dynamic pair at whole exchange ?

Читать полностью…

Waves Dev Jedi | RIDE for dApps

I use 2 endpoints to cover all cases: /matcher/settings and /matcher/settings/rates

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Probably they changed without prior notice, but it is quite possible

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Thanks so much for the advice, I will switch it up soon!!:)

Читать полностью…

Waves Dev Jedi | RIDE for dApps

AHH ok great, just the staking is more secure

Читать полностью…

Waves Dev Jedi | RIDE for dApps

You will see your address there just after your Node generates its first block.

Читать полностью…

Waves Dev Jedi | RIDE for dApps

4. Stop restarting your Node :)

Читать полностью…

Waves Dev Jedi | RIDE for dApps

2. As Dmitrii explained staked amount of Waves is about 21,000,000 $waves according to https://wavesonchain.com/

And if your Node has 1k $waves your weekly expected block number is 0.48 like other Nodes which have 1k $waves on lease.
https://wavesonchain.com/weekly

So it's normal to wait about 2 weeks to generate your first block (it's a possibility it can be earlier or later!).

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Everything looks okay to me , imo

Читать полностью…

Waves Dev Jedi | RIDE for dApps

2024-12-23 14:21:57,686 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - New height: 4493475
2024-12-23 14:21:57,720 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(FwQGg69... -> 2g4fqo7..., txs=2) appended, diff=ee86f706
2024-12-23 14:22:02,915 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(DCjKJwX... -> FwQGg69..., txs=1) appended, diff=54ea5e67
2024-12-23 14:22:05,102 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(DF39Npf... -> DCjKJwX..., txs=3) appended, diff=4122d097
2024-12-23 14:22:07,243 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(EnHdFbo... -> DF39Npf..., txs=1) appended, diff=f0ffae25
2024-12-23 14:22:13,122 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(Daaji64... -> EnHdFbo..., txs=1) appended, diff=afdd480f
2024-12-23 14:22:15,530 INFO [tor.default-dispatcher-10] c.w.a.h.CompositeHttpService - HTTP 200 OK from GET http://localhost:6869/node/status
2024-12-23 14:22:18,117 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(398jktM... -> Daaji64..., txs=3) appended, diff=999c622c
2024-12-23 14:22:18,493 INFO [tor.default-dispatcher-14] c.w.a.h.CompositeHttpService - HTTP 200 OK from GET http://198.7.117.21:6869/addresses
2024-12-23 14:22:18,561 INFO [tor.default-dispatcher-12] c.w.a.h.CompositeHttpService - HTTP 200 OK from GET http://198.7.117.21:6869/blocks/headers/last
2024-12-23 14:22:18,678 INFO [ctor.default-dispatcher-6] c.w.a.h.CompositeHttpService - HTTP 200 OK from GET http://198.7.117.21:6869/peers/connected
2024-12-23 14:22:20,218 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(Dk8sDJT... -> 398jktM..., txs=1) appended, diff=50205963
2024-12-23 14:22:22,136 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(DcdyMD4... -> Dk8sDJT..., txs=1) appended, diff=4ee040b4
2024-12-23 14:22:24,128 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(5qFf2pv... -> DcdyMD4..., txs=1) appended, diff=b9bfeb27
2024-12-23 14:22:30,197 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(C9e1vD7... -> 5qFf2pv..., txs=1) appended, diff=5c788f91
2024-12-23 14:22:32,239 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(61f5Hrs... -> C9e1vD7..., txs=1) appended, diff=fcefa95b
2024-12-23 14:22:34,244 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(AaQFJbk... -> 61f5Hrs..., txs=2) appended, diff=df42a372
2024-12-23 14:22:36,191 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(J9G22zT... -> AaQFJbk..., txs=1) appended, diff=a78c4df8
2024-12-23 14:22:42,251 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(Cyhc7Mf... -> J9G22zT..., txs=1) appended, diff=4bece60f
2024-12-23 14:22:44,252 INFO [appender-27] c.w.s.BlockchainUpdaterImpl - MicroBlock(DDciRCF... -> Cyhc7Mf..., txs=1) appended, diff=2555198b
2024-12-23 14:22:46,059 INFO [ctor.default-dispatcher-6] c.w.a.h.CompositeHttpService - HTTP 200 OK from GET http://localhost:6869/node/status


...

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Its too low generating balance

Читать полностью…

Waves Dev Jedi | RIDE for dApps

1000 / 21000000 * 100 * 1440 * 7 = 48% chance you have a block in 7 days (with 1000 vs. ~21M overall generating balance)

Читать полностью…
Subscribe to a channel