안녕하세요!
klip partners api를 통해서 card mint를 하고 있는데,
에러가 발생되어 문의드립니다.
// Klip card mint
const mint = async (accessToken, to, contract) => {
const headers = {
'Content-Type': 'application/json',
Authorization: accessToken,
}
const body = {
pin: process.env.klipPin,
to_address: to,
contract_address: contract,
name: 'Pedal',
description: 'Pedal description',
image: 'https://path_to_image/image.png',
}
const request = await axios({
method: 'post',
url: `${config.klip}/wallet/mint`,
headers,
data: body,
})
return request.data
}
위의 코드로 발행 요청을 하면 400 에러로 응답이 오고,
의 예제에 있는 mint_info.json의 pin, to_address, contract_address를 수정해서 curl로 실행을 하면
curl -X POST "https://api.klipwallet.com/v2/wallet/mint" \
-d @./mint.json \
-H "Authorization: ACCESSTOKEN" -H "Content-Type: application/json"
아래와 같은 에러 html 페이지가 응답되고 있습니다.
혹시 해당 에러와 관련되어 도움 받을 수 있을까요?