You are viewing a single comment's thread:

RE: Opening a NFT card shop in Splinterlands for $25+

(edited)

about 1. yes, you absolutely shouldn't use the owner key unless necessary. its exposing the account to a small but unnecessary risk. unless someone gets a hold of your script and you stored it in the script itself. then your account is lost. since you can change the master password with your owner key. and with that all the other private keys.

about 2. it does essentially exactly what you are doing if you look at the beem source code. for examples just take a look at some of my tutorials. the lastest about submitting battles uses a lot of custom json stuff, the rental tutorial as well.

but essentially it works like this (you can load the keys through various other means, that is just the easiest for explaining):
hive: Hive = Hive(keys=[posting_privatekey,active_privatekey])

hive_id: str = "sm_stake_tokens"
request = {"token": "SPS", "qty": qty}
hive.custom_json(hive_id, json_data=request, required_posting_auths=["user"])

0E-8 BEE
2 comments

Nice hive.custom_json worked first try after reading the relevant portion of your automated rental tutorial.

As an aside, cool ai bot! I noticed the gpt-neox-20b(goose.ai) is available, it might be able to help in selecting/summarizing/rating content.

0E-8 BEE

Where can I find the tutorials you mentioned "for examples just take a look at some of my tutorials. the lastest about submitting battles uses a lot of custom json stuff, the rental tutorial as well."

0E-8 BEE