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

Added docs for changing hrp within sdk-py and mxpy #1021

Merged
merged 2 commits into from
Dec 2, 2024

Conversation

popenta
Copy link
Contributor

@popenta popenta commented Nov 29, 2024

Description of the pull request (what is new / what has changed)

Did you test the changes locally ?

  • yes
  • no

Which category (categories) does this pull request belong to?

  • document new feature
  • update documentation that is not relevant anymore
  • add examples or more information about a component
  • fix grammar issues
  • other

@popenta popenta self-assigned this Nov 29, 2024
```

:::note
Explicitly providing `--address-hrp` will **always** be used over the `hrp` set in the config.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

:::note
Documentation in this section is preliminary and subject to change.
:::
You might be interested into decoding events emitted by a contract. You can do so by using the [`TransactionEventsParser`](#).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

Let's fetch an already processed [transaction](https://devnet-explorer.multiversx.com/transactions/05d445cdd145ecb20374844dcc67f0b1e370b9aa28a47492402bc1a150c2bab4), to serve as an example, and convert it to a [TransactionOutcome](https://multiversx.github.io/mx-sdk-py/_modules/multiversx_sdk/core/transactions_outcome_parsers/resources.html#TransactionOutcome).

```py
from multiversx_sdk import ApiNetworkProvider, TransactionsConverter
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still with the legacy converter 🙈

All right, we'll get rid of it in v1.

@popenta popenta merged commit f6ba115 into development Dec 2, 2024
3 checks passed
@popenta popenta deleted the change-hrp-in-sdk branch December 2, 2024 10:09
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

Successfully merging this pull request may close these issues.

3 participants