
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@greymass/account-creation
Advanced tools
An account creation library for EOSIO chains that leverages Anchor.
This library allows you to prompt the user to create and initialize an account using Anchor.
The @greymass/account-creation
package is distributed as a module on npm.
yarn add @greymass/account-creation
# or
npm install --save @greymass/account-creation
This function will automatically open a popup window prompting the user to buy an account. Once the payment is received, the account will be redirected to Anchor with an account creation code. Anchor is then expected to send a confirmation or error message back before sending the user back to the defined url.
import { AccountCreator } from '@greymass/account-creation'
// Initialize the account creator object
const accountCreator = new AccountCreator({
supportedChains: [], // List of supported chains.
scope: 'wallet', // A string representing the scope of the account creation.
returnUrl: 'http://wallet.greymass.com', // Url to return the user to once the account is created.
})
// Open a popup window prompting the user to create an account.
const creationResult = await accountCreator.createAccount()
console.log(creationResult);
// {
// status: 'success', // Will be success if the account was created successfully.
// actor: 'test.gm', // Account name of the created account.
// network: '...', // Chain id of the network where the account was created.
// identity_proof: {...} // Signed identity proof, proving that the created account is owned by the current user.
// }
You need Make, node.js and yarn installed.
Clone the repository and run make
to checkout all dependencies and build the project. See the Makefile for other useful targets. Before submitting a pull request make sure to run make lint
.
Made with ☕️ & ❤️ by Greymass, if you find this useful please consider supporting us.
FAQs
An account creation library for antelope chains that leverages Anchor.
We found that @greymass/account-creation demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.