Cosmos Inscriptions by Alfar
- Download and install Node.js.
- Install dependencies using the
npm install
command in the project root. - Create a
config.js
file and fill it as in theconfig.{token}.example.js
example file. input/accounts.txt
- add mnemonics and addresses here (format:mnemonic,address
ormnemonic
)
- CIAS - celestia insctiption -
config.cias.example.js
- INJS - injective insctiption -
config.injs.example.js
npm run mint
- mint tokennpm run generate
- generate empty accountsnpm run dispatch
- send tokens from the first account (inaccounts.txt
) to each account in the filenpm run withdraw
- withdraw native to exchange from all accountsnpm run balances
- check balancesnpm run addresses
- get addresses fromaccounts.txt
npm run minted
- check how many transactions minted tokens (cias only)
- EXPLORER: The URL for exploring transactions on the blockchain.
- RPC: The URL for the Remote Procedure Call (RPC) endpoint used for communication with the Injective Protocol network.
- NATIVE_PRICE_USD: The current price of the native token in USD.
- GAS: The amount of gas used for minting operations.
- FEE_NATIVE: The transaction fee for minting in native tokens.
- MINT_AMOUNT_NATIVE: The amount of native tokens to mint.
- SLEEP_ON_GET_ACCOUNT_ERROR_SEC: The duration to sleep (in seconds) if there is an error while retrieving an account.
- SLEEP_BETWEEN_START_ACCOUNTS_SEC: The duration to sleep (in seconds) between starting new accounts.
- SLEEP_BETWEEN_ACCOUNT_TXS_SEC: The duration to sleep (in seconds) between account transactions.
- GENERATE_ACCOUNTS_COUNT: The count of accounts to be generated
- SEND_NATIVE_TOKENS_PER_ACCOUNT: The amount of native tokens to send per account during the dispatch.
- SLEEP_BETWEEN_DISPATCH_SEC: The duration to sleep (in seconds) between dispatching tokens.
- LEAVE_NATIVE_ON_ACCOUNT: The amount of native tokens to leave on each account during withdrawal.
- SLEEP_BETWEEN_WITHDRAW_SEC: The duration to sleep (in seconds) between withdrawal operations.
- WITHDRAW_EXCHANGE_ADDRESS: The withdrawal address for exchanging tokens.
- SLEEP_BETWEEN_CHECK_BALANCES_SEC: The duration to sleep (in seconds) between checking account balances.
- SLEEP_BETWEEN_CHECK_MINTED_SEC: The duration to sleep (in seconds) between checking minted transactions.
- TXS_API_URL: The API URL for blockchain transactions data.
- MINTED_API_URL: The API URL for checking minted transactions.
- MEMO: A base64-encoded string used as a memo in transactions.
- NATIVE_DENOM: The denomination of the native token.
- FILE_ACCOUNTS: The file path for the accounts information.
- UNATIVE_PER_NATIVE: The conversion rate from micro native to native.
- NATIVE_TICK: The ticker symbol for the native token.
- ADDRESS_LENGTH: The expected length of a blockchain address.
- ADDRESS_PREFIX: The prefix for blockchain addresses.
- Run
npm run update
. - Run
npm install
. - Copy the new
config.example.js
to yourconfig.js
.