Skip to content

Conversation

@jayantk
Copy link
Contributor

@jayantk jayantk commented Apr 14, 2023

We get a lot of questions about how to convert the base64 VAAs into hex and whatnot. This PR adds an "encoding" parameter to all of the endpoints that return a VAA which lets you pick the thing you want.

Note that I added a "0x" option which is hex, but with a 0x prepended. The EVM APIs seem to need this in various places.

UPDATE

I changed my mind about how this should work. The encoding parameter is itself hard for people to figure out, so I replaced it with a target_chain argument which is self-explanatory. The server will map the target chains to the desired encoding.

@vercel
Copy link

vercel bot commented Apr 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
example-oracle-amm ⬜️ Ignored (Inspect) Apr 14, 2023 6:17pm
xc-admin-frontend ⬜️ Ignored (Inspect) Apr 14, 2023 6:17pm

Copy link
Contributor

@cctdaniel cctdaniel left a comment

Choose a reason for hiding this comment

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

🙇🏻‍♂️

@jayantk jayantk merged commit 6126db7 into main Apr 14, 2023
@jayantk jayantk deleted the hex2 branch April 14, 2023 18:29
Copy link
Contributor

@cctdaniel cctdaniel left a comment

Choose a reason for hiding this comment

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

nice! this seems to be more user friendly 🙇🏻‍♂️

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