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
- address
- aes_cbcpkcs7
- agent
- answer_type
- api_coins_service
- api_contract_balance_updates_response
- api_contract_response
- api_contract_txs_response
- api_get_address_response
- app_service
- authenticate_response
- bcn_fee_per_gas_request
- bcn_fee_per_gas_response
- bcn_mempool_request
- bcn_mempool_response
- bcn_send_raw_tx_request
- bcn_send_raw_tx_response
- bcn_syncing_request
- bcn_syncing_response
- bcn_transaction_request
- bcn_transaction_response
- bcn_transactions_request
- bcn_transactions_response
- bcn_tx_receipt_request
- bcn_tx_receipt_response
- bigint
- bigint
- bytes
- client
- coins_price_response
- coins_response
- contract_call_multisig_request
- contract_call_request
- contract_call_response
- contract_call_time_lock_request
- contract_deploy_request
- contract_deploy_response
- contract_estimate_call_request
- contract_estimate_call_response
- contract_estimate_deploy_request
- contract_estimate_deploy_response
- contract_estimate_terminate_request
- contract_events_request
- contract_get_stake_request
- contract_get_stake_response
- contract_iterate_map_request
- contract_iterate_map_response
- contract_read_data_byte_response
- contract_read_data_hex_response
- contract_read_data_request
- contract_read_data_uint64_response
- contract_readonly_call_request
- contract_subscribe_to_event_request
- contract_terminate_request
- contract_terminate_response
- contract_unsubscribe_from_event_request
- contracts_args_util
- crypter
- decrypt_flip
- deepLinkParamSend
- deepLinkParamSignin
- deployContractAttachment
- dictWords
- dna_activate_invite_request
- dna_activate_invite_response
- dna_all
- dna_becomeOffline_request
- dna_becomeOffline_response
- dna_becomeOnline_request
- dna_becomeOnline_response
- dna_ceremonyIntervals_request
- dna_ceremonyIntervals_response
- dna_getBalance_request
- dna_getBalance_response
- dna_getCoinbaseAddr_request
- dna_getCoinbaseAddr_response
- dna_getEpoch_request
- dna_getEpoch_response
- dna_getFlipRaw_request
- dna_getFlipRaw_response
- dna_identity_request
- dna_identity_response
- dna_send_invite_request
- dna_send_invite_response
- dna_sendTransaction_request
- dna_sendTransaction_response
- dna_signin_request
- dna_signin_response
- encrypt
- encrypted
- epoch_period
- flip_examples
- flip_get_key_request
- flip_get_key_response
- flip_get_request
- flip_get_response
- flip_longHashes_request
- flip_longHashes_response
- flip_shortHashes_request
- flip_shortHashes_response
- flip_submit_request
- flip_submit_response
- flip_submitLongAnswers_request
- flip_submitLongAnswers_response
- flip_submitShortAnswers_request
- flip_submitShortAnswers_response
- flip_words_request
- flip_words_response
- flips
- hash
- helpers
- http
- http_io
- idena_url
- identity
- identity_status
- kdf
- kex
- keyiv
- mnemonics
- models.pb
- models.pbenum
- models.pbjson
- models.pbserver
- mpinsert_response
- node_type
- nonce_end_point_response
- pbkdf2_kdf
- pem
- pointycastle.src.utils
- protocol
- relevance_type
- rlp
- rlp
- secure_random
- seeds
- serializable
- server
- sha
- sha256_kdf
- simple_price_response
- simple_price_response_aed
- simple_price_response_ars
- simple_price_response_aud
- simple_price_response_brl
- simple_price_response_btc
- simple_price_response_cad
- simple_price_response_chf
- simple_price_response_clp
- simple_price_response_cny
- simple_price_response_czk
- simple_price_response_dkk
- simple_price_response_eur
- simple_price_response_gbp
- simple_price_response_hkd
- simple_price_response_huf
- simple_price_response_idr
- simple_price_response_ils
- simple_price_response_inr
- simple_price_response_jpy
- simple_price_response_krw
- simple_price_response_kwd
- simple_price_response_mxn
- simple_price_response_myr
- simple_price_response_nok
- simple_price_response_nzd
- simple_price_response_php
- simple_price_response_pkr
- simple_price_response_pln
- simple_price_response_rub
- simple_price_response_sar
- simple_price_response_sek
- simple_price_response_sgd
- simple_price_response_thb
- simple_price_response_try
- simple_price_response_twd
- simple_price_response_usd
- simple_price_response_ves
- simple_price_response_zar
- smart_contract_service
- smartContractMultiSig
- smartContractTimeLock
- socket
- socket_html
- socket_io
- ssh
- transaction
- transport
- tweetnacl_base
- util_crypto
- util_demo_mode
- util_identity
- util_number
- util_random
- util_vps
- utils
- utils_crypto
- validation_service
- validation_session_infos
- votings_list_response
- wallet_type
- websocket_io
- zlib