TypeScript SDK
Installation
The Union Client is TypeScript-first and framework agnostic. At app.union.build we use Svelte but you can use any framework or no frameworks at all. If you’re a React developer, checkout this demo on Stackblitz.
Client Initialization
Transferring Assets
We will transfer 1 HONEY
from Berachain bArtio to Stride Testnet.
You have the option to trigger the approval transaction manually by setting autoApprove
to false
then calling .approveTransaction
before calling .transferAsset
.
Run the above example