Skip to content

Instantly share code, notes, and snippets.

View acharb's full-sized avatar
✌️

Alec Charbonneau acharb

✌️
View GitHub Profile
@acharb
acharb / deposit.js
Created September 18, 2023 22:09
Examples of how to use stellar typescript-wallet-sdk for a Sep-24 Deposit and Withdrawal flow
import axios from "axios";
import open from "open";
import sdk, { walletSdk } from "@stellar/typescript-wallet-sdk";
import { Memo, MemoText } from "stellar-sdk";
const wallet = walletSdk.Wallet.TestNet();
const stellar = wallet.stellar();
const account = stellar.account();
const anchor = wallet.anchor({ homeDomain: "testanchor.stellar.org" });

Keybase proof

I hereby claim:

  • I am acharb on github.
  • I am acharb (https://keybase.io/acharb) on keybase.
  • I have a public key ASCaMTvVQqmK2nbVRZgwcoRYtRyLvqtFrnRg9BfN0jXShwo

To claim this, I am signing this object: