Intern/Project

[Intern] CCTP 조회 가능한 API 찾기

dbfl9911 2024. 12. 5. 19:08
반응형

근무 내용

  • 기존 방식대로 aws 배포 시도→ 실패 (wsl 설치후 배포 시도는 미완료)
  • CCTP 조회 가능한 API 찾아보기

 

근무 결과

Circle document

 

https://developers.circle.com/api-reference/stablecoins/common/get-messages

 

developers.circle.com

 

Range Api document

 

Get Transaction Details

Returns details of a transactions associated with the specified hash.

docs.range.org

 

orbitchain API document

 

REST API | Orbit Bridge

Returns the entire block info of the block with the matching block number. Returns the parsed block info which only contains transactions from/to Orbit Bridge of of the block with the matching block number. Note that this API only exists in specific chains

bridge-docs.orbitchain.io

https://bridge.orbitchain.io/open/v1/api/board/0x11ad686bdfb210e0ed636b619b6c7e65fd76645937704bbc0a3eab03198c72e5/1

각 체인에서 사용되는 USDC의 스마트 컨트랙트 주소 존재

- Ethereum: `0xA0b86991c6218b36c1d19d4a2e9eb0ce3606eb48`
- Avalanche: `0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E`
- Arbitrum: `0xFF970A61A04b1cA14834A43f5de4533ebDdb5CC8`
- Polygon: `0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174`
  • 데이터에서 source와 destination 확인 -> USDC 주소(저장소 별)와 매치 -> USDC 판별
  • 체인 간 이동인지 판별

=> CCTP 트랜잭션 판별 완료

 

 

Moralis API document

241205

  • 일단 Range 답장 기다려보기
  • 없으면 Moralis 무료 크레딧 쓰거나, orbitchain API 대체로 쓰기
  • 일정 부분 하드코딩 들어갈 수도 있음

🚩인사이트

[ 내일까지 할 일 ]

반응형