TON Dev Chat
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
Try setting path to openssl root folder in OPENSSL_ROOT_DIR
./ton/crypto/openssl
/opt/homebrew/Cellar/openssl@3/3.0.5
?
-- Could NOT find mhd (missing: MHD_INCLUDE_DIR MHD_LIBRARY)
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/d
ean/ton/ton-build
wallet.methods.transfer.send
in tonweb ?.func
is more preferable now, because it is much simpler to search such files (a lot of other applications use .fc
).
recv_internal
/ recv_external
in smart contracttoncli start nft_colletion
/ toncli start jetton_minter
nft_item
/ jetton_wallet
.accept_message
The same message will be accepted by contract over and over until it consumes the whole balance.
mytonctrl
and validators.mytonctrl
successfully. However, it looks like that I have to keep private keys on the server. Maybe as part of the validation, my node needs to sign blocks, but in this case, do everyone keep their keys on the servers?
// Sign custom hexPublic key can be retrieved with
const signature = await provider.send(
'ton_rawSign',
[{
data: 'ABC123'
}]
)
console.log('signature is ' + signature)
get_public_key()
method of wallet smart contract if you know user's wallet address
tonweb
or nacl
delete_pool
command in mytonctrl
. archival
). getTransactions
is one of such methods.
curl -x in1.ton.org:8080 http://test.ton
doesnt work for me(
[ 2][t 1][2022-10-02 10:00:11.736060209][TonlibClient.cpp:2052][!tonlibclient][&!config->ignore_cache_] Unknown LastBlockState: [Error : 0 : Unknown key]
[ 94%]
Linking CXX executable tlbc
Undefined symbols for architecture arm64:
"_CRYPTO_THREADID_set_callback", referenced from:
td::init_openssl_threads() in libtdutils.a(crypto.cpp.o)
"_CRYPTO_THREADID_set_pointer", referenced from:
td::(anonymous namespace)::openssl_threadid_callback(crypto_threadid_st*) in libtdutils.a(crypto.cpp.o)
"_CRYPTO_get_locking_callback", referenced from:
td::init_openssl_threads() in libtdutils.a(crypto.cpp.o)
"_CRYPTO_num_locks", referenced from:
td::(anonymous namespace)::openssl_mutexes() in libtdutils.a(crypto.cpp.o)
"_CRYPTO_set_locking_callback", referenced from:
td::init_openssl_threads() in libtdutils.a(crypto.cpp.o)
"_OPENSSL_add_all_algorithms_noconf", referenced from:
td::init_crypto()::$_6::operator()() const in libtdutils.a(crypto.cpp.o)
ld: symbol(s) not found for architecture arm64
clang:
error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [crypto/tlbc] Error 1
make[2]: *** [crypto/CMakeFiles/tlbc.dir/all] Error 2
make[1]: *** [crypto/CMakeFiles/func.dir/rule] Error 2
make: *** [func] Error 2
brew install openssl
-- Found OpenSSL: /opt/homebrew/Cellar/openssl@1.1/1.1.1q/lib/libcrypto.dylib (found version "1.0.2o")
xcode-select --install
[ 2][t 1][2022-10-02 10:00:11.736060209][TonlibClient.cpp:2052][!tonlibclient][&!config->ignore_cache_] Unknown LastBlockState: [Error : 0 : Unknown key]
[ 2][t 1][2022-10-02 10:00:11.736060209][TonlibClient.cpp:2052][!tonlibclient][&!config->ignore_cache_] Unknown LastBlockState: [Error : 0 : Unknown key]
rldp-http-proxy -p 8080 -a <your-ip>:3333 -A <your-adnl> -L ‘*’ -C global.config.json --verbosity 3
.Unknown LastBlockState
error — do not worry, it is OK.curl -x <your-ip>:8080 http://<your-adnl>.adnl -v
. In logs you shoud find 200 status and code of response.account_uninit
sendfile test-query.boc
[ 1][t 2][2022-10-03 08:54:55.020132][lite-client.cpp:1153][!testnode] sending query from file test-query.boc
[ 3][t 2][2022-10-03 08:54:55.378497][lite-client.cpp:1163][!testnode] external message status is 1
getaccount EQBMZutX4Q0TNYHMLWGIfrsJ6uyAebaYX4i6nzLk3UKCMd2C
[ 3][t 2][2022-10-03 08:57:06.242067][lite-client.cpp:1196][!testnode] requesting account state for 0:4C66EB57E10D133581CC2D61887EBB09EAEC8079B6985F88BA9F32E4DD428231 with respect to (-1,8000000000000000,23995771):7DF12AD58025B977FBA29009A39E4061E113C00BFBA57ACD2372AA0066AFF182:6C8E699DED26007408A4130D74A402A89696F120B2F5F4D2D316250CA642AF38 with savefile `` and mode -1
[ 3][t 1][2022-10-03 08:57:06.864257][lite-client.cpp:1905][!testnode] got account state for 0:4C66EB57E10D133581CC2D61887EBB09EAEC8079B6985F88BA9F32E4DD428231 with respect to blocks (-1,8000000000000000,23995771):7DF12AD58025B977FBA29009A39E4061E113C00BFBA57ACD2372AA0066AFF182:6C8E699DED26007408A4130D74A402A89696F120B2F5F4D2D316250CA642AF38 and (0,8000000000000000,29434307):7857B454F1D54E29D8AEA4F636741067EA4BB1825758C76C37FBCA359C70A192:E735910280C84210AAEEE6C0FBBF1E1F7EA78F1B9CD980BCAB15F59B23AAB8AE
account state is (account
addr:(addr_std
anycast:nothing workchain_id:0 address:x4C66EB57E10D133581CC2D61887EBB09EAEC8079B6985F88BA9F32E4DD428231)
storage_stat:(storage_info
used:(storage_used
cells:(var_uint len:1 value:1)
bits:(var_uint len:1 value:103)
public_cells:(var_uint len:0 value:0)) last_paid:1664786907
due_payment:nothing)
storage:(account_storage last_trans_lt:31707894000004
balance:(currencies
grams:(nanograms
amount:(var_uint len:4 value:19999996))
other:(extra_currencies
dict:hme_empty))
state:account_uninit))
x{C004C66EB57E10D133581CC2D61887EBB09EAEC8079B6985F88BA9F32E4DD42823120259C319D50ED80000735A4708A611004C4B3F04_}
last transaction lt = 31707894000003 hash = 13EBAEF2C9F83AE8FFEED2EC353338AEE6BF221D0F6B202AB7BFCCE4119A30BE
account balance is 19999996ng
the getaccount xxx command will return the same result until the reference block is updated to a newer value by a last command. In this way one can study the state of all accounts and obtain consistent results.
sendfile test-query.boc
[ 1][t 2][2022-10-03 08:56:51.627659][lite-client.cpp:1153][!testnode] sending query from file test-query.boc
[ 3][t 1][2022-10-03 08:56:53.204627][lite-client.cpp:1163][!testnode] external message status is 1
[ 3][t 1][2022-10-03 08:56:53.204933][lite-client.cpp:483][!testnode] obtained block (-1,8000000000000000,23995771):7DF12AD58025B977FBA29009A39E4061E113C00BFBA57ACD2372AA0066AFF182:6C8E699DED26007408A4130D74A402A89696F120B2F5F4D2D316250CA642AF38 from server
[ 3][t 1][2022-10-03 08:56:53.205094][lite-client.cpp:521][!testnode] obtained 12783 data bytes for block (-1,8000000000000000,23995771):7DF12AD58025B977FBA29009A39E4061E113C00BFBA57ACD2372AA0066AFF182:6C8E699DED26007408A4130D74A402A89696F120B2F5F4D2D316250CA642AF38
searching.ton
.tonweb-mnemonic
is a recommended package that can be used to generate random seed words and derive the required keys from it.
Error interpreting file `build/main.cell.fif`: main.cell.fif:29: PROCINLINE:<{:-?
toncli get, i get an error. Is that normal or i have a bad configuration in the dependencys .
$> func ...
tonconnect is returning error{}
i have no idea where to use my wallet id to connect..
running the root / shows login by link after clicking the link its just a deadend
~
.(https://github.com/ton-community/ton/blob/84c0562f92aafdc16c59bcf04f4e09d2753eade2/src/boc/boc.ts#L156)
tail -f /var/ton-work/log.thread*
ttps://testnet.toncenter.com/api/v2/jsonRPC
await wallet.deploy();
const transaction = await tonweb.getTransactions(address, 1)[0];
const hash = transaction.transaction_id.hash
Fift.fif
: cannot locate file Fift.fif
" Any hints?