Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

akash - payments question. #66

Open
freakinfofa opened this issue Feb 24, 2022 · 12 comments
Open

akash - payments question. #66

freakinfofa opened this issue Feb 24, 2022 · 12 comments

Comments

@freakinfofa
Copy link

freakinfofa commented Feb 24, 2022

hey!
Im currently have been running my akash nodes for a few days with currently 8 leases active. I have seen my wallet credit decrease slowly because of transaction fees but I have not seen any incoming transactions to my wallet. I have checked under mintscan.io/akash I just see a bunch of failed "create bid" type tranasctions and some successful
Screenshot from 2022-02-24 18-26-59
Screenshot from 2022-02-24 18-27-29

Im not sure if we are supposed so see some passive income throughout the duration of the lease or do we get payment after lease is up and completed?

excuse my probably dumb question. been trying to educate myself better I promise hehe!

@avolon42x
Copy link

Normally you can see under Handyhost -> Marketplace -> Myleases -> Active the current state of escrow withdrawal. HH withdraws every 8 hours from the escrow.
You can also use the following command line commands (you have to have Akash installed, or from handyhost -> /root/.Handyhost/aktData/bin you can execute with ./akash):

List all leases with monthly estimated reward:

akash query market lease list --node http://135.181.181.122:28957/ --provider **akashxxxYourProviderHere** --gseq 0 --oseq 0 --page 1 --limit 100 --state active -o json | jq -r '["owner","dseq","gseq","oseq","rate","monthly","USD"], (.leases[] | [(.lease.lease_id | .owner, .dseq, .gseq, .oseq), (.escrow_payment | .rate.amount, (.rate.amount|tonumber), (.rate.amount|tonumber))]) | @csv' | awk -F ',' '{if (NR==1) {$1=$1; printf $0"\n"} else {$6=(($6*((60/6.706)*60*24*30.436875))/10^6); $7=(($7*((60/6.706)*60*24*30.436875))/10^6)*1.79; print $0}}' | column -t

Show how much escrow has been withdrawn so far:

akash query market lease list --node http://135.181.181.122:28957 --provider **akashxxxYourProviderHere** --gseq 0 --oseq 0 --page 1 --limit 1000 -o json | jq -r '([.leases[].escrow_payment.withdrawn.amount|tonumber] | add) / pow(10;6)'

@alyasboytigas
Copy link

I agree with @freakinfofa i notice that too i have 8 leases closed but it seems still going down i'm guessing due to fees? last time i check i have around 95akt now 92akt.

Screenshot (233)

Screenshot (247)

Screenshot (262)

@freakinfofa
Copy link
Author

@avolon42x Thanks for the reply!
this is how my current active leases look like.. with escrow balance and escrow withdrawn at 0
image

and this is what some of my closed leases look like....
image

for example that "big" lease for 30uAKT/Block has been running and active since last week. the same with a few others, i even started a spreadsheet to keep track of all the leases in a simpler format.

@freakinfofa
Copy link
Author

I dont mind the wait.. i just want to confirm that I wont be losing on any profits. I read this from an old release notes where it say HH pays out every 100K uAKT not sure if that still holds true.

v0.4.9 Changelog:
Akash fractional pricing for provider prices (ex: 0.01uAKT/mCPU)
>>>>>>>Akash provider payouts every 100k uakt (0.1AKT)<<<<<<<<<<<
Akash provider bid timeout increased to 8 hours
Login Page / Authentication
Login page is disabled by default. To enable it, view the instructions in the HandyHost README

@freakinfofa
Copy link
Author

freakinfofa commented Mar 7, 2022

@avolon42x Thanks for those commands! that is a much better way to look at that info hehe! after running the second one to see how much has been withrdawn so far it says."2.4634"
image

but when looking at mintscan.io i cannot find the incoming transaction(s)
am i looking at the wrong place? not trying to lose on profits hehe i have a couple leases making a few dollars already
image

@avolon42x
Copy link

Sorry cannot help you more here unfortunately. I haven't been able to dig deeper into the exchange process. It looks like that there are various events and timings: https://docs.akash.network/glossary/escrow#paymentwithdraw

@alexsmith540
Copy link
Contributor

I dont mind the wait.. i just want to confirm that I wont be losing on any profits. I read this from an old release notes where it say HH pays out every 100K uAKT not sure if that still holds true.

v0.4.9 Changelog: Akash fractional pricing for provider prices (ex: 0.01uAKT/mCPU) >>>>>>>Akash provider payouts every 100k uakt (0.1AKT)<<<<<<<<<<< Akash provider bid timeout increased to 8 hours Login Page / Authentication Login page is disabled by default. To enable it, view the instructions in the HandyHost README

Correct, it will schedule payouts once you have accrued 100k uakt on any specific lease. In addition, akash provider is configured so that it will only check for available payments every 8h. The default params would basically drain AKT from your account since the tx fees would often be more than the amount withdrawn:

--minimum-balance 100000
--balance-check-period 8h0m0s
--withdrawal-period 8h0m0s

Separately, if you wanted to set a custom amount for withdraws you could modify the --minimum-balance flag within /opt/handyhost/aktAPI/runProvider.sh, and once provider is restarted it would use your custom minimum balance. Also note if you did this your custom values would be overwritten whenever you install handyhost updates.

Beyond that it seems like you found the cli commands to query lease info. I know there is a query to get the escrow balance for any given lease but cant recall the specific command off the top of my head.

@freakinfofa
Copy link
Author

awesome! thanks for the info! :) now i ran into another issue hehe. ill create a separate issue.

@freakinfofa
Copy link
Author

is there a limit on --balance-check-period and --withdrawal-period?
what would you say its a fair withdrawal and check periods? (since you mentioned leaving it default most likely will drain the wallet with the 8hr values. I have it set to 72hrs at this time...

@freakinfofa freakinfofa reopened this Mar 29, 2022
@freakinfofa
Copy link
Author

today after updating my cluster and getting everything up and running, this is what i get when running the provided commands for the balances:
image

@avolon42x
Copy link

Probably has to do with that your provider hasn't earned anything on the new chain. I was able to get some leases straight away 24 hours ago and for me it look like this:
Bildschirmfoto 2022-04-28 um 07 08 12

Happy providing!

@freakinfofa
Copy link
Author

Thanks! yeah, I see the new leases.. but what about the old leases? Dashboard says I currently have 14 leases active but just one on showing on the new chain.

will those just run out eventually and I get the generated profit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants