Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crypto-org-chain/chain-jslib
/ functions
Functions
857 in github.com/crypto-org-chain/chain-jslib
⨍
Functions
857
◇
Types & classes
1,040
↓ 294 callers
Method
encode
* Returns encoded signed transaction ready to be broadcasted * @returns {Bytes} * @memberof SignedTransaction
lib/src/transaction/signed.ts:33
↓ 281 callers
Method
toUint8Array
* Returns Uint8Array representation of the Bytes * @returns {Uint8Array}
lib/src/utils/bytes/bytes.ts:106
↓ 233 callers
Method
fromBase64String
* Create Bytes from base64 encoded string * @param {string} value Base64 encoded string * @throws {Error} value is invalid * @returns {
lib/src/utils/bytes/bytes.ts:82
↓ 111 callers
Method
getPubKey
* Return the public key of the KeyPair in compressed or uncompressed form * @param {PubKeyOptions} [options] public key options * @param {bo
lib/src/keypair/secp256k1.ts:76
↓ 100 callers
Function
CroSDK
(configs: InitConfigurations)
lib/src/core/cro.ts:53
↓ 98 callers
Method
fromPrivKey
* Create a KeyPair from private key * @param {Bytes} privKey private key * @throws {Error} private key is invalid * @returns {Secp256k1
lib/src/keypair/secp256k1.ts:34
↓ 98 callers
Method
toString
* Returns a string representation of the Coin in the specified unit. Default unit is base. * @param {Units} [unit=Unit.Base] coins unit
lib/src/coin/coin.ts:231
↓ 96 callers
Method
addSigner
* Add a signer to the transaction. The signer orders will follow the add order. * @param {TransactionSigner} signer * @param {Bytes}
lib/src/transaction/raw.ts:148
↓ 90 callers
Function
fuzzyDescribe
(title: string, fn: DescFunc)
lib/src/test/mocha-fuzzy/suite.ts:12
↓ 87 callers
Method
toSignDocumentHash
* Returns the SignDoc Hash of the specified index * @param {number} index index of the signer * @returns {Bytes} , length is 32 bytes, SHA25
lib/src/transaction/signable.ts:115
↓ 86 callers
Method
setSignature
* Set signature of the specified signer index * @param {number} index index to set the signature * @param {Bytes} signature * @throws {
lib/src/transaction/signable.ts:140
↓ 82 callers
Method
sign
* Sign a message using the private key in KeyPair * @param {Bytes} message message to sign * @throws {Error} message is invalid * @retu
lib/src/keypair/secp256k1.ts:90
↓ 77 callers
Method
toSignable
* Returns signable transaction * @returns {SignableTransaction} * @throws {Error} when the transaction is incompleted * @me
lib/src/transaction/raw.ts:208
↓ 76 callers
Method
toCosmosCoin
()
lib/src/coin/v2.coin/v2.coin.ts:22
↓ 72 callers
Method
appendMessage
* Append Cosmos MsgSend to transaction * @param {CosmosMsg} message one of the supported Cosmos message * @returns {RawTransaction}
lib/src/transaction/raw.ts:72
↓ 72 callers
Method
fromUint8Array
* Create Bytes from Uint8Array value * @param {Uint8Array} value * @throws {Error} value is invalid * @returns {Bytes}
lib/src/utils/bytes/bytes.ts:32
↓ 72 callers
Function
owStrictObject
()
lib/src/ow.types.ts:26
↓ 71 callers
Method
toSigned
* Return signed version of the transaction * @returns {SignedTransaction} * @memberof Transaction
lib/src/transaction/signable.ts:202
↓ 67 callers
Method
fromHexString
* Create Bytes from hexadecimal string * @param {Buffer} value the buffer * @throws {Error} value is invalid * @returns {Bytes}
lib/src/utils/bytes/bytes.ts:58
↓ 62 callers
Method
account
* Returns the address string corresponding to the Secp256k1KeyPair or pubKeySource provided * @return {string}
lib/src/address/address.ts:40
↓ 57 callers
Method
fromBaseUnit
* Create a Coin from the base unit * @param {string} baseValue coins value in base unit * @returns {Coin} * @throws {Error}
lib/src/coin/coin.ts:148
↓ 55 callers
Method
fromMnemonic
* Create and return a HDWallet from mnemonic words * @param {string} mnemonic Mnemonic words * @param {string} passphrase passphrase to gene
lib/src/hdkey/hdkey.ts:30
↓ 52 callers
Method
derivePrivKey
* Derive the private key of the HD wallet at specified path * @param {string} path derivation path * @returns {Bytes} private key derived
lib/src/hdkey/hdkey.ts:70
↓ 52 callers
Function
validateAddress
(addressProps: AddressValidationProperties)
lib/src/utils/address.ts:87
↓ 45 callers
Method
toHexString
* Returns hexadecimal string representation of the Bytes * @returns {string}
lib/src/utils/bytes/bytes.ts:122
↓ 41 callers
Method
toBase64String
* Returns hexadecimal string representation of the Bytes * @returns {string}
lib/src/utils/bytes/bytes.ts:132
↓ 35 callers
Method
toRawAminoMsg
* Returns the raw legacy amino Msg representation of any implementation of Message * @returns {legacyAmino.Msg}
lib/src/transaction/msg/cosmosMsg.ts:16
↓ 34 callers
Method
fromCosmosMsgJSON
* Returns an instance of MsgBurnNFT * @param {string} msgJsonStr * @param {Network} network * @returns {MsgBurnNFT}
lib/src/transaction/msg/nft/MsgBurnNFT.ts:71
↓ 32 callers
Method
toRawMsg
* Returns the raw Msg representation of any implementation of Message * @returns {Msg}
lib/src/transaction/msg/cosmosMsg.ts:10
↓ 31 callers
Method
fromCosmosMsgJSON
* Returns an instance of MsgDelegate * @param {string} msgJsonStr * @param {Network} network * @returns {MsgDelegate}
lib/src/transaction/msg/staking/MsgDelegate.ts:86
↓ 28 callers
Method
addEventListener
(type: string, callback: IEventListener<T>)
docs/themes/src/default/assets/js/src/typedoc/EventTarget.ts:13
↓ 28 callers
Method
getHexEncoded
* Returns hex encoded signed transaction ready to be broadcasted * @returns {string} * @memberof SignedTransaction
lib/src/transaction/signed.ts:42
↓ 27 callers
Function
owOptionalStrictObject
()
lib/src/ow.types.ts:27
↓ 26 callers
Function
anyTransaction
()
lib/src/transaction/v2.raw.spec.ts:15
↓ 26 callers
Method
setFee
* Set fee to the raw tx * @param {ICoin} fee to be set to the raw tx body * @returns {RawTransaction} * @throws {Error} whe
lib/src/transaction/raw.ts:117
↓ 24 callers
Method
add
* Add two coins together and returns a new Coin * @param {Coin} anotherCoin coins to add * @returns {Coin} * @throws {Error
lib/src/coin/coin.ts:170
↓ 24 callers
Method
getAccount
(searchAddress: string)
lib/src/client/client.ts:47
↓ 24 callers
Function
owCoin
()
lib/src/coin/ow.types.ts:17
↓ 23 callers
Method
getTxHash
* Returns transaction hash in uppercase * @returns {string} * @throws {Error} when transaction is not completely signed * @memberof Sig
lib/src/transaction/signed.ts:24
↓ 22 callers
Function
omitDefaults
(input: any)
lib/src/cosmos/v1beta1/adr27.ts:31
↓ 21 callers
Method
connect
(endpoint: string = config.network.rpcUrl ?? '')
lib/src/client/client.ts:85
↓ 21 callers
Method
fromHex
* @name fromHex() * @param txHex * @returns TxDecoder
lib/src/utils/txDecoder.ts:45
↓ 21 callers
Method
validate
()
lib/src/transaction/msg/gov/MsgVote.ts:107
↓ 20 callers
Method
toCosmosJSON
* Returns CosmosSDK compatible JSON encoded transaction * @name toCosmosJSON() * @returns {string}
lib/src/utils/txDecoder.ts:70
↓ 20 callers
Method
toString
* Returns a string representation of the Coin in the specified unit. Default unit is base. * @param {Units} [unit=Unit.Base] coins unit
lib/src/coin/v2.coin/v2.coin.ts:223
↓ 19 callers
Method
addMessage
* Add Cosmos message to transaction. The message orders will follow the add order. * @param {CosmosMsg} message one of the supported Cosmos m
lib/src/transaction/raw.ts:57
↓ 19 callers
Method
fromCosmosMsgJSON
* Returns an instance of IBC.MsgCreateClient * @param {string} msgJsonStr * @param {Network} network * @returns {MsgCreateC
lib/src/transaction/msg/ibc/core/MsgCreateClient.ts:63
↓ 18 callers
Function
owLong
()
lib/src/transaction/msg/gov/ow.types.ts:40
↓ 18 callers
Method
validate
()
lib/src/utils/address.ts:139
↓ 17 callers
Method
generateMnemonic
* Generate random mnemonic words of specified length * @param {number} wordsLength number of words in the mnemonic. It has to be a multiple of 3
lib/src/hdkey/hdkey.ts:58
↓ 17 callers
Function
omitDefault
(input: T)
lib/src/cosmos/v1beta1/adr27.ts:13
↓ 16 callers
Method
getAuthInfo
* Returns AuthInfo * @returns {AuthInfo} * @memberof Transaction
lib/src/transaction/raw.ts:237
↓ 16 callers
Method
getEncoded
* Returns the proto encoding representation of any IGoogleAny implementation * @returns {google.protobuf.Any}
lib/src/transaction/msg/ibc/IGoogleAny.ts:8
↓ 16 callers
Function
sortedJsonStringify
(obj: any)
lib/src/cosmos/amino/signdoc.ts:23
↓ 15 callers
Method
fromBaseUnit
* Create a Coin from the base unit * @param {string} baseValue coins value in base unit * @returns {CoinV2} * @throws {Erro
lib/src/coin/v2.coin/v2.coin.ts:183
↓ 15 callers
Method
fromCosmosMsgJSON
* Returns an instance of MsgFundCommunityPool * @param {string} msgJsonStr * @param {Network} network * @returns {MsgFundCo
lib/src/transaction/msg/distribution/MsgFundCommunityPool.ts:64
↓ 15 callers
Method
fromCosmosMsgJSON
* Returns an instance of MsgVote * @param {string} msgJsonStr * @param {Network} network * @returns {MsgVote}
lib/src/transaction/msg/gov/MsgVote.ts:90
↓ 13 callers
Function
anySignableTransaction
()
lib/src/transaction/v2.signable.spec.ts:10
↓ 13 callers
Function
coin
(amount: string, denom: string)
lib/src/cosmos/coins.ts:15
↓ 12 callers
Function
isUint8Array
(data: unknown)
lib/src/utils/typechecks.ts:21
↓ 12 callers
Function
owBytes
()
lib/src/utils/bytes/ow.types.ts:21
↓ 11 callers
Function
anySignableTransaction
()
lib/src/transaction/signable.spec.ts:8
↓ 11 callers
Method
broadcastTx
(tx: Uint8Array)
lib/src/client/client.ts:55
↓ 11 callers
Method
fromCosmosMsgJSON
* Returns an instance of TextProposal * @param {string} msgJsonStr * @param {Network} network * @returns {TextProposal}
lib/src/transaction/msg/gov/proposal/TextProposal.ts:28
↓ 11 callers
Function
isBigInteger
(val: Big)
lib/src/utils/big.ts:3
↓ 11 callers
Function
isNonNullObject
(data: unknown)
lib/src/utils/typechecks.ts:14
↓ 11 callers
Method
setGasLimit
* Set gas limit value to tx * @param {string} gasLimit to be set to the raw tx body, default value is 200_000 * @returns {RawTransac
lib/src/transaction/raw.ts:97
↓ 11 callers
Method
setMemo
* Set a memo value to the raw tx body * @param {string} memo to be set to the raw tx body * @returns {RawTransaction} * @th
lib/src/transaction/raw.ts:83
↓ 10 callers
Method
toCosmosJSON
* Returns the Chain-maind encoded JSON * @memberof RawTransactionV2 * @returns {unknown} Tx-Encoded JSON
lib/src/transaction/v2.raw.ts:90
↓ 9 callers
Method
fromCRO
* Create a Coin from CRO unit * @param {string} croValue coins value in CRO unit * @returns {Coin} * @throws {Error} cro va
lib/src/coin/coin.ts:159
↓ 9 callers
Method
fromCosmosMsgJSON
* Returns an instance of DelayedVestingAccount * @param {string} msgJsonStr * @param {Network} network * @returns {DelayedV
lib/src/transaction/msg/account/DelayedVestingAccount.ts:51
↓ 9 callers
Method
toCosmosCoins
()
lib/src/coin/v2.coin/v2.coin.ts:24
↓ 8 callers
Function
anyTransaction
()
lib/src/transaction/raw.spec.ts:11
↓ 8 callers
Method
fromBuffer
* Create Bytes from Buffer value * @param {Buffer} value the buffer * @throws {Error} value is invalid * @returns {Bytes}
lib/src/utils/bytes/bytes.ts:44
↓ 8 callers
Method
fromCRO
* Create a Coin from CRO unit * @param {string} croValue coins value in CRO unit * @returns {CoinV2} * @throws {Error} cro
lib/src/coin/v2.coin/v2.coin.ts:194
↓ 8 callers
Method
fromCosmosMsgJSON
* Returns an instance of IBC.MsgTransfer * @param {string} msgJsonStr * @param {Network} network * @returns {MsgTransfer}
lib/src/transaction/msg/ibc/applications/MsgTransfer.ts:103
↓ 8 callers
Method
fromCosmosMsgJSON
* Returns an instance of IBC.MsgConnectionOpenTry * @param {string} msgJsonStr * @param {Network} network * @returns {MsgCo
lib/src/transaction/msg/ibc/core/connection/MsgConnectionOpenTry.ts:111
↓ 8 callers
Method
generateRandom
* generates random private key and returns KeyPair of it * @returns {Secp256k1KeyPair} generated KeyPair * @memberof KeyPair
lib/src/keypair/secp256k1.ts:50
↓ 8 callers
Function
isAddress
(value: Uint8Array | string, checkChecksum = true)
lib/src/utils/address.ts:64
↓ 8 callers
Function
owBig
()
lib/src/ow.types.ts:33
↓ 8 callers
Method
parseSignerAccounts
* Parse SignerAccounts in JSON. * The result of this function can be used to instantiate `SignableTransactionV2` * @static
lib/src/transaction/v2.raw.ts:144
↓ 7 callers
Method
fromCosmosMsgJSON
* Returns an instance of MsgSend * @param {string} msgJsonStr * @param {Network} network * @returns {MsgSend}
lib/src/transaction/msg/bank/msgsend.ts:54
↓ 7 callers
Method
fromCosmosMsgJSON
* Returns an instance of MsgSend * @param {string} msgJsonStr * @param {Network} network * @returns {MsgSendV2}
lib/src/transaction/msg/v2/bank/v2.msgsend.ts:42
↓ 7 callers
Method
fromCosmosMsgJSON
* Returns an instance of MsgDeposit * @param {string} msgJsonStr * @param {Network} network * @returns {MsgDeposit}
lib/src/transaction/msg/v2/gov/v2.MsgDeposit.ts:74
↓ 7 callers
Method
getPrivKey
* Return the private key of the KeyPair * @returns {Bytes} * @memberof KeyPair
lib/src/keypair/secp256k1.ts:64
↓ 7 callers
Method
isEqual
* Return true when the provided bytes is the same * @param {Bytes} anotherBytes * @returns {boolean}
lib/src/utils/bytes/bytes.ts:93
↓ 7 callers
Function
owIBCHeightOptional
()
lib/src/transaction/msg/ow.types.ts:219
↓ 7 callers
Function
owOptionalTimestamp
()
lib/src/transaction/msg/gov/ow.types.ts:49
↓ 7 callers
Method
toSignDoc
* DEPRECATED WARNING - this function will be deprecated * Returns the SignDoc Hash of the specified index * @param {number} index index of t
lib/src/transaction/signable.ts:129
↓ 7 callers
Method
toSignDocument
* Returns the SignDoc of the specified index before hashing * @param {number} index index of the signer * @returns {Bytes} * @throws {E
lib/src/transaction/signable.ts:82
↓ 7 callers
Method
validator
* Returns the validator address corresponding to the Secp256k1KeyPair or pubKeySource provided * @return {string}
lib/src/address/address.ts:49
↓ 6 callers
Function
decodeAnyType
(typeUrl: string, value: Uint8Array)
lib/src/utils/txDecoder.ts:121
↓ 6 callers
Method
getSignerAccounts
* Return signer account numbers array * @returns {SignerAccount[]} * @memberof Transaction
lib/src/transaction/raw.ts:255
↓ 6 callers
Method
getTxBody
* Returns TxBody * @returns {TxBody} * @memberof Transaction
lib/src/transaction/raw.ts:228
↓ 6 callers
Function
mnemonicWordsLength
(words: string)
lib/src/hdkey/hdkey.spec.ts:162
↓ 6 callers
Method
setTimeOutHeight
* Set a timeout param to tx body * @param {string} timeoutHeight to best to the broad-casted tx * @returns {RawTransaction}
lib/src/transaction/raw.ts:131
↓ 5 callers
Function
fuzzyArgDefFnGenerator
(type: FuzzyArgType)
lib/src/test/mocha-fuzzy/suite.ts:142
↓ 5 callers
Function
isHexStrict
(hex: Uint8Array | bigint | string | number | boolean)
lib/src/utils/address.ts:41
↓ 5 callers
Function
registerComponent
(constructor:any, selector:string, priority:number = 0, namespace:string = '*')
docs/themes/src/default/assets/js/src/typedoc/Application.ts:55
↓ 5 callers
Function
sha256
(input: Bytes)
lib/src/utils/hash.ts:16
next →
1–100 of 857, ranked by callers