From 167a2fb796471e1de16aef1f5b4aa6423908f6fb Mon Sep 17 00:00:00 2001 From: matveyb Date: Sat, 16 Mar 2024 10:31:54 +0100 Subject: [PATCH] readme update --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index ceb9af2..b1770e3 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,11 @@ NOTE: scripts are prepared and tested on **Ubuntu 20.04**. You may need to modif DATABASE_URL - Postgres connection url (example: postgresql://postgres:postgres@127.0.0.1/ton_wallet_api) + Important to add sometimes: + -f -> Clear "/var/db/ton-wallet-api" on update' + -s -> Restart "timesyncd" service' + + ./scripts/update.sh -t native --database-url ${DATABASE_URL} -f -s ### Let's start using Wallet API @@ -137,6 +142,9 @@ NOTE: scripts are prepared and tested on **Ubuntu 20.04**. You may need to modif ./scripts/wallet.sh -m create_account ``` + ### VIA JS API, start a project, and call /create/wallet route + https://github.com/.... + 2. #### Callbacks In the table `api_service_callback` we enter the address of our backend, which will deal with payment processing. After receiving or sending new transactions or token transactions Wallet API will call web hook with POST method on @@ -188,6 +196,9 @@ NOTE: scripts are prepared and tested on **Ubuntu 20.04**. You may need to modif --src-addr {sender} --dst-addr {recipient} --amount {amount} ``` + ### Or via JS API, call 'transferNative' function + https://github.com/.... + You can track the status of a transaction with: 1) (Recommended way) via callback `AccountTransactionEvent`, which has transactionStatus field: * `expired` - end state for failed transactions,