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

Hedera Integration with CLI #4

Open
Gizmotronn opened this issue Feb 15, 2022 · 1 comment
Open

Hedera Integration with CLI #4

Gizmotronn opened this issue Feb 15, 2022 · 1 comment
Assignees
Labels
chain external API integration

Comments

@Gizmotronn
Copy link
Member

Further integration with marketplace repository as well using Hedera chain

const { Client } = require("@hashgraph/sdk");
require("dotenv").config();

async function main() {

    //Grab your Hedera testnet account ID and private key from your .env file
    const myAccountId = process.env.MY_ACCOUNT_ID;
    const myPrivateKey = process.env.MY_PRIVATE_KEY;

    // If we weren't able to grab it, we should throw a new error
    if (myAccountId == null ||
        myPrivateKey == null ) {
        throw new Error("Environment variables myAccountId and myPrivateKey must be present");
    }
}
main();

All commits for this issue will come from cli branch

@Gizmotronn
Copy link
Member Author

#3

Gizmotronn added a commit that referenced this issue Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chain external API integration
Projects
Status: No status
Status: No status
Development

No branches or pull requests

1 participant