Matija Leban
Matija Leban

Reputation: 3

Having issues with solana cli token distribution, recieving error PickleDbError(Error { msg: EOF while parsing a value })

enter image description hereHi im recieving the error above in the title while running solana-tokens distribute-tokens on devnet. im following the instructions correctly. Below im adding an image of the error and other variables in the code. [enter image description here](https://i.sstatic.net/LhrL6Vcd.png)

I tirend looking on the internet but didnt find anything about this error.

Upvotes: 0

Views: 143

Answers (1)

Mohamad javad Safari
Mohamad javad Safari

Reputation: 82

In your code the --db-path must be the output path of the db created by the solana-tokens tool, so i shouldn't exists before head.

the csv file should be smth like this:

recipient_address,amount
GfvjdvM7Ue4q8D1f7FhK7Xa6PrW4Mw5VuwQxosbFvEHU,1
3C6tQpq5jZ9Pm3jgj28rPP5d3UypRkF6cd7Zy8Gw9DHz,2
8H3d4QpT4K7W8qH2wM7yL6T5dZ3E6A5sQ7vR6a2U6QzK,3

after creating the csv file catch your path to key-pair.json file by :

solana config get

and then you are good to go, run the following command to do the distribution:

solana-tokens distribute-tokens --db-path distribution.db --fee-payer /path/to/your/.config/solana/id.json --input-csv csv_file_you_created.csv --from /path/to/your/.config/solana/id.json

after that you can confirm the transaction by querying the balance of each address by using the below command:

solana balance GfvjdvM7Ue4q8D1f7FhK7Xa6PrW4Mw5VuwQxosbFvEHU

Upvotes: 0

Related Questions