KTHULU DOCS
  • 소개
    • 크툴루 소개
    • 스캐너 소개
  • 크툴루 가이드
    • 이용 가이드
      • 다운로드 및 계정 생성
      • 컬렉션 및 NFT 조회
      • NFT 전송
      • 계정 활동
  • 크툴루 개발가이드
    • Quick Start
    • WEB, APP SDK 개발 가이드
      • 계정 생성
      • 계정 복원
      • 계정 정보 조회
      • 지갑 모드
      • 가스비 추정
      • 트랜잭션 상태 확인
      • 토큰 발행
      • 토큰 정보 조회
      • 토큰 목록 조회
      • 토큰 잔고 조회
      • 토큰 거래내역
      • 토큰 전송
      • 토큰 승인
      • 토큰 스왑
      • 토큰 브릿지
      • NFT 컬렉션 생성
      • NFT 민트 (발행)
      • NFT 다중민트 (발행)
      • NFT 조회
      • NFT 거래내역
      • NFT 총발행량
      • NFT 전송
      • NFT 다중전송
      • NFT 소각
      • NFT 숨김
      • NFT 숨김 조회
      • NFT 브릿지
      • NFT 스캠방지
    • Scanner APP SDK 개발 가이드
      • NFT 홀더인증(서명)
      • NFT 홀더인증(검증)
      • NFT 홀더인증(확인)
    • 블록체인 End-Point
      • Ethereum
      • Klaytn
      • Polygon
      • BNB
    • 블록체인 스캐너(Crawler) 로직
      • crawler_table
      • nft_collection_table
      • nft_owner_table
      • nft_token_table
      • nft_transaction_table
      • nft_hide_table
      • nodes_table
      • statistics_table
      • token_owner_table
      • token_table
      • token_transfer_table
      • users_table
      • Crawler Flow
  • 모니터링
    • 모니터링24
  • 고객센터
    • 문의 및 제안
  • 공지사항
    • 공지사항
      • Kthulu App
      • Live Scanner
      • Blockchain Node
    • 릴리즈 노트
  • 크툴루 약관
    • 개인정보처리방침
    • 서비스이용약관
  • 스캐너 약관
    • 개인정보처리방침
    • 서비스이용약관
  • 참조
    • 매뉴얼
      • Live Scanner 운영자 메뉴얼
    • SW사양서
      • Kthulu SDK
      • Live Scanner(Crawler)
Powered by GitBook
On this page
  1. 크툴루 개발가이드
  2. WEB, APP SDK 개발 가이드

가스비 추정

개요

블록체인 네트워크 별 현재 가스비를 확인할 수 있습니다.

추가로, 특정 트랜잭션에 대해 발생하는 예상 GasLimit을 확인할 수 있습니다. *실행 가능한 트랜잭션이어야 합니다.

Parameters

이름
타입
설명
참조

network

String

네트워크 종류

required

tx_type

String

트랜잭션 종류 별 가스비

required

token_address

String

토큰 아이디

(select) (0x0000000...00000000 : 메인넷 코인)

from

String

보내는 계정

(select)

to

String

받는 계정

(select)

amount

String

토큰 수량

(select)

token_id

String

NFT 토큰 아이디

(select)

to_token_address

String

받는 토큰 아이디

(select) (0x0000000...00000000 : 메인넷 코인)

to_network

String

받는 네트워크

(select)

batch_token_id

Array<String>

NFT 토큰 아이디 (다중)

(select)

batch_token_amount

Array<String>

토큰 수량 (다중)

(select)

name

String

토큰 이름

(select)

symbol

String

토큰 심볼

(select)

base_uri

String

컬렉션 베이스 URI

(select)

uri_type

String

NFT uri 구조 선택

(select)

Response

이름
타입
설명

result

String

호출 결과 성공여부 (성공: OK, 실패: FAIL)

value (array of object)

이름
타입
설명

gas

BigUInt

추정 가스비 (wei)

Example

// parameters
val network = "polygon"
val tx_type = "baseFee"
val from = "0x..."
val to = "0x..."
val amount = "0.01"

var getEstimateGasA = getEstimateGasAsync(network, tx_type)
val getEstimateGasB = getEstimateGasAsync(
                    network,
                    "transferCoin",
                    null,
                    from,
                    to,
                    amount
                )
println(getEstimateGasA)
println(getEstimateGasB)

// getEstimateGas result log
/**
  {
     "result":"OK",
     "value":[
        {
           "gas":19190895968 // wei
        }
     ]
  }
*/

Parameters

이름
타입
설명
참조

network

String

네트워크 종류

required

tx_type

String

트랜잭션 종류 별 가스비

required

token_address

String

토큰 아이디

(select) (0x0000000...00000000 : 메인넷 코인)

from

String

보내는 계정

(select)

to

String

받는 계정

(select)

amount

String

토큰 수량

(select)

token_id

String

NFT 토큰 아이디

(select)

to_token_address

String

받는 토큰 아이디

(select) (0x0000000...00000000 : 메인넷 코인)

to_network

String

받는 네트워크

(select)

batch_token_id

Array<String>

NFT 토큰 아이디 (다중)

(select)

batch_token_amount

Array<String>

토큰 수량 (다중)

(select)

name

String

토큰 이름

(select)

symbol

String

토큰 심볼

(select)

base_uri

String

컬렉션 베이스 URI

(select)

uri_type

String

NFT uri 구조 선택

(select)

Response

이름
타입
설명

result

String

호출 결과 성공여부 (성공: OK, 실패: FAIL)

value (array of object)

이름
타입
설명

gas

BigUInt

추정 가스비 (wei)

Example

// parameters
let network = "ethereum"
let tx_type = "baseFee"
let from = "0x..."
let to = "0x..."
let amount = "0.01"

let getEstimateGasA = try await getEstimateGasAsync(network: network,
                                                    tx_type: tx_type)
                    
let getEstimateGasB = try await getEstimateGasAsync(network: network,
                                                    tx_type: tx_type,
                                                    from: from,
                                                    to: to,
                                                    amount: amount)
print(getEstimateGasA)
print(getEstimateGasB)

// getEstimateGas result log
/**
  {
     "result":"OK",
     "value":[
        {
           "gas":19190895968 // wei
        }
     ]
  }
*/
Previous지갑 모드Next트랜잭션 상태 확인

Last updated 1 year ago