idena_lib_dart
Idena dart library for Flutter based on Official Idena Backoffice
RPC Methods (from http://rpc.idena.io)
dna_getBalance
import 'package:idena_lib_dart/model/response/dna_getBalance_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
DnaGetBalanceResponse dnaGetBalanceResponse = AppService().getBalanceGetResponse(address);
bcn_transactions
import 'package:idena_lib_dart/model/response/bcn_transactions_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
BcnTransactionsResponse bcnTransactionsResponse = AppService().getAddressTxsResponse(address, count);
dna_getCoinbaseAddr
import 'package:idena_lib_dart/model/response/dna_getCoinbaseAddr_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
DnaGetCoinbaseAddrResponse dnaGetCoinbaseAddrResponse = AppService().getDnaGetCoinbaseAddr(addressByDefault);
dna_identity
import 'package:idena_lib_dart/model/response/dna_identity_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
DnaIdentityResponse dnaIdentityResponse = AppService().getDnaIdentity(address);
dna_epoch
import 'package:idena_lib_dart/model/response/dna_getEpoch_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
DnaGetEpochResponse dnaGetEpochResponse = AppService().getDnaGetEpoch();
dna_ceremonyIntervals
import 'package:idena_lib_dart/model/response/dna_ceremonyIntervals_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
DnaCeremonyIntervalsResponse dnaCeremonyIntervalsResponse = AppService().getDnaCeremonyIntervals();
dna_becomeOnline
import 'package:idena_lib_dart/model/response/dna_becomeOnline_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
DnaBecomeOnlineResponse dnaBecomeOnlineResponse = AppService().becomeOnline();
dna_becomeOffline
import 'package:idena_lib_dart/model/response/dna_becomeOffline_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
DnaBecomeOfflineResponse dnaBecomeOfflineResponse = AppService().becomeOffline();
dna_sendTransaction
import 'package:idena_lib_dart/model/response/dna_sendTransaction_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
DnaSendTransactionResponse dnaSendTransactionResponse = AppService().sendTx(from, amount, to, privateKey, payload);
bcn_syncing
import 'package:idena_lib_dart/model/response/bcn_syncing_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
BcnSyncingResponse bcnSyncingResponse = AppService().checkSync();
bcn_mempool
import 'package:idena_lib_dart/model/response/bcn_mempool_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
BcnMempoolResponse bcnMempoolResponse = AppService().getMemPool(address);
bcn_transaction
import 'package:idena_lib_dart/model/response/bcn_transaction_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
BcnTransactionResponse bcnTransactionResponse = AppService().getTransaction(hash, address);
bcn_sendRawTx
import 'package:idena_lib_dart/model/response/bcn_send_raw_tx_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
BcnSendRawTxResponse bcnSendRawTxResponse = AppService().sendRawTx(hash, address);
dna_activateInvite
import 'package:idena_lib_dart/model/response/dna_activate_invite_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
DnaActivateInviteResponse dnaActivateInviteResponse = AppService().activateInvitation(key, address);
dna_sendInvite
import 'package:idena_lib_dart/model/response/dna_send_invite_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
DnaSendInviteResponse dnaSendInviteResponse = AppService().sendInvitation(address, amount, nonce, epoch);
dna_sign
import 'package:idena_lib_dart/deepLinks/deepLinkParamSignin.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
DeepLinkParamSignin deepLinkParam = AppService().signin(deepLinkParam, privateKey);
bcn_feePerGas
import 'package:idena_lib_dart/factory/app_service.dart';
int feePerGas = AppService().getFeePerGas();
bcn_txReceipt
import 'package:idena_lib_dart/model/response/contract/bcn_tx_receipt_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
BcnTxReceiptResponse bcnTxReceiptResponse = SmartContractService().getTxReceipt(txHash);
contract_deploy (TimeLock)
import 'package:idena_lib_dart/model/response/contract/contract_deploy_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
ContractDeployResponse contractDeployResponse = SmartContractService().contractDeployTimeLock(nodeAddress, timestamp, amount, maxFee);
contract_deploy (MultiSig)
import 'package:idena_lib_dart/model/response/contract/contract_deploy_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
ContractDeployResponse contractDeployResponse = SmartContractService().contractDeployMultiSig(nodeAddress, maxVotes, minVotes, amount, maxFee);
contract_estimateDeploy (TimeLock)
import 'package:idena_lib_dart/model/response/contract/contract_estimate_deploy_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
ContractEstimateDeployResponse contractEstimateDeployResponse = SmartContractService().contractEstimateDeployTimeLock(nodeAddress, timestamp, amount);
contract_estimateDeploy (MultiSig)
import 'package:idena_lib_dart/model/response/contract/contract_estimate_deploy_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
ContractEstimateDeployResponse contractEstimateDeployResponse = SmartContractService().contractEstimateDeployMultiSig(nodeAddress, maxVotes, minVotes, amount);
contract_call - method Transfer (TimeLock)
import 'package:idena_lib_dart/model/response/contract/contract_call_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
ContractCallResponse contractCallResponse = SmartContractService().contractCallTransferTimeLock(nodeAddress, contract, maxFee, destinationAddress, amount);
contract_call - method Send (MultiSig)
import 'package:idena_lib_dart/model/response/contract/contract_call_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
ContractCallResponse contractCallResponse = SmartContractService().contractCallSendMultiSig(nodeAddress, contract, maxFee, destinationAddress, amount);
contract_call - method Add (MultiSig)
import 'package:idena_lib_dart/model/response/contract/contract_call_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
ContractCallResponse contractCallResponse = SmartContractService().contractCallAddMultiSig(nodeAddress, contract, maxFee, destinationAddress, privateKey);
contract_call - method Push (MultiSig)
import 'package:idena_lib_dart/model/response/contract/contract_call_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
ContractCallResponse contractCallResponse = SmartContractService().contractCallPushMultiSig(nodeAddress, contract, maxFee, destinationAddress, amount);
contract_terminate (TimeLock)
import 'package:idena_lib_dart/model/response/contract/contract_terminate_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
ContractTerminateResponse contractTerminateResponse = SmartContractService().contractTerminateTimeLock(nodeAddress, contract, maxFee, destinationAddress);
contract_terminate (MultiSig)
import 'package:idena_lib_dart/model/response/contract/contract_terminate_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
ContractTerminateResponse contractTerminateResponse = SmartContractService().contractTerminateMultiSig(nodeAddress, contract, maxFee, destinationAddress);
contract_readData (uint64)
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
int value = SmartContractService().getContractReadDataUint64(contractAddress, key);
contract_readData (hex)
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
String value = SmartContractService().getContractReadDataHex(contractAddress, key);
contract_readData (byte)
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
int byte = SmartContractService().getContractReadDataHex(contractAddress, key);
contract_getStake
import 'package:idena_lib_dart/model/response/contract_get_stake_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
ContractGetStakeResponse contractGetStakeResponse = SmartContractService().getContractStake(contractAddress);
others methods
get Status
import 'package:idena_lib_dart/factory/app_service.dart';
String status = AppService().getWStatusGetResponse();
get Last Nonce
import 'package:idena_lib_dart/factory/app_service.dart';
int nonce = AppService().getLastNonce(address);
get Current Period
import 'package:idena_lib_dart/factory/app_service.dart';
String currentPeriod = AppService().getCurrentPeriod();
check Address
import 'package:idena_lib_dart/factory/app_service.dart';
bool isIdenaAddress = AppService().checkAddressIdena(address);
get Predict Smart Contract Address
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
String address = SmartContractService().getPredictSmartContractAddress(address);
get Smart Contract
import 'package:idena_lib_dart/model/response/contract/api_contract_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
ApiContractResponse apiContractResponse = SmartContractService().getContract(contractAddress);
get Smart Contract Balance Updates
import 'package:idena_lib_dart/model/response/api_contract_balance_updates_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
ApiContractBalanceUpdatesResponse apiContractBalanceUpdatesResponse = SmartContractService().getContractBalanceUpdates(address, contractAddress, limit);
get Smart Contract Transactions
import 'package:idena_lib_dart/model/response/api_contract_txs_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
ApiContractTxsResponse apiContractTxsResponse = SmartContractService().getContractTxs(address, address, limit, typeOfContract);
Libraries
- deepLinks/deepLinkParamSend
- deepLinks/deepLinkParamSignin
- deepLinks/idena_url
- enums/answer_type
- enums/epoch_period
- enums/identity_status
- enums/relevance_type
- enums/wallet_type
- factory/api/api_coins_service
- factory/app_service
- factory/smart_contract_service
- factory/validation_service
- model/address
- model/deployContractAttachment
- model/dictWords
- model/dna_all
- model/flip_examples
- model/flips
- model/node_type
- model/request/bcn_fee_per_gas_request
- model/request/bcn_mempool_request
- model/request/bcn_send_raw_tx_request
- model/request/bcn_syncing_request
- model/request/bcn_transaction_request
- model/request/bcn_transactions_request
- model/request/bcn_tx_receipt_request
- model/request/contract/contract_call_multisig_request
- model/request/contract/contract_call_request
- model/request/contract/contract_call_time_lock_request
- model/request/contract/contract_deploy_request
- model/request/contract/contract_estimate_call_request
- model/request/contract/contract_estimate_deploy_request
- model/request/contract/contract_estimate_terminate_request
- model/request/contract/contract_events_request
- model/request/contract/contract_get_stake_request
- model/request/contract/contract_iterate_map_request
- model/request/contract/contract_read_data_request
- model/request/contract/contract_readonly_call_request
- model/request/contract/contract_subscribe_to_event_request
- model/request/contract/contract_terminate_request
- model/request/contract/contract_unsubscribe_from_event_request
- model/request/dna_activate_invite_request
- model/request/dna_becomeOffline_request
- model/request/dna_becomeOnline_request
- model/request/dna_ceremonyIntervals_request
- model/request/dna_getBalance_request
- model/request/dna_getCoinbaseAddr_request
- model/request/dna_getEpoch_request
- model/request/dna_getFlipRaw_request
- model/request/dna_identity_request
- model/request/dna_send_invite_request
- model/request/dna_sendTransaction_request
- model/request/dna_signin_request
- model/request/flip_get_key_request
- model/request/flip_get_request
- model/request/flip_longHashes_request
- model/request/flip_shortHashes_request
- model/request/flip_submit_request
- model/request/flip_submitLongAnswers_request
- model/request/flip_submitShortAnswers_request
- model/request/flip_words_request
- model/response/api_get_address_response
- model/response/authenticate_response
- model/response/bcn_fee_per_gas_response
- model/response/bcn_mempool_response
- model/response/bcn_send_raw_tx_response
- model/response/bcn_syncing_response
- model/response/bcn_transaction_response
- model/response/bcn_transactions_response
- model/response/bcn_tx_receipt_response
- model/response/coins_price_response
- model/response/coins_response
- model/response/contract/api_contract_balance_updates_response
- model/response/contract/api_contract_response
- model/response/contract/api_contract_txs_response
- model/response/contract/contract_call_response
- model/response/contract/contract_deploy_response
- model/response/contract/contract_estimate_call_response
- model/response/contract/contract_estimate_deploy_response
- model/response/contract/contract_get_stake_response
- model/response/contract/contract_iterate_map_response
- model/response/contract/contract_read_data_byte_response
- model/response/contract/contract_read_data_hex_response
- model/response/contract/contract_read_data_uint64_response
- model/response/contract/contract_terminate_response
- model/response/dna_activate_invite_response
- model/response/dna_becomeOffline_response
- model/response/dna_becomeOnline_response
- model/response/dna_ceremonyIntervals_response
- model/response/dna_getBalance_response
- model/response/dna_getCoinbaseAddr_response
- model/response/dna_getEpoch_response
- model/response/dna_getFlipRaw_response
- model/response/dna_identity_response
- model/response/dna_send_invite_response
- model/response/dna_sendTransaction_response
- model/response/dna_signin_response
- model/response/flip_get_key_response
- model/response/flip_get_response
- model/response/flip_longHashes_response
- model/response/flip_shortHashes_response
- model/response/flip_submit_response
- model/response/flip_submitLongAnswers_response
- model/response/flip_submitShortAnswers_response
- model/response/flip_words_response
- model/response/mpinsert_response
- model/response/nonce_end_point_response
- model/response/simplePrice/simple_price_response
- model/response/simplePrice/simple_price_response_aed
- model/response/simplePrice/simple_price_response_ars
- model/response/simplePrice/simple_price_response_aud
- model/response/simplePrice/simple_price_response_brl
- model/response/simplePrice/simple_price_response_btc
- model/response/simplePrice/simple_price_response_cad
- model/response/simplePrice/simple_price_response_chf
- model/response/simplePrice/simple_price_response_clp
- model/response/simplePrice/simple_price_response_cny
- model/response/simplePrice/simple_price_response_czk
- model/response/simplePrice/simple_price_response_dkk
- model/response/simplePrice/simple_price_response_eur
- model/response/simplePrice/simple_price_response_gbp
- model/response/simplePrice/simple_price_response_hkd
- model/response/simplePrice/simple_price_response_huf
- model/response/simplePrice/simple_price_response_idr
- model/response/simplePrice/simple_price_response_ils
- model/response/simplePrice/simple_price_response_inr
- model/response/simplePrice/simple_price_response_jpy
- model/response/simplePrice/simple_price_response_krw
- model/response/simplePrice/simple_price_response_kwd
- model/response/simplePrice/simple_price_response_mxn
- model/response/simplePrice/simple_price_response_myr
- model/response/simplePrice/simple_price_response_nok
- model/response/simplePrice/simple_price_response_nzd
- model/response/simplePrice/simple_price_response_php
- model/response/simplePrice/simple_price_response_pkr
- model/response/simplePrice/simple_price_response_pln
- model/response/simplePrice/simple_price_response_rub
- model/response/simplePrice/simple_price_response_sar
- model/response/simplePrice/simple_price_response_sek
- model/response/simplePrice/simple_price_response_sgd
- model/response/simplePrice/simple_price_response_thb
- model/response/simplePrice/simple_price_response_try
- model/response/simplePrice/simple_price_response_twd
- model/response/simplePrice/simple_price_response_usd
- model/response/simplePrice/simple_price_response_ves
- model/response/simplePrice/simple_price_response_zar
- model/response/votings_list_response
- model/smartContractMultiSig
- model/smartContractTimeLock
- model/transaction
- model/validation_session_infos
- protos/models.pb
- protos/models.pbenum
- protos/models.pbjson
- protos/models.pbserver
- pubdev/dartssh/agent
- pubdev/dartssh/client
- pubdev/dartssh/http
- pubdev/dartssh/http_io
- pubdev/dartssh/identity
- pubdev/dartssh/kex
- pubdev/dartssh/pem
- pubdev/dartssh/protocol
- pubdev/dartssh/serializable
- pubdev/dartssh/server
- pubdev/dartssh/socket
- pubdev/dartssh/socket_html
- pubdev/dartssh/socket_io
- pubdev/dartssh/ssh
- pubdev/dartssh/transport
- pubdev/dartssh/websocket_io
- pubdev/dartssh/zlib
- pubdev/ethereum_util/bigint
- pubdev/ethereum_util/bytes
- pubdev/ethereum_util/hash
- pubdev/ethereum_util/rlp
- pubdev/ethereum_util/utils
- pubdev/tweetnacl/tweetnacl_base
- util/contracts_args_util
- util/crypto/bigint
- util/crypto/handle_big_int
- util/crypto/rlp
- util/crypto/sha
- util/crypto/utils_crypto
- util/decrypt_flip
- util/encrypt
- util/encrypt/aes/aes_cbcpkcs7
- util/encrypt/crypter
- util/encrypt/encrypted
- util/encrypt/kdf/kdf
- util/encrypt/kdf/pbkdf2_kdf
- util/encrypt/kdf/sha256_kdf
- util/encrypt/model/keyiv
- util/encrypt/secure_random
- util/helpers
- util/keys/mnemonics
- util/keys/seeds
- util/util_crypto
- util/util_demo_mode
- util/util_identity
- util/util_number
- util/util_random
- util/util_vps