@exodus/web3-ethereum-utils
Version: 0.0.0
Interfaces
EthFeeDetails
EthSimulateMessageParams
EthSimulateTransactionParams
EthTransaction
EthTransactionParams
EthWalletPermission
EthWalletSwitchEthereumChain
EthWalletWatchAsset
EthFeeDetails
EthSimulateMessageParams
EthSimulateTransactionParams
EthTransaction
EthTransactionParams
EthWalletPermission
EthWalletSwitchEthereumChain
EthWalletWatchAsset
Functions
bufferToHex0xString
condenseAddress
decodeRecipientAddresses
getDisplayDetails
getTransactionId
hex0xStringToBuffer
signMessage
signTransaction
signTypedData
bufferToHex0xString
condenseAddress
decodeRecipientAddresses
getDisplayDetails
getTransactionId
getTxFeeDetails
hex0xStringToBuffer
isSimpleTransfer
signMessage
signTransaction
signTypedData
Type Aliases
createSimulateMessage
variable
createSimulateTransactions
variable
getTxFeeDetails
variable
Type
const getTxFeeDetails: (transaction: EthTransaction) => { ... }Signature
Properties
gasLimit
string
gasPrice
string
maxFeePerGas
string | undefined
isSimpleTransfer
variable
Type
const isSimpleTransfer: (transaction: EthTransaction) => booleanSignature
bufferToHex0xString
function
Signature
bufferToHex0xString(buf: Buffer): string
Parameters:
buf: Buffer
Returns:
stringcondenseAddress
function
Signature
condenseAddress(address: string): string
Parameters:
address: string
Returns:
stringdecodeRecipientAddresses
function
Signature
decodeRecipientAddresses(transaction: EthTransaction): string[]
Parameters:
transaction: EthTransaction
Returns:
string[]getDisplayDetails
function
Signature
getDisplayDetails(willApprove: ApprovalBalanceChange[]): any
Parameters:
willApprove: ApprovalBalanceChange[]
Returns:
anygetTransactionId
function
Signature
getTransactionId(__namedParameters: any): string
Parameters:
__namedParameters: any
Returns:
stringhex0xStringToBuffer
function
Signature
hex0xStringToBuffer(hex: string): Buffer
Parameters:
hex: string
Returns:
BuffersignMessage
function
Signature
signMessage(message: string, privateKey: Buffer): string
Parameters:
message: string
privateKey: Buffer
Returns:
stringsignTransaction
function
Signature
Parameters:
transactionParams: EthTransactionParams
privateKey: Buffer
Returns:
BuffersignTypedData
function
Signature
signTypedData(typedData: TypedDataV1 | TypedMessage, privateKey: Buffer, version?: SignTypedDataVersion): string
Parameters:
typedData: TypedDataV1 | TypedMessage
privateKey: Buffer
version (optional): SignTypedDataVersion
Returns:
stringEthFeeDetails
interface
Properties
gasLimit
unknown
gasPrice
unknown
maxFeePerGas
unknown
EthSimulateMessageParams
interface
EthSimulateTransactionParams
interface
Properties
asset
blockNumber?
string
headers?
Record
origin
string
overrideApiEndpoint?
string
recipientAddress?
string
transactions
EthTransaction
interface
Properties
chainId
string
data
string
from
string
gas
string
gasPrice
string
maxFeePerGas?
string
maxPriorityFeePerGas?
string
nonce
string
to?
string
value
string
EthTransactionParams
interface
Properties
chainId
number
data
string
from
string
gas?
string
gasLimit?
string
gasPrice?
string
maxFeePerGas?
string
maxPriorityFeePerGas?
string
nonce?
string
to?
string
value?
string
EthWalletPermission
interface
Properties
parentCapability
"eth_accounts"
EthWalletSwitchEthereumChain
interface
Properties
chainId
string
EthWalletWatchAsset
interface
EthAggregatedTransactionSimulationResult
type
EthParentCapability
type
EthTransactionHash
type
EthWalletWatchAssetOptions
type
Properties
address
string
chainId?
number
decimals?
number
image?
string
symbol?
string
createSimulateMessage
variable
createSimulateTransactions
variable
bufferToHex0xString
function
Signature
bufferToHex0xString(buf: Buffer): string
Parameters:
buf: Buffer
Returns:
stringcondenseAddress
function
Signature
condenseAddress(address: string): string
Parameters:
address: string
Returns:
stringdecodeRecipientAddresses
function
Signature
decodeRecipientAddresses(transaction: EthTransaction): string[]
Parameters:
transaction: EthTransaction
Returns:
string[]getDisplayDetails
function
Signature
getDisplayDetails(willApprove: ApprovalBalanceChange[]): any
Parameters:
willApprove: ApprovalBalanceChange[]
Returns:
anygetTransactionId
function
Signature
getTransactionId(__namedParameters: any): string
Parameters:
__namedParameters: any
Returns:
stringgetTxFeeDetails
function
Signature
hex0xStringToBuffer
function
Signature
hex0xStringToBuffer(hex: string): Buffer
Parameters:
hex: string
Returns:
BufferisSimpleTransfer
function
Signature
isSimpleTransfer(transaction: EthTransaction): boolean
Parameters:
transaction: EthTransaction
Returns:
booleansignMessage
function
Signature
signMessage(message: string, privateKey: Buffer): string
Parameters:
message: string
privateKey: Buffer
Returns:
stringsignTransaction
function
Signature
Parameters:
transactionParams: EthTransactionParams
privateKey: Buffer
Returns:
BuffersignTypedData
function
Signature
signTypedData(typedData: TypedDataV1 | TypedMessage, privateKey: Buffer, version: SignTypedDataVersion): string
Parameters:
typedData: TypedDataV1 | TypedMessage
privateKey: Buffer
version: SignTypedDataVersion
Returns:
stringEthFeeDetails
interface
Properties
gasLimit
unknown
gasPrice
unknown
maxFeePerGas
unknown
EthSimulateMessageParams
interface
EthSimulateTransactionParams
interface
Properties
asset
blockNumber?
string
headers?
Record
origin
string
overrideApiEndpoint?
string
recipientAddress?
string
transactions
EthTransaction
interface
Properties
chainId
string
data
string
from
string
gas
string
gasPrice
string
maxFeePerGas?
string
maxPriorityFeePerGas?
string
nonce
string
to?
string
value
string
EthTransactionParams
interface
Properties
chainId
number
data
string
from
string
gas?
string
gasLimit?
string
gasPrice?
string
maxFeePerGas?
string
maxPriorityFeePerGas?
string
nonce?
string
to?
string
value?
string
EthWalletPermission
interface
Properties
parentCapability
"eth_accounts"
EthWalletSwitchEthereumChain
interface
Properties
chainId
string
EthWalletWatchAsset
interface
EthAggregatedTransactionSimulationResult
type
EthParentCapability
type
EthTransactionHash
type
EthWalletWatchAssetOptions
type
Properties
address
string
chainId?
number
decimals?
number
image?
string
symbol?
string
