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

Request

  • Base URL
    https://developers.bitgo.com
  • URL
    https://developers.bitgo.com/api/staking/v1/{coin}/wallets/{walletId}/kyc/upload
  • Auth
    none declared

Path parameters

coin'xdc' | 'txdc' required

Must be xdc or txdc.

walletIdstring required
Example:59cd72485007a239fb00282ed480da1f

The wallet ID of the wallet used for staking.

Request body multipart/form-data

filestring binary required

The KYC PDF document to upload (max 5MB).

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"
}

Changes

No operation changes recorded.