I’m working on getting a plugin built by PickPump on Eliza. I’m able to load the plugin. However, the token creation fails and returns this error: Failed to create token: Cannot read properties of null (reading 'createActor')
- Does anyone know what’s the right private key “format” to get a Wallet Provider instance?
- If anyone was able to run the ICP plugin on Eliza, let me know the steps you took to input the right private key in INTERNET_COMPUTER_PRIVATE_KEY.
Here are the steps that I am taking:
-
I’m downloading a PEM file (let’s call it
pkey.pem
) from my Plug wallet and then running this in the command line:
openssl pkey -in pkey.pem -text -noout
-
The command line prints out something like this:
openssl pkey -in pkey2.pem -text -noout
ED25519 Private-Key:
priv:
aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:
aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:
aa:aa
pub:
ba:ba:ba:ba:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:
aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:
aa:aa
- I add the following to my .env file. I know that my
.env
file is loading properly because I have other API keys of services that are running properly:
INTERNET_COMPUTER_PRIVATE_KEY=aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:
aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa
- However, I get an error
Failed to create token: Cannot read properties of null (reading 'createActor')
.
The source code is here: https://github.com/elizaOS/eliza/blob/main/packages/plugin-icp/src/providers/wallet.ts.
From what I can infer, potentially, I am sending in a private key that is not being recognized and cannot instantiate a new provider instance.