Pub Platform CodeFactor

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

model/address
util/encrypt/aes/aes_cbcpkcs7
pubdev/dartssh/agent
enums/answer_type
factory/api/api_coins_service
model/response/contract/api_contract_balance_updates_response
model/response/contract/api_contract_response
model/response/contract/api_contract_txs_response
model/response/api_get_address_response
factory/app_service
model/response/authenticate_response
model/request/bcn_fee_per_gas_request
model/response/bcn_fee_per_gas_response
model/request/bcn_mempool_request
model/response/bcn_mempool_response
model/request/bcn_send_raw_tx_request
model/response/bcn_send_raw_tx_response
model/request/bcn_syncing_request
model/response/bcn_syncing_response
model/request/bcn_transaction_request
model/response/bcn_transaction_response
model/request/bcn_transactions_request
model/response/bcn_transactions_response
model/request/bcn_tx_receipt_request
model/response/bcn_tx_receipt_response
util/crypto/bigint
pubdev/ethereum_util/bigint
pubdev/ethereum_util/bytes
pubdev/dartssh/client
model/response/coins_price_response
model/response/coins_response
model/request/contract/contract_call_multisig_request
model/request/contract/contract_call_request
model/response/contract/contract_call_response
model/request/contract/contract_call_time_lock_request
model/request/contract/contract_deploy_request
model/response/contract/contract_deploy_response
model/request/contract/contract_estimate_call_request
model/response/contract/contract_estimate_call_response
model/request/contract/contract_estimate_deploy_request
model/response/contract/contract_estimate_deploy_response
model/request/contract/contract_estimate_terminate_request
model/request/contract/contract_events_request
model/request/contract/contract_get_stake_request
model/response/contract/contract_get_stake_response
model/request/contract/contract_iterate_map_request
model/response/contract/contract_iterate_map_response
model/response/contract/contract_read_data_byte_response
model/response/contract/contract_read_data_hex_response
model/request/contract/contract_read_data_request
model/response/contract/contract_read_data_uint64_response
model/request/contract/contract_readonly_call_request
model/request/contract/contract_subscribe_to_event_request
model/request/contract/contract_terminate_request
model/response/contract/contract_terminate_response
model/request/contract/contract_unsubscribe_from_event_request
util/contracts_args_util
util/encrypt/crypter
util/decrypt_flip
deepLinks/deepLinkParamSend
deepLinks/deepLinkParamSignin
model/deployContractAttachment
model/dictWords
model/request/dna_activate_invite_request
model/response/dna_activate_invite_response
model/dna_all
model/request/dna_becomeOffline_request
model/response/dna_becomeOffline_response
model/request/dna_becomeOnline_request
model/response/dna_becomeOnline_response
model/request/dna_ceremonyIntervals_request
model/response/dna_ceremonyIntervals_response
model/request/dna_getBalance_request
model/response/dna_getBalance_response
model/request/dna_getCoinbaseAddr_request
model/response/dna_getCoinbaseAddr_response
model/request/dna_getEpoch_request
model/response/dna_getEpoch_response
model/request/dna_getFlipRaw_request
model/response/dna_getFlipRaw_response
model/request/dna_identity_request
model/response/dna_identity_response
model/request/dna_send_invite_request
model/response/dna_send_invite_response
model/request/dna_sendTransaction_request
model/response/dna_sendTransaction_response
model/request/dna_signin_request
model/response/dna_signin_response
util/encrypt
util/encrypt/encrypted
enums/epoch_period
model/flip_examples
model/request/flip_get_key_request
model/response/flip_get_key_response
model/request/flip_get_request
model/response/flip_get_response
model/request/flip_longHashes_request
model/response/flip_longHashes_response
model/request/flip_shortHashes_request
model/response/flip_shortHashes_response
model/request/flip_submit_request
model/response/flip_submit_response
model/request/flip_submitLongAnswers_request
model/response/flip_submitLongAnswers_response
model/request/flip_submitShortAnswers_request
model/response/flip_submitShortAnswers_response
model/request/flip_words_request
model/response/flip_words_response
model/flips
pubdev/ethereum_util/hash
util/helpers
pubdev/dartssh/http
pubdev/dartssh/http_io
deepLinks/idena_url
pubdev/dartssh/identity
enums/identity_status
util/encrypt/kdf/kdf
pubdev/dartssh/kex
util/encrypt/model/keyiv
util/keys/mnemonics
protos/models.pb
protos/models.pbenum
protos/models.pbjson
protos/models.pbserver
model/response/mpinsert_response
model/node_type
model/response/nonce_end_point_response
util/encrypt/kdf/pbkdf2_kdf
pubdev/dartssh/pem
util/crypto/handle_big_int
pubdev/dartssh/protocol
enums/relevance_type
pubdev/ethereum_util/rlp
util/crypto/rlp
util/encrypt/secure_random
util/keys/seeds
pubdev/dartssh/serializable
pubdev/dartssh/server
util/crypto/sha
util/encrypt/kdf/sha256_kdf
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
factory/smart_contract_service
model/smartContractMultiSig
model/smartContractTimeLock
pubdev/dartssh/socket
pubdev/dartssh/socket_html
pubdev/dartssh/socket_io
pubdev/dartssh/ssh
model/transaction
pubdev/dartssh/transport
pubdev/tweetnacl/tweetnacl_base
util/util_crypto
util/util_demo_mode
util/util_identity
util/util_number
util/util_random
util/util_vps
pubdev/ethereum_util/utils
util/crypto/utils_crypto
factory/validation_service
model/validation_session_infos
model/response/votings_list_response
enums/wallet_type
pubdev/dartssh/websocket_io
pubdev/dartssh/zlib