Skip to Content
Assets@exodus/web3-ethereum-utils

@exodus/web3-ethereum-utils

Version: 0.0.0

createSimulateMessage

createSimulateTransactions

getTxFeeDetails

variable

Type

const getTxFeeDetails: (transaction: EthTransaction) => { ... }

Signature

__type(transaction: EthTransaction): any

Parameters:

transaction: EthTransaction

Returns:

any

Properties

gasLimit
string
gasPrice
string
maxFeePerGas
string | undefined

isSimpleTransfer

variable

Type

const isSimpleTransfer: (transaction: EthTransaction) => boolean

Signature

__type(transaction: EthTransaction): boolean

Parameters:

transaction: EthTransaction

Returns:

boolean

bufferToHex0xString

function

Signature

bufferToHex0xString(buf: Buffer): string

Parameters:

buf: Buffer

Returns:

string

condenseAddress

function

Signature

condenseAddress(address: string): string

Parameters:

address: string

Returns:

string

decodeRecipientAddresses

function

Signature

decodeRecipientAddresses(transaction: EthTransaction): string[]

Parameters:

transaction: EthTransaction

Returns:

string[]

getDisplayDetails

function

Signature

getDisplayDetails(willApprove: ApprovalBalanceChange[]): any

Parameters:

willApprove: ApprovalBalanceChange[]

Returns:

any

getTransactionId

function

Signature

getTransactionId(__namedParameters: any): string

Parameters:

__namedParameters: any

Returns:

string

hex0xStringToBuffer

function

Signature

hex0xStringToBuffer(hex: string): Buffer

Parameters:

hex: string

Returns:

Buffer

signMessage

function

Signature

signMessage(message: string, privateKey: Buffer): string

Parameters:

message: string
privateKey: Buffer

Returns:

string

signTransaction

function

Signature

signTransaction(transactionParams: EthTransactionParams, privateKey: Buffer): Buffer

Parameters:

transactionParams: EthTransactionParams
privateKey: Buffer

Returns:

Buffer

signTypedData

function

Signature

signTypedData(typedData: TypedDataV1 | TypedMessage, privateKey: Buffer, version?: SignTypedDataVersion): string

Parameters:

typedData: TypedDataV1 | TypedMessage
privateKey: Buffer
version (optional): SignTypedDataVersion

Returns:

string

EthFeeDetails

interface

Properties

gasLimit
unknown
gasPrice
unknown
maxFeePerGas
unknown

EthSimulateMessageParams

interface

Properties

address
string
asset
message
string
url
URL

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

Properties

type
string

EthAggregatedTransactionSimulationResult

type

EthParentCapability

type

EthTransactionHash

type

EthWalletWatchAssetOptions

type

Properties

address
string
chainId?
number
decimals?
number
image?
string
symbol?
string

createSimulateMessage

createSimulateTransactions

bufferToHex0xString

function

Signature

bufferToHex0xString(buf: Buffer): string

Parameters:

buf: Buffer

Returns:

string

condenseAddress

function

Signature

condenseAddress(address: string): string

Parameters:

address: string

Returns:

string

decodeRecipientAddresses

function

Signature

decodeRecipientAddresses(transaction: EthTransaction): string[]

Parameters:

transaction: EthTransaction

Returns:

string[]

getDisplayDetails

function

Signature

getDisplayDetails(willApprove: ApprovalBalanceChange[]): any

Parameters:

willApprove: ApprovalBalanceChange[]

Returns:

any

getTransactionId

function

Signature

getTransactionId(__namedParameters: any): string

Parameters:

__namedParameters: any

Returns:

string

getTxFeeDetails

function

Signature

getTxFeeDetails(transaction: EthTransaction): any

Parameters:

transaction: EthTransaction

Returns:

any

hex0xStringToBuffer

function

Signature

hex0xStringToBuffer(hex: string): Buffer

Parameters:

hex: string

Returns:

Buffer

isSimpleTransfer

function

Signature

isSimpleTransfer(transaction: EthTransaction): boolean

Parameters:

transaction: EthTransaction

Returns:

boolean

signMessage

function

Signature

signMessage(message: string, privateKey: Buffer): string

Parameters:

message: string
privateKey: Buffer

Returns:

string

signTransaction

function

Signature

signTransaction(transactionParams: EthTransactionParams, privateKey: Buffer): Buffer

Parameters:

transactionParams: EthTransactionParams
privateKey: Buffer

Returns:

Buffer

signTypedData

function

Signature

signTypedData(typedData: TypedDataV1 | TypedMessage, privateKey: Buffer, version: SignTypedDataVersion): string

Parameters:

typedData: TypedDataV1 | TypedMessage
privateKey: Buffer
version: SignTypedDataVersion

Returns:

string

EthFeeDetails

interface

Properties

gasLimit
unknown
gasPrice
unknown
maxFeePerGas
unknown

EthSimulateMessageParams

interface

Properties

address
string
asset
message
string
url
URL

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

Properties

type
string

EthAggregatedTransactionSimulationResult

type

EthParentCapability

type

EthTransactionHash

type

EthWalletWatchAssetOptions

type

Properties

address
string
chainId?
number
decimals?
number
image?
string
symbol?
string

Start building

XO

Request Demo

Schedule a call with our team

Select a product
Arrow right

Start building
Grateful

Contact Us

We're here to help