Skip to content

kimnamhyeong01/dapp_xrpl

 
 

Repository files navigation

0. 실행 방법

도커로 실행

docker-compose build
docker-compose up

로컬에서 실행

yarn install
yarn start:dev

1. 클라이언트

API 요청 시 필요한 패키지

# npm이면 npm으로 다운받아주세요.
yarn add @apollo/client graphql cross-fetch

방법

  • localhost:5500/graphql 플레이그라운드 접속 가능
  • client_example.ts 예제 확인

2. API

1. save transaction

mutation {
  createPointTransaction(createPointTransactionInput: {
    value: Int!
    currency: String!
    transactionIndex: Int!
    transactionResult: String!
    account: string!
    destination: String!
    fee: Int!
    transactionType: String!
    path: [String!]
    hash: String
  }){
    // 받고 싶은 필드를 입력하세요. ex) id, value, currency
  }
}

2. fetch transaction

query {
  getPointTransactions {
    // 받고 싶은 필드를 입력하세요. ex) id, value, currency
  }
}

About

xrpl 기반 결제 웹 서비스

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 89.3%
  • JavaScript 10.7%