Whenever you setup a plugin node, a dedicated wallet will be generated and it is unique to that plugin node address. It is necessary to sufficiently fund your Plugin node with XDC for transaction fee & PLI for oracle fee.
So what if you want to withdraw a portion of this to your wallet?
Step 1) Every plugin node generates the unique wallet and generates the private key in database
Step 2) You can find the “private key’” for your wallet in “Keys” table in postgres
Step 3) With sudo user, you can view the json value in the table
Step 4) Copy down the json into a json file(let’s say — Test.json)
Step 5) Import this json into metamask to view your XDC / PLI balance
Step 1) Login into Postgres
sudo -u postgres -i
Point to right database
Step 2) Apply following Query
select json from keys LIMIT 1;
Step 3) Copy the json values into a test file
copy the complete json values into a test file.. say test.json