Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

how to send an ERTP payment to an agoric / cosmos address / account #8114

Closed
dckc opened this issue Nov 9, 2022 · 0 comments
Closed

how to send an ERTP payment to an agoric / cosmos address / account #8114

dckc opened this issue Nov 9, 2022 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation vaults_triage DO NOT USE

Comments

@dckc
Copy link
Member

dckc commented Nov 9, 2022

We went over this in today's office hours (notes, including recording), prompted by a question from @thisispalash.

namesByAddress is a name hub where each provisioned account gets an entry. Their entry is a namehub of anything the owner cares to publish, in addition to a depositFacet entry initialized by the provisioning process.

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 home:

const myAddr = await E(home.myAddressNameAdmin).getMyAddress();

Neither namesByAddress nor myAddressNameAdmin nor even the NameHub API seems to be documented.

cc @michaelfig @Tyrosine22

@ivanlei ivanlei added the documentation Improvements or additions to documentation label Dec 4, 2022
@ivanlei ivanlei added the vaults_triage DO NOT USE label Jan 4, 2023
@Tyrosine22 Tyrosine22 self-assigned this Jan 10, 2023
@Agoric Agoric locked and limited conversation to collaborators Jul 29, 2023
@dckc dckc converted this issue into discussion #8115 Jul 29, 2023
@dckc dckc transferred this issue from Agoric/documentation Jul 29, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
documentation Improvements or additions to documentation vaults_triage DO NOT USE
Projects
None yet
Development

No branches or pull requests

3 participants