latestOpenAPI 3.0.32026-08-224982,0272.8 MB

e445c15e5bee

Staking Request

Upload KYC document and get IPFS hash

Accepts a KYC PDF document, uploads it to the XinFin MasterNode IPFS API, and returns the authoritative IPFS hash assigned by the network. Only supported for XDC and TXDC coins.

The returned hash must be included in the subsequent XDC stake request as kycHash. It is submitted to the validator contract in the AUTHORIZE (uploadKYC) transaction.

post/api/staking/v1/{coin}/wallets/{walletId}/kyc/upload

Path parameters

coin'xdc' | 'txdc' required

Must be xdc or txdc.

walletIdstring required
Example:59cd72485007a239fb00282ed480da1f

The wallet ID of the wallet used for staking.

Response

IPFS hash computed successfully.

hashstring required

IPFS CIDv0 hash of the uploaded KYC document. Must be included as kycHash in the subsequent XDC stake request.

Example response

{
  "hash": "QmT5NvUtoM5nWFfrQdVrFtvGfKFmG7AHE8P34isapyhCxX"
}