-
We went over this in today's office hours (notes, including recording), prompted by a question from @thisispalash.
So given an address and a payment, to send the payment to the address... const addr = "agoric1ldmtatp24qlllgxmrsjzcpe20fvlkp448zcuce" // for example
const pmt = await purse1.withdraw(AmountMath.make(someBrand, 100n)) // for example
const destDepositFacet = E(home.namesByAddress).lookup(addr, 'depositFacet');
E(destDepositFacet).receive(pmt); to get your address from const myAddr = await E(home.myAddressNameAdmin).getMyAddress(); Neither |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I neglected to split the question from the answer, but this is answered. |
Beta Was this translation helpful? Give feedback.
-
note there's a bug that needs this work-around: |
Beta Was this translation helpful? Give feedback.
I neglected to split the question from the answer, but this is answered.