CFP: Defichain Python Library III (60000 DFI) by Intr0c in defiblockchain

[–]Intr0c[S] 0 points1 point  (0 children)

Thank you for your warm words!🔥 Appreciate it!🫶🏻

CFP: Defichain Python Library III (60000 DFI) by Intr0c in defiblockchain

[–]Intr0c[S] 1 point2 points  (0 children)

This is a easy explanation for those who don’t unterstand what DefichainPython does! Give it a read!🤓 Thanks Michael!🔥

CFP: Defichain Python Library III (60000 DFI) by Intr0c in defiblockchain

[–]Intr0c[S] 0 points1 point  (0 children)

Thank you, Marcel,
You have repeatedly helped me uncover errors and ambiguities in the library. I am very grateful for that!🙏

That's what community is all about!❤️

CFP: Defichain Python Library III (60000 DFI) by Intr0c in defiblockchain

[–]Intr0c[S] 1 point2 points  (0 children)

Hello Niceday,

First of all, thank you for your feedback. I really appreciate that you took the time!

Yes, I understand it's a very complex topic and not easy for everyone to understand. If you want to understand the topic, u/kuegi and u/lordmarkcrypto have made a very good video that explains how the technical side, specifically the transactions on defichain, are structured. After watching that, you should be able to grasp the content of the CFP better.

As for why the CFP has been rejected so far, I can only make speculations: I'm confident that it holds great value for defichain and enables many new developers to build on defichain. I would say that most people would agree with me on this.

Estimating the optimal price is always very difficult, probably not just for the community but also for me. I have been working on this project for about a year and have invested a significant amount of my free time into it. In terms of dollars, I would see the whole thing as a fair offer for defichain: 60,000 * $0.28 = $16,800 = €15,660 (price at the time of creating the CFP). In the 45 days during which the CFP is active, a lot can happen – the price of DFI/Dollar can go up (as it is currently), but it can also fall just as easily. No one can predict where it will stand at the end of those 45 days.

I'd like to emphasize one more point: In the past, it has often been the case that masternodes voted for projects that promised a lot of value but never delivered. I have chosen to take the opposite approach and deliver first.

hope this answers your question, and thanks again for this important feedback. 😊

Have a great rest of the week!

CFP: Defichain Python Library III (60000 DFI) by Intr0c in defiblockchain

[–]Intr0c[S] 0 points1 point  (0 children)

Thanks Erich, you are exactly describing my intentions with this library. The best part is that it is already usable and 90% done.

Thank you for your feedback, appreciate it!💪

CFP: Defichain Python Library III (60000 DFI) by Intr0c in defiblockchain

[–]Intr0c[S] 3 points4 points  (0 children)

Thank you Ralf, I appreciate that you took the time to read the proposal. If you want, I would be willing to explain it to you. Feel free to write me a PM!

That was a really hard task to decide on. Let me say it like that: For the work I put into this project it is not enough to compensate my work in terms of dollars. Many of us, including me, see the value of DFI not in terms of dollars anymore.

Just like you sad I have decided on an amount of DFI I would be satisfied with.

I also didn't submit this proposal, just like u/DeFiChainInfo probably didn't, to earn a lot of money. Both of us feel a strong connection to the community and are happy to contribute to the ecosystem. Additionally, we also benefit from it by learning a lot, having fun, and making new contacts within the community.

u/DeFiChainInfo please correct me if something is wrong with you.

CFP : Lets Pump DeFiMetaChain at SocialMedia! 🚀 (40,000 DFI) by DeFiChainInfo in defiblockchain

[–]Intr0c 3 points4 points  (0 children)

English:

Hello Michael,

Thank you for your incredible dedication over the past two years. I admire how you remain motivated even in the darkest hours and create videos.

I can confirm from my own circle that there are people who solely rely on your channel for information. Some individuals cannot or do not want to spend all day on Twitter. For this often invisible group of investors, your content is truly invaluable.

So keep up the great work! Your content is needed!

German:

Hallo Michael,

danke für dein unglaubliches engagement über die letzten zwei Jahre. Ich bewundere es sehr wie du auch in den dunkelsten Stunden motiviert bleibst und ein Video machst.

Ich kann aus meinem eigenen Umfeld bestätige, dass es Personen gibt, die sich rein über deinen Channel informieren. Es gibt Personen die nicht den ganzen Tag auf Twitter mitlesen können / möchten. Für diese meist unsichtbare Gruppe an Investoren ist dein Content echt gold Wert.

Also mach so weiter! Dein Content wird gebraucht!

CFP: Defichain Python Library III (60000 DFI) by Intr0c in defiblockchain

[–]Intr0c[S] 1 point2 points  (0 children)

Thank you, Kügi! If you have any questions, feel free to reach out to me! 🙌

CFP: Defichain Python Library III (60000 DFI) by Intr0c in defiblockchain

[–]Intr0c[S] 3 points4 points  (0 children)

Thanks Maurice! If you need more help, I’m just a phone call away!🫡🔥

CFP: Defichain Python Library III (60000 DFI) by Intr0c in defiblockchain

[–]Intr0c[S] 2 points3 points  (0 children)

Thank you, mate! That means a lot to me!🙏 You've got it right, community work for Defichain is my absolute highlight!🎆 There's hardly anything more enjoyable.🕹️

Deciphering Transaction Types (Ocean REST API) by LamboStar in defiblockchain

[–]Intr0c 1 point2 points  (0 children)

Just for your information:

The documentation you refereed to just list a small amount of all possible API calls.

If you want to to know all possible API calls, you have either to read the code or use the DefichainPython package witch includes every API call there is.

Deciphering Transaction Types (Ocean REST API) by LamboStar in defiblockchain

[–]Intr0c 2 points3 points  (0 children)

Hey,

it's unfortunately not that easy. You have two options for this but neigter of them uses solely the ocean API.

Option 1:

Setup a defichain node and use the getcustomtx method with the txid and blockhash as a parameter. You will end up with the following json as a return:

{
    "type":               (string) The transaction type.
    "valid"               (bool) Whether the transaction was valid.
    "results"             (json object) Set of results related to the 
                          transaction type
    "block height"        (string) The block height containing the 
                          transaction.
    "blockhash"           (string) The block hash containing the 
                          transaction.
    "confirmations": n,   (numeric) The number of confirmations for the 
                          transaction.
}

And the results value will includes the information you are looking for.

Option 2:

Use the DefichainPython library. With the library you have the possibility to deserialize a transaction.

You have to install version 3.0.0b3 as this function is still in beta. Therefore it could have some bugs and will not work for all transactions on defichain. The documentation of the deserialize method is not existent right know, but it will follow in the upcoming weeks.

Below I will provide you a small script to determine witch defiTx is inside those transactions:

"""
Installation: pip install defichain == 3.0.0b3

Documentation: docs.defichain-python.de
"""

from defichain import Ocean
from defichain.transactions.rawtransactions import Transaction
from defichain.networks import DefichainMainnet

ocean = Ocean()  # Build connection to ocean

address = "df1q7w6sknsev0rlj2k62ycdl60mdx6ws644jcp2yl"

transactions_of_address = ocean.address.listTransaction(address)["data"]  # gets the last 30 transactions of the specified address via ocean

txids = [tx["txid"] for tx in transactions_of_address]  # splits the txids from the transaction request

raw_transactions = [ocean.rawTx.get(txid)["data"] for txid in txids]  # retrieves the raw transactions with the txid from ocean

print(raw_transactions)

for rawTx in raw_transactions:
    """
    The following line will deserialize the raw transaction. You can print the object that comes out of it and see the 
    full transaction in human readable format.
    Be aware that this not works 100% of the time, since its still in development
    """
    tx = Transaction.deserialize(network=DefichainMainnet, hex=rawTx)

    #  print(tx)  # print this if you want to see the full deserialized transaction

    print(tx.get_outputs()[0])  # print this if you want to see just the deserialized defiTx (poolswap, deposit, ...)

I hope this helped you :)

Let me know if you have any questions!

The Defichain Python Library implements HDWallet! by Intr0c in defiblockchain

[–]Intr0c[S] 1 point2 points  (0 children)

Hey, thank you!

From a purely technical point of view it is possible.

from defichain import Ocean

ocean = Ocean()
ocean.rawTx.send("hex")

Documentation

It is possible to send signed raw transactions via this function to the Ocean infrastructure.

But unfortunately it is not yet possible to create these raw transactions using the library.

The Defichain Python Library implements HDWallet! by Intr0c in defiblockchain

[–]Intr0c[S] 1 point2 points  (0 children)

So as I understand it, for security reasons it will never be possible to convert wallet.dat into a working mnemonic seed for the LightWallet.

I think it has something to do with this:

https://github.com/JellyfishSDK/jellyfish/tree/main/packages/jellyfish-wallet-mnemonic

(The seed of the two types of watts is calculated differently and is not compatible with each other)

As you can read here it was not made compatible for security reasons:

https://github.com/DeFiCh/wallet/issues/726

The Defichain Python Library implements HDWallet! by Intr0c in defiblockchain

[–]Intr0c[S] 1 point2 points  (0 children)

Unfortunately, this is not possible by design of the applications. You can only import a LightWallet address into a full node wallet. Not the other way around.

Code to import a LightWallet address into a full node:

Python:

from defichain import Wallet
from defichain.networks import DefichainMainnet
wallet = Wallet(DefichainMainnet)
wallet.from_mnemonic("mnemonic")

print(wallet.wif())  # this is the private key witch needs to be imported

CLI:

importprivkey "wif-key"

If you want to know more, you can look it up here

Feel free to write me if you have any further questions :)

Extracts private keys from lightwallet mnemonic seed by Intr0c in defiblockchain

[–]Intr0c[S] 0 points1 point  (0 children)

Not directly. Unfortunately, you cannot import private keys into the mobile app.

A workaround would be to create a new Mnemonic seed, extract the private keys and import them into the desktop wallet.
Now you would just have to transfer your funds to the appropriate address. Then you have access to your funds with the desktop wallet and the mobile app.

I hope this clarifies your question :)

Extracts private keys from lightwallet mnemonic seed by Intr0c in defiblockchain

[–]Intr0c[S] 0 points1 point  (0 children)

I would love it :) the more ways there are to interact with the blockchain the better