opentonapi
Opentonapi simplifies development of TON-based applications and provides an API centered around high-level concepts like Jettons, NFTs and so on keeping a way to access low-level details.
파일 탐색기
최종 버전 다운로드 (.zip)- create-tonapi-go-pull-request.yaml
- publish-image.yaml
- test.yaml
- example.http
- http-client.env.json
- jsonify.go
- openapi.json
- openapi.yml
- rt.yml
- main.go
- 01_OVERVIEW.md
- 02_SETUP_AND_RUN.md
- 03_STRUCTURE.md
- README.md
- camel_snake.go
- camel_test.go
- hash.go
- json.go
- maps.go
- pointer.go
- slices.go
- snake_test.go
- addressbook.go
- addressbook_test.go
- attached_accounts.go
- pools.go
- tf_pools.json
- active.en.toml
- active.ru.toml
- format_tokens.go
- format_tokens_test.go
- i18n.go
- i18n_test.go
- block-1-8000000000000000-34336028.json
- block-1-8000000000000000-34336196.json
- block-txs-1.json
- block-txs-2.json
- block-txs-3.json
- config-params-1.boc
- config-params-1.json
- decode-message-highload-v2.json
- decode-message-v4.json
- jetton-balances.json
- account_converters.go
- account_executor.go
- account_handlers.go
- account_handlers_test.go
- auction_handlers.go
- blockchain_converters.go
- blockchain_converters_test.go
- blockchain_handlers.go
- blockchain_handlers_test.go
- converters.go
- converters_test.go
- decode_message.go
- decode_message_test.go
- defi_converters.go
- dns_converters.go
- dns_handlers.go
- emulation.go
- emulation_test.go
- event_converters.go
- event_converters_test.go
- event_handlers.go
- event_handlers_test.go
- extra_currency_handlers.go
- gasless_handlers.go
- handler.go
- interfaces.go
- jetton_converters.go
- jetton_handlers.go
- jetton_handlers_test.go
- library_handler.go
- limits.go
- liteserver_converters.go
- liteserver_handlers.go
- metadata.go
- middlewares.go
- migration_handlers.go
- migration_handlers_test.go
- multisig_handlers.go
- nft_converters.go
- nft_converters_test.go
- nft_handlers.go
- normalized_metadata.go
- openapi.go
- prepare_test.go
- purchase_handlers.go
- rates_handlers.go
- rewards_handlers.go
- server.go
- staking_converters.go
- staking_handlers.go
- staking_handlers_test.go
- storage_handlers.go
- suite_test.go
- tonconnect_handlers.go
- utils.go
- wallet_handlers.go
- run.go
- bidask-ton-usdt-swap.json
- bidask-usdt-ton-swap.json
- bidask-usdt-usde-swap.json
- bidask-v2-usdt-ton-swap.json
- buy-nft-on-fragment.json
- cancel-by-expire-subscription-v2-wallet-v4.json
- cancel-by-expire-subscription-v2-wallet-w5.json
- cut-jetton-transfer.json
- dedust-swap-from-ton.json
- dedust-swap-jettons.json
- dedust-swap-to-ton.json
- dedust-swap-with-omniston-new.json
- dedust-swap-with-omniston-old.json
- deploy-contract.json
- deploy-with-payment-subscription-v2-wallet-v4.json
- deploy-with-payment-subscription-v2-wallet-w5.json
- deploy-without-payment-subscription-v2-wallet-v4.json
- deploy-without-payment-subscription-v2-wallet-w5.json
- deposit-both-ton-bmton-liquidity-bidask-with-refund.json
- deposit-both-ton-bmton-liquidity-bidask.json
- deposit-hydra-usdt-liquidity-bidask.json
- deposit-liquid-staking.json
- deposit-ton-liquidity-tonco.json
- deposit-ton-storm-liquidity-stonfi.json
- deposit-ton-usdt-liquidity-mooncx.json
- deposit-ton-usdt-liquidity-tonco.json
- deposit-usdt-earn-affluent-with-single-oracle.json
- deposit-usdt-earn-affluent.json
- deposit-usdt-liquidity-bidask.json
- destroy-by-beneficiary-subscription-v2-wallet-v4.json
- destroy-by-beneficiary-subscription-v2-wallet-w5.json
- destroy-by-subscriber-subscription-v2-wallet-v4.json
- destroy-by-subscriber-subscription-v2-wallet-w5.json
- disintar-nft-purchase.json
- domain-renew.json
- encrypted-comment.json
- ethena-deposit-stake-request.json
- ethena-tsusde-transfer.json
- ethena-withdraw-stake-request.json
- failed-dedust-swap.json
- failed-simple-transfer.json
- failed-transfer-with-gas-fee-1-TON.json
- ffvault-deposit-stake.json
- ffvault-withdrawal-request.json
- flawed-jetton-transfer-two-out.json
- flawed-jetton-transfer.json
- getgems-nft-purchase-v4.json
- getgems-nft-purchase.json
- getgetms-cancel-sale.json
- governance_jetton_mint.json
- ihr-fee.json
- instant-withdraw-request-usdt-affluent-with-multiple-oracle.json
- instant-withdraw-request-usdt-affluent-with-single-oracle.json
- instant-withdraw-usdt-affluent.json
- jetton-transfer-to-another-person.json
- jetton-transfer-to-myself.json
- liquid-withdraw-pending-request.json
- megatonfi-swap.json
- mooncx-ton-usdt-swap.json
- mooncx-usdt-ton-swap.json
- multiple-call-contracts.json
- new-withdraw-stake-request.json
- nft-transfer.json
- not-merge-simplest-straw.json
- not-to-merge-big-bubble-in-the-middle.json
- not-to-merge-bubble-in-the-beginning-with-tail.json
- not-to-merge-bubble-in-the-beginning.json
- not-to-merge-bubble-in-the-end-with-tail.json
- not-to-merge-bubble-in-the-end.json
- not-to-merge-bubble-in-the-middle-with-tail.json
- not-to-merge-bubble-in-the-middle.json
- not-to-merge-bubble-in-the-very-beginning.json
- old-withdraw-stake-request.json
- prolong-with-caller-subscription-v2-wallet-v4.json
- prolong-with-caller-subscription-v2-wallet-w5.json
- prolong-without-caller-subscription-v2-wallet-v4.json
- prolong-without-caller-subscription-v2-wallet-w5.json
- pyth-oracle-request.json
- simple-transfer.json
- simple-transfers-one-failed.json
- stonfi-failed-swap.json
- stonfi-partial-cross-swap.json
- stonfi-purchase-jUSDT.json
- stonfi-swap-jUSDT-STON.json
- stonfi-swap-usdt-ton-battery.json
- stonfi-swap-usdt-ton.json
- stonfi-v2-multihop-swap.json
- stonfi-v2-swap-ref.json
- stonfi-v2-swap-simple.json
- subscription-init.json
- subscription-prolongation.json
- swap-snotfi-then-tonco.json
- telemint-deploy.json
- tf-nominator-deposit.json
- tf-nominator-process-withdraw-requests.json
- tf-nominator-request-a-withdraw.json
- tf-update-validator-set.json
- tonco-failed-ton-swap.json
- tonco-storm-usdt-swap.json
- tonco-swap-to-another-account.json
- tonco-ton-usdt-swap.json
- tonco-usdt-ton-swap.json
- tonstake-withdraw.json
- tonstakers-stake-withdraw.json
- withdraw-request-usdt-affluent-with-multiple-oracle.json
- withdraw-request-usdt-affluent-with-single-oracle.json
- withdraw-request-usdt-affluent.json
- wton-mint.json
- account.go
- actions.go
- address_book.go
- auctions.go
- bath.go
- bath_test.go
- bidask.go
- bubble.go
- bubble_tx.go
- bubble_tx_test.go
- contract_deploy.go
- dedust.go
- dns.go
- extensions.go
- gaslless.go
- intentions.go
- jettons.go
- liquidity.go
- matcher.go
- megatonfi.go
- mooncx.go
- nft.go
- nft_purchase.go
- oracle.go
- payments.go
- staking.go
- stonfi.go
- straw_metrics.go
- straws.go
- subscriptions.go
- tf_nominators.go
- tonco.go
- utils.go
- value_flow.go
- elector.go
- errors.go
- indexer.go
- msg_sender.go
- msg_sender_test.go
- autoinvalidate_cache.go
- cache.go
- chainstate.go
- config.go
- account.json
- convert-tx-1.json
- account.go
- attached_account.go
- auction.go
- block.go
- converters.go
- converters_test.go
- dns.go
- elector.go
- errors.go
- extra_currencies.go
- filter.go
- invoice.go
- jetton.go
- jetton_transfer.go
- libraries.go
- libraries_test.go
- multisig.go
- nft.go
- plugin.go
- price.go
- staking.go
- storage_provider.go
- subscription.go
- trace.go
- transactions.go
- trust.go
- affluent_card.webp
- affluent_full.webp
- affluent_icon.webp
- bemo_card.webp
- bemo_full.webp
- bemo_icon.webp
- bidask_card.webp
- bidask_full.webp
- bidask_icon.webp
- coffin_card.webp
- coffin_full.webp
- coffin_icon.webp
- dedust_card.webp
- dedust_full.webp
- dedust_icon.webp
- ethena_card.webp
- ethena_full.webp
- ethena_icon.webp
- evaa_card.webp
- evaa_full.webp
- evaa_icon.webp
- farmix_card.webp
- farmix_full.webp
- farmix_icon.webp
- fiva_card.webp
- fiva_full.webp
- fiva_icon.webp
- getgems_card.webp
- getgems_full.webp
- getgems_icon.webp
- hipo_card.webp
- hipo_full.webp
- hipo_icon.webp
- jvault_card.webp
- jvault_full.webp
- jvault_icon.webp
- kton_card.webp
- kton_full.webp
- kton_icon.webp
- morpho_card.webp
- morpho_full.webp
- morpho_icon.webp
- re7_labs_card.webp
- re7_labs_full.webp
- re7_labs_icon.webp
- settle_card.webp
- settle_full.webp
- settle_icon.webp
- stakee_card.webp
- stakee_full.webp
- stakee_icon.webp
- stonfi_card.webp
- stonfi_full.webp
- stonfi_icon.webp
- storm_card.webp
- storm_full.webp
- storm_icon.webp
- swapcoffee_card.webp
- swapcoffee_full.webp
- swapcoffee_icon.webp
- thusd_card.webp
- thusd_full.webp
- thusd_icon.webp
- ton_card.webp
- ton_full.webp
- ton_icon.webp
- tonco_card.webp
- tonco_full.webp
- tonco_icon.webp
- tonraffles_card.webp
- tonraffles_full.webp
- tonraffles_icon.webp
- tonstakers_card.webp
- tonstakers_full.webp
- tonstakers_icon.webp
- utonics_card.webp
- utonics_full.webp
- utonics_icon.webp
- whales_card.webp
- whales_full.webp
- whales_icon.webp
- x1000_card.webp
- x1000_full.webp
- x1000_icon.webp
- dedust.go
- stonfi.go
- assets.go
- defi_masters_mapping.json
- defi_providers.json
- handler.go
- types.go
- conv.go
- models.go
- image.go
- account.go
- auction.go
- block.go
- config.go
- dedust.go
- dns.go
- invoice.go
- jetton.go
- jetton_test.go
- jetton_tranfer.go
- libraries.go
- libraries_test.go
- litestorage.go
- litestorage_test.go
- missed_events.go
- nft.go
- observer.go
- raw.go
- shard.go
- stacking.go
- stonfi.go
- subscription.go
- trace.go
- trace_test.go
- transactions.go
- utils.go
- oas_cfg_gen.go
- oas_client_gen.go
- oas_defaults_gen.go
- oas_handlers_gen.go
- oas_interfaces_gen.go
- oas_json_gen.go
- oas_labeler_gen.go
- oas_middleware_gen.go
- oas_operations_gen.go
- oas_parameters_gen.go
- oas_request_decoders_gen.go
- oas_request_encoders_gen.go
- oas_response_decoders_gen.go
- oas_response_encoders_gen.go
- oas_router_gen.go
- oas_schemas_gen.go
- oas_server_gen.go
- oas_unimplemented_gen.go
- oas_validators_gen.go
- http_errors.go
- context.go
- pyth.go
- pyth_price_feeds.json
- calculator.go
- market.go
- math.go
- math_test.go
- metrics.go
- rates_test.go
- sources.go
- collection_plug.png
- domain_plug.png
- gram_circular_badge.svg
- gram_circular_badge_200.png
- gram_diamond_mark.svg
- gram_diamond_mark_200.png
- jetton_plug.png
- token_placeholder.png
- ton_symbol.png
- wallet_plug.png
- affluent.go
- collections.go
- dex.go
- dns.go
- errors.go
- extra_currency.go
- generator.go
- init.go
- jettons.go
- media.go
- protocols.go
- telegram.go
- tf.go
- whales.go
- whitelist.go
- model.go
- nton.go
- rpccount.go
- blockchain.go
- blocks.go
- client.go
- loaders.go
- loaders_test.go
- pool.go
- retry.go
- roundrobin.go
- rounds.go
- service.go
- shared.go
- stats.go
- math.go
- math_test.go
- score.go
- main.go
- spam.go
- utils.go
- verifier.go
- risk.go
- risk_test.go
- README.md
- .gitignore
- CHANGELOG.md
- Dockerfile
- gen.go
- go.mod
- go.sum
- LICENSE
- Makefile
- ogen.yaml
- README.md
- tools.go
# 설치 가이드
1. 코드 내려받기
git clone https://github.com/tonkeeper/opentonapi
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd opentonapi
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. Docker
쉬움 추천사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Docker Desktop 컨테이너를 빌드하고 실행하려면 필요합니다. 설치 후 실행해서 백그라운드에 켜두세요.
docker build -t opentonapi .
Dockerfile을 기반으로 실행 가능한 이미지를 빌드합니다.
docker run -p 8080:80 opentonapi
빌드된 이미지를 실제 컨테이너로 실행합니다.
터미널에 docker compose ps 를 입력해 컨테이너들이 Up 상태인지 확인하세요. README에 포트 번호가 적혀있다면 브라우저에서 http://localhost:포트번호 로 접속해보세요.
3. Go
보통go build ./...
Go 프로그램을 컴파일해 실행 파일을 만듭니다.
go run .
따로 빌드하지 않고 바로 Go 프로그램을 실행합니다.
빌드가 에러 없이 끝나면 성공입니다. go run . 을 썼다면 터미널 출력을 확인하세요.
4. Make
보통사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Make Linux/macOS는 보통 기본 설치되어 있습니다. Windows는 별도 설치(예: MSYS2, WSL)가 필요합니다.
make
생성된 빌드 설정을 바탕으로 실제 컴파일을 진행해 실행 파일을 만듭니다.
에러 없이 끝나면 성공입니다. 생성된 실행 파일을 직접 실행해보세요.
// repository documentation
Was this content helpful?
(0 ratings)
