[Home](./index.md) > [eth-connect](./eth-connect.md) ## eth-connect package ## Classes | Class | Description | | --- | --- | | [BigNumber](./eth-connect.bignumber.md) | | | [Contract](./eth-connect.contract.md) | Should be called to create new contract instance | | [ContractFactory](./eth-connect.contractfactory.md) | Should be called to create new ContractFactory instance | | [EthBlockFilter](./eth-connect.ethblockfilter.md) | | | [EthFilter](./eth-connect.ethfilter.md) | | | [EthPendingTransactionFilter](./eth-connect.ethpendingtransactionfilter.md) | | | [HTTPProvider](./eth-connect.httpprovider.md) | HttpProvider should be used to send rpc calls over http | | [Method](./eth-connect.method.md) | | | [Property](./eth-connect.property.md) | | | [RequestManager](./eth-connect.requestmanager.md) | It's responsible for passing messages to providers It's also responsible for polling the ethereum node for incoming messages Default poll timeout is 1 second | | [SHHFilter](./eth-connect.shhfilter.md) | | | [SolidityEvent](./eth-connect.solidityevent.md) | This prototype should be used to create event filters | | [SolidityFunction](./eth-connect.solidityfunction.md) | This prototype should be used to call/sendTransaction to solidity functions | | [WebSocketProvider](./eth-connect.websocketprovider.md) | | ## Abstract Classes | Abstract Class | Description | | --- | --- | | [AbstractFilter](./eth-connect.abstractfilter.md) | | ## Enumerations | Enumeration | Description | | --- | --- | | [TransactionStatus](./eth-connect.transactionstatus.md) | | | [TransactionType](./eth-connect.transactiontype.md) | | ## Functions | Function | Description | | --- | --- | | [BigNumber(n, base)](./eth-connect.bignumber.md) | | | [bytesToHex(bytes)](./eth-connect.bytestohex.md) | | | [bytesToUtf8String(bytesOrHexString)](./eth-connect.bytestoutf8string.md) | Decodes an Uint8Array or hex string into a UTF-8 string | | [concatBytes(buffers)](./eth-connect.concatbytes.md) | | | [extractDisplayName(name)](./eth-connect.extractdisplayname.md) | Should be called to get display name of contract function | | [extractTypeName(name)](./eth-connect.extracttypename.md) | Should be called to get type name of contract function | | [fromAscii(str, num)](./eth-connect.fromascii.md) | Should be called to get hex representation (prefixed by 0x) of ascii string | | [fromDecimal(value)](./eth-connect.fromdecimal.md) | Converts value to it's hex representation | | [fromTwosComplement(num, bits)](./eth-connect.fromtwoscomplement.md) | If the bit N is 1 | | [fromWei(num, unit)](./eth-connect.fromwei.md) |

Takes a number of wei and converts it to any other ether unit.

Possible units are: SI Short SI Full Effigy Other - kwei femtoether babbage - mwei picoether lovelace - gwei nanoether shannon nano - -- microether szabo micro - -- milliether finney milli - ether -- -- - kether -- grand - mether - gether - tether

| | [fromWei(num, unit)](./eth-connect.fromwei_1.md) | | | [getAddress(address)](./eth-connect.getaddress.md) | | | [getValueOfUnit(\_unit)](./eth-connect.getvalueofunit.md) | Returns value of unit in Wei | | [hexToBytes(hex)](./eth-connect.hextobytes.md) | | | [inputAddressFormatter(address)](./eth-connect.inputaddressformatter.md) | | | [inputBlockNumberFormatter(blockNumber)](./eth-connect.inputblocknumberformatter.md) | | | [inputCallFormatter(options)](./eth-connect.inputcallformatter.md) | Formats the input of a transaction and converts all values to HEX | | [inputDefaultBlockNumberFormatter(blockNumber)](./eth-connect.inputdefaultblocknumberformatter.md) | | | [inputFilterOptions(options)](./eth-connect.inputfilteroptions.md) | | | [inputPostFormatter(post)](./eth-connect.inputpostformatter.md) | Formats the input of a whisper post and converts all values to HEX | | [inputTransactionFormatter(options)](./eth-connect.inputtransactionformatter.md) | Formats the input of a transaction and converts all values to HEX | | [inputTransactionId(txId)](./eth-connect.inputtransactionid.md) | Ensures a correct transactionId is provided | | [isAddress(address)](./eth-connect.isaddress.md) | Checks if the given string is an address | | [isArray(object)](./eth-connect.isarray.md) | Returns true if object is array, otherwise false | | [isBigNumber(object)](./eth-connect.isbignumber.md) | Returns true if object is BigNumber, otherwise false | | [isBloom(bloom)](./eth-connect.isbloom.md) | Returns true if given string is a valid Ethereum block header bloom. | | [isBoolean(object)](./eth-connect.isboolean.md) | Returns true if object is boolean, otherwise false | | [isChecksumAddress(\_address)](./eth-connect.ischecksumaddress.md) | Checks if the given string is a checksummed address | | [isFunction(object)](./eth-connect.isfunction.md) | Returns true if object is function, otherwise false | | [isHex(value)](./eth-connect.ishex.md) | Converts value to it's decimal representation in string | | [isJson(str)](./eth-connect.isjson.md) | Returns true if given string is valid json object | | [isObject(object)](./eth-connect.isobject.md) | Returns true if object is Objet, otherwise false | | [isPredefinedBlockNumber(blockNumber)](./eth-connect.ispredefinedblocknumber.md) | Returns true if the provided blockNumber is 'latest', 'pending' or 'earliest | | [isStrictAddress(address)](./eth-connect.isstrictaddress.md) | Checks if the given string is strictly an address | | [isString(value)](./eth-connect.isstring.md) | Returns true if object is string, otherwise false | | [isTopic(topic)](./eth-connect.istopic.md) | Returns true if given string is a valid log topic. | | [isValidResponse(response)](./eth-connect.isvalidresponse.md) | Should be called to check if jsonrpc response is valid | | [outputBigNumberFormatter(output)](./eth-connect.outputbignumberformatter.md) | Should format the output to a big number | | [outputBlockFormatter(block)](./eth-connect.outputblockformatter.md) | Formats the output of a block to its proper value | | [outputLogFormatter(log)](./eth-connect.outputlogformatter.md) | Formats the output of a log | | [outputPostFormatter(post)](./eth-connect.outputpostformatter.md) | Formats the output of a received post message | | [outputSyncingFormatter(result)](./eth-connect.outputsyncingformatter.md) | | | [outputTransactionFormatter(tx)](./eth-connect.outputtransactionformatter.md) | Formats the output of a transaction to its proper values | | [outputTransactionReceiptFormatter(receipt)](./eth-connect.outputtransactionreceiptformatter.md) | Formats the output of a transaction receipt to its proper values | | [padLeft(str, chars, sign)](./eth-connect.padleft.md) | Should be called to pad string to expected length | | [padRight(str, chars, sign)](./eth-connect.padright.md) | Should be called to pad string to expected length | | [sha3(value, options)](./eth-connect.sha3.md) | | | [signedIsNegative(value, bits)](./eth-connect.signedisnegative.md) | Check if input value is negative in twos complement | | [stringToUtf8Bytes(str)](./eth-connect.stringtoutf8bytes.md) | Converts a string into a Uint8Array encoded with UTF-8 | | [toAddress(address)](./eth-connect.toaddress.md) | Transforms given string to valid 20 bytes-length addres with 0x prefix | | [toArray(value)](./eth-connect.toarray.md) | Ensures the result will be an array | | [toAscii(hex)](./eth-connect.toascii.md) | Should be called to get ascii from it's hex representation | | [toBatchPayload(messages)](./eth-connect.tobatchpayload.md) | Should be called to create batch payload object | | [toBigNumber(\_num)](./eth-connect.tobignumber.md) | Takes an input and transforms it into an bignumber | | [toBoolean(value)](./eth-connect.toboolean.md) | Converts value to it's boolean representation (x != 0) | | [toChecksumAddress(\_address)](./eth-connect.tochecksumaddress.md) | Makes a checksum address | | [toData(val)](./eth-connect.todata.md) | Converts value to it's hex representation in string | | [toDecimal(value)](./eth-connect.todecimal.md) | Converts value to it's decimal representation in string | | [toHex(val)](./eth-connect.tohex.md) |

Auto converts any given value into it's hex representation.

And even stringifys objects before.

| | [toJsonRpcRequest(method, params)](./eth-connect.tojsonrpcrequest.md) | Should be called to valid json create payload object | | [toNullDecimal(value)](./eth-connect.tonulldecimal.md) | Converts value to it's decimal representation in string | | [toString\_2(value)](./eth-connect.tostring_2.md) | Converts value to string | | [toStringData(val)](./eth-connect.tostringdata.md) | Converts a UTF8 string to it's hex representation as a 0x string. If the argument is already a 0xHEX prefixed string, the conversion is skipped. | | [toTwosComplement(num, bits)](./eth-connect.totwoscomplement.md) | Takes and input transforms it into bignumber and if it is negative value, into two's complement | | [toWei(num, unit)](./eth-connect.towei.md) |

Takes a number of a unit and converts it to wei.

Possible units are: SI Short SI Full Effigy Other - kwei femtoether babbage - mwei picoether lovelace - gwei nanoether shannon nano - -- microether szabo micro - -- milliether finney milli - ether -- -- - kether -- grand - mether - gether - tether

| | [transformToFullName(json)](./eth-connect.transformtofullname.md) | Should be used to create full function/event name from json abi | ## Interfaces | Interface | Description | | --- | --- | | [AbiConstructor](./eth-connect.abiconstructor.md) | | | [AbiEvent](./eth-connect.abievent.md) | | | [AbiFallback](./eth-connect.abifallback.md) | | | [AbiFunction](./eth-connect.abifunction.md) | | | [AbiInput](./eth-connect.abiinput.md) | | | [AbiItemGeneric](./eth-connect.abiitemgeneric.md) | | | [AbiOutput](./eth-connect.abioutput.md) | | | [IPropertyOptions](./eth-connect.ipropertyoptions.md) | | | [IWebSocket](./eth-connect.iwebsocket.md) | | ## Namespaces | Namespace | Description | | --- | --- | | [BigNumber](./eth-connect.bignumber.md) | | | [coder](./eth-connect.coder.md) | SolidityCoder prototype should be used to encode/decode solidity params of any type | | [eth](./eth-connect.eth.md) | | ## Variables | Variable | Description | | --- | --- | | [messageId](./eth-connect.messageid.md) | | ## Type Aliases | Type Alias | Description | | --- | --- | | [AbiItem](./eth-connect.abiitem.md) | | | [AbiType](./eth-connect.abitype.md) | | | [Address](./eth-connect.address.md) | Hex string of 20 bytes | | [BlockIdentifier](./eth-connect.blockidentifier.md) | | | [BlockObject](./eth-connect.blockobject.md) | | | [Callback](./eth-connect.callback.md) | | | [ConfirmedTransaction](./eth-connect.confirmedtransaction.md) | | | [Data](./eth-connect.data.md) | Hex string | | [DroppedTransaction](./eth-connect.droppedtransaction.md) | | | [EventData](./eth-connect.eventdata.md) | | | [EventFilterCreator](./eth-connect.eventfiltercreator.md) | | | [FetchFunction](./eth-connect.fetchfunction.md) | | | [FilterCallback](./eth-connect.filtercallback.md) | | | [FilterOptions](./eth-connect.filteroptions.md) | | | [FinishedTransactionAndReceipt](./eth-connect.finishedtransactionandreceipt.md) | | | [Hex](./eth-connect.hex.md) | | | [HTTPProviderOptions](./eth-connect.httpprovideroptions.md) | | | [IFuture](./eth-connect.ifuture.md) | | | [LogObject](./eth-connect.logobject.md) | | | [PendingTransaction](./eth-connect.pendingtransaction.md) | | | [Quantity](./eth-connect.quantity.md) | | | [QueuedTransaction](./eth-connect.queuedtransaction.md) | | | [ReplacedTransaction](./eth-connect.replacedtransaction.md) | | | [RevertedTransaction](./eth-connect.revertedtransaction.md) | | | [RPCMessage](./eth-connect.rpcmessage.md) | | | [RPCSendableMessage](./eth-connect.rpcsendablemessage.md) | | | [SHHFilterMessage](./eth-connect.shhfiltermessage.md) | | | [SHHFilterOptions](./eth-connect.shhfilteroptions.md) | | | [SHHPost](./eth-connect.shhpost.md) | | | [StateMutabilityType](./eth-connect.statemutabilitytype.md) | | | [Syncing](./eth-connect.syncing.md) | | | [Tag](./eth-connect.tag.md) | | | [TopicFilter](./eth-connect.topicfilter.md) | | | [Transaction](./eth-connect.transaction.md) | | | [TransactionAndReceipt](./eth-connect.transactionandreceipt.md) | | | [TransactionCallOptions](./eth-connect.transactioncalloptions.md) | | | [TransactionObject](./eth-connect.transactionobject.md) | | | [TransactionOptions](./eth-connect.transactionoptions.md) | | | [TransactionReceipt](./eth-connect.transactionreceipt.md) | | | [TxHash](./eth-connect.txhash.md) | Hex string of 32 bytes | | [Unit](./eth-connect.unit.md) | | | [WebSocketProviderOptions](./eth-connect.websocketprovideroptions.md) | |