Skip to main content

Get bound Accounts

This command is used to query the information of the bound Account based on the aspectId.

Command

npm run bound:account  -- --skfile {privateKey-path} \
--aspectId {aspect-id} \
--gas 200000

options:

  • --aspectId: aspectId. like '0xcfC6e698a9750251127e855BAEBe06729D28b96d'
  • --skfile : privateKey path for sender. (optional,default value ./privateKey.txt).
  • --gas : like 200000,(optional,default value 7000000).

Example

## usage 1
npm run bound:account -- --aspectId 0xcfC6e698a9750251127e855BAEBe06729D28b96d

## usage 2
npm run bound:account -- --aspectId 0xcfC6e698a9750251127e855BAEBe06729D28b96d \
--skfile ./privateKey2.txt

Command Output

If this command successful and the result printed:

## bound accounts : account address1, account address2...
bound accounts: 0x1E904b2409ca1e9b60337248d1DFc75c1882Dd3F

Customize

The logic for the create-account command is written in the scripts/get-bound-contract.cjs file, primarily relying on the implementation provided by the @artela/web3 API.
If needed, you can modify the logic within this file to achieve your specific functionalities.

Furthermore,you can modify the project.config.json in the project root folder to set the network configurations..