Skip to content
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

claim_account and create_claimed_account need a dedicated API #474

Open
DoctorLai opened this issue Apr 27, 2020 · 0 comments
Open

claim_account and create_claimed_account need a dedicated API #474

DoctorLai opened this issue Apr 27, 2020 · 0 comments
Labels

Comments

@DoctorLai
Copy link
Contributor

DoctorLai commented Apr 27, 2020

These two are very useful operations, and currently, there are no dedicated APIs for this. Users have to do the following or use the dsteem library.


const ac_key = "";
const user = "";

const keys = {active: ac_key};

const op = [
  "claim_account",
  {
    "fee": "0.000 STEEM",
    "creator": user,
    "extensions": []
  }
];

const tx = {
    extensions: [],
    operations: [
        op
    ]
};

steem.broadcast.send(tx, keys, (r) => {
    console.log(r);
});
@ety001 ety001 added the Feature label Apr 27, 2020
@DoctorLai DoctorLai changed the title claim_account and create_claimed_account need a dedicate API claim_account and create_claimed_account need a delicated API Apr 27, 2020
@DoctorLai DoctorLai changed the title claim_account and create_claimed_account need a delicated API claim_account and create_claimed_account need a dedicated API Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants