Orderly SDKs / Modules / @orderly.network/core / WalletAdapter
@orderly.network/core.WalletAdapter
• formatUnits: (amount
: string
) => string
▸ (amount
): string
Name | Type |
---|---|
amount | string |
string
packages/core/src/wallet/adapter.ts:14
• getBalance: (userAddress
: string
) => Promise
<any
>
▸ (userAddress
): Promise
<any
>
Name | Type |
---|---|
userAddress | string |
Promise
<any
>
packages/core/src/wallet/adapter.ts:47
• getTransactionRecipect: (txHash
: string
) => Promise
<any
>
▸ (txHash
): Promise
<any
>
Name | Type |
---|---|
txHash | string |
Promise
<any
>
packages/core/src/wallet/adapter.ts:36
• parseUnits: (amount
: string
) => string
▸ (amount
): string
Name | Type |
---|---|
amount | string |
string
packages/core/src/wallet/adapter.ts:13
• pollTransactionReceiptWithBackoff: (txHash
: string
, baseInterval?
: number
, maxInterval?
: number
, maxRetries?
: number
) => Promise
<any
>
▸ (txHash
, baseInterval?
, maxInterval?
, maxRetries?
): Promise
<any
>
Name | Type |
---|---|
txHash | string |
baseInterval? | number |
maxInterval? | number |
maxRetries? | number |
Promise
<any
>
packages/core/src/wallet/adapter.ts:39
• send: (method
: string
, params
: any
[] | Record
<string
, any
>) => Promise
<any
>
▸ (method
, params
): Promise
<any
>
Name | Type |
---|---|
method | string |
params | any [] | Record <string , any > |
Promise
<any
>
packages/core/src/wallet/adapter.ts:17
• signTypedData: (address
: string
, data
: any
) => Promise
<string
>
▸ (address
, data
): Promise
<string
>
Name | Type |
---|---|
address | string |
data | any |
Promise
<string
>
packages/core/src/wallet/adapter.ts:37
• get
addresses(): string
string
packages/core/src/wallet/adapter.ts:8
• get
chainId(): number
number
packages/core/src/wallet/adapter.ts:7
• set
chainId(chainId
): void
Set the chain id
Name | Type |
---|---|
chainId | number |
void
packages/core/src/wallet/adapter.ts:12
▸ call(address
, method
, params
, options
): Promise
<any
>
Name | Type |
---|---|
address | string |
method | string |
params | any |
options | Object |
options.abi | any |
Promise
<any
>
packages/core/src/wallet/adapter.ts:52
▸ callOnChain(chain
, address
, method
, params
, options
): Promise
<any
>
Name | Type |
---|---|
chain | NetworkInfos |
address | string |
method | string |
params | any |
options | Object |
options.abi | any |
Promise
<any
>
packages/core/src/wallet/adapter.ts:61
▸ off(eventName
, listener
): void
Name | Type |
---|---|
eventName | any |
listener | any |
void
packages/core/src/wallet/adapter.ts:72
▸ on(eventName
, listener
): void
Name | Type |
---|---|
eventName | any |
listener | any |
void
packages/core/src/wallet/adapter.ts:71
▸ sendTransaction(contractAddress
, method
, payload
, options
): Promise
<TransactionResponse
>
Name | Type |
---|---|
contractAddress | string |
method | string |
payload | Object |
payload.data | any [] |
payload.from | string |
payload.to? | string |
payload.value? | bigint |
options | Object |
options.abi | any |
Promise
<TransactionResponse
>
packages/core/src/wallet/adapter.ts:22
Orderly SDKs / Modules / @orderly.network/core / WalletAdapter
@orderly.network/core.WalletAdapter
• formatUnits: (amount
: string
) => string
▸ (amount
): string
Name | Type |
---|---|
amount | string |
string
packages/core/src/wallet/adapter.ts:14
• getBalance: (userAddress
: string
) => Promise
<any
>
▸ (userAddress
): Promise
<any
>
Name | Type |
---|---|
userAddress | string |
Promise
<any
>
packages/core/src/wallet/adapter.ts:47
• getTransactionRecipect: (txHash
: string
) => Promise
<any
>
▸ (txHash
): Promise
<any
>
Name | Type |
---|---|
txHash | string |
Promise
<any
>
packages/core/src/wallet/adapter.ts:36
• parseUnits: (amount
: string
) => string
▸ (amount
): string
Name | Type |
---|---|
amount | string |
string
packages/core/src/wallet/adapter.ts:13
• pollTransactionReceiptWithBackoff: (txHash
: string
, baseInterval?
: number
, maxInterval?
: number
, maxRetries?
: number
) => Promise
<any
>
▸ (txHash
, baseInterval?
, maxInterval?
, maxRetries?
): Promise
<any
>
Name | Type |
---|---|
txHash | string |
baseInterval? | number |
maxInterval? | number |
maxRetries? | number |
Promise
<any
>
packages/core/src/wallet/adapter.ts:39
• send: (method
: string
, params
: any
[] | Record
<string
, any
>) => Promise
<any
>
▸ (method
, params
): Promise
<any
>
Name | Type |
---|---|
method | string |
params | any [] | Record <string , any > |
Promise
<any
>
packages/core/src/wallet/adapter.ts:17
• signTypedData: (address
: string
, data
: any
) => Promise
<string
>
▸ (address
, data
): Promise
<string
>
Name | Type |
---|---|
address | string |
data | any |
Promise
<string
>
packages/core/src/wallet/adapter.ts:37
• get
addresses(): string
string
packages/core/src/wallet/adapter.ts:8
• get
chainId(): number
number
packages/core/src/wallet/adapter.ts:7
• set
chainId(chainId
): void
Set the chain id
Name | Type |
---|---|
chainId | number |
void
packages/core/src/wallet/adapter.ts:12
▸ call(address
, method
, params
, options
): Promise
<any
>
Name | Type |
---|---|
address | string |
method | string |
params | any |
options | Object |
options.abi | any |
Promise
<any
>
packages/core/src/wallet/adapter.ts:52
▸ callOnChain(chain
, address
, method
, params
, options
): Promise
<any
>
Name | Type |
---|---|
chain | NetworkInfos |
address | string |
method | string |
params | any |
options | Object |
options.abi | any |
Promise
<any
>
packages/core/src/wallet/adapter.ts:61
▸ off(eventName
, listener
): void
Name | Type |
---|---|
eventName | any |
listener | any |
void
packages/core/src/wallet/adapter.ts:72
▸ on(eventName
, listener
): void
Name | Type |
---|---|
eventName | any |
listener | any |
void
packages/core/src/wallet/adapter.ts:71
▸ sendTransaction(contractAddress
, method
, payload
, options
): Promise
<TransactionResponse
>
Name | Type |
---|---|
contractAddress | string |
method | string |
payload | Object |
payload.data | any [] |
payload.from | string |
payload.to? | string |
payload.value? | bigint |
options | Object |
options.abi | any |
Promise
<TransactionResponse
>
packages/core/src/wallet/adapter.ts:22