Closed varshney565 closed 2 months ago
yes i am getting exactly the same issue @martinsaporiti
Hi, ISSUER_API_IDENTITY METHOD, ISSUER_API_IDENTITY BLOCKCHAIN, ISSUER_API_IDENTITY_NETWORK variables are not used when you run the core API (running on port 3001). The command make run
runs the core API.
So if you are running the core API and you want to use ETH identity you have to:
# endpoint: HTTP://localhost:3001/v1/identities
# body:
{
"didMetadata":{
"method": "polygonid",
"blockchain":"polygon",
"network": "amoy",
"type": "ETH"
}
}
as result fo this you should have:
{
"address": "c2092ca2b69d332501f44ffc26394dad1ec7af6a",
"identifier": "did:polygonid:polygon:amoy:2qQ68JkRcf3ykwsHqB46fRPpdV9P1abkCjaHCEhSYF",
"state": {
"createdAt": "2024-04-26T11:31:10.546607Z",
"modifiedAt": "2024-04-26T11:31:10.546607Z",
"state": "0000000000000000000000000000000000000000000000000000000000000000",
"status": "confirmed"
}
}
http://localhost:3001/v1/did:polygonid:polygon:amoy:2qQ68JkRcf3ykwsHqB46fRPpdV9P1abkCjaHCEhSYF/claims
{ "credentialSchema":"https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json/KYCAgeCredential-v3.json", "type": "KYCAgeCredential", "credentialSubject": { "id": "did:polygonid:polygon:amoy:2qRsnkYbUHM3Cwx3WAowTjyUmH65zhhLmj88uGAfMM", "birthday": 19960424, "documentType": 2 }, "expiration": 202511092354 }
If you want to use the sepolia network you must have published the **State Contract** on that network.
I am sharing with you the screen recording of the flow in which I am getting the error doing the same thing as you are doing.
https://github.com/0xPolygonID/issuer-node/assets/87566789/49b341d5-0610-4fd3-a19d-6341b6b18171
Yeap, it seems to be right. Have you changed the ISSUER_ETHEREUM_CONTRACT_ADDRESS with your state contract in Sepolia?
@varshney565 thank you for the issue. Wait for this PR to be added to the main branch, or add this line and deploy the state contract again. It should help.
i am also facing the same issue.
Yeap, it seems to be right. Have you changed the ISSUER_ETHEREUM_CONTRACT_ADDRESS with your state contract in Sepolia?
yes i have changed that address
Hi @varshney565 @saiharish-1029 @DSHIVAAY-23. Could you please try redeploying the state contract again? But first of all, pull the latest changes for the contract repository.
Hi @ilya-korotya yes we have redeployed the state contract and its working fine now we are not getting that error , Thankyou for support
@varshney565 @saiharish-1029 @DSHIVAAY-23. I'm going to close the issue because it's resolved. Feel free to open it again.
WHAT I HAVE DONE
I have filled the env file with suitable parameters including setting the Ethereum node URL,Ethereum contract address, ISSUER_API_IDENTITY_METHOD=polygonid,ISSUER_API_IDENTITY_BLOCKCHAIN=eth,ISSUER_API_IDENTITY_NETWORK=sepolia(as I am using sepolia network) ISSUER_API_UI_KEY_TYPE=ETH. after that i have run the rhs service locally as mentioned in the polygonid docs about rhs. after that I have done make up and set up the vault and generate the issuer_did and does make run.
ISSUE THAT I AM FACING
I am getting the below error while publishing the id to on chain and generating the claim, PUBLISHING DID ON CHAIN
GENERATING THE CLAIM,
WHAT IT IS SHOWING ON ALCHEMY ABOUT PUBLISHING DID ON CHAIN.
![a1](https://github.com/0xPolygonID/issuer-node/assets/87566789/6cc2c1d3-708d-4b9b-adc0-2a597dd1c6e9)