Preparing search index...
The search index is not available
CA SDK Reference - v0.0.2
CA SDK Reference
CA
Class CA
Index
Constructors
constructor
Properties
ca
Event
Emitter
on
remove
Listener
Methods
addCAEvent
Listener
allowance
bridge
get
Unified
Balance
get
Unified
Balances
init
removeCAEvent
Listener
request
set
On
Allowance
Hook
set
On
Intent
Hook
transfer
Constructors
constructor
new CA
(
provider
,
config
?
)
:
CA
Parameters
provider
:
EthereumProvider
config
:
SDKConfig
= ...
Returns
CA
Properties
ca
Event
Emitter
ca
Event
Emitter
:
SafeEventEmitter
= ...
on
on
:
(
(
eventName
:
string
|
symbol
,
listener
:
(
(
...
args
:
any
[]
)
=>
void
)
)
=>
this
)
remove
Listener
remove
Listener
:
(
(
eventName
:
string
|
symbol
,
listener
:
(
(
...
args
:
any
[]
)
=>
void
)
)
=>
this
)
Methods
addCAEvent
Listener
addCAEvent
Listener
(
listener
)
:
void
Parameters
listener
:
(
(
...
args
:
any
[]
)
=>
void
)
(
...
args
)
:
void
Parameters
Rest
...
args
:
any
[]
Returns
void
Returns
void
allowance
allowance
(
)
:
AllowanceQueryBuilder
Returns
AllowanceQueryBuilder
bridge
bridge
(
)
:
BridgeQueryBuilder
Returns
BridgeQueryBuilder
get
Unified
Balance
get
Unified
Balance
(
symbol
)
:
Promise
<
undefined
|
UserAsset
>
Parameters
symbol
:
string
Returns
Promise
<
undefined
|
UserAsset
>
get
Unified
Balances
get
Unified
Balances
(
)
:
Promise
<
{
abstracted
:
undefined
|
boolean
;
balance
:
string
;
balanceInFiat
:
number
;
breakdown
:
{
balance
:
string
;
balanceInFiat
:
number
;
chain
:
{
id
:
number
;
logo
:
string
;
name
:
string
;
}
;
contractAddress
:
`
0x
${
string
}
`
;
isNative
:
undefined
|
boolean
;
network
:
"evm"
;
}
[]
;
decimals
:
number
;
icon
:
undefined
|
string
;
local
:
undefined
|
boolean
;
symbol
:
string
;
}
[]
>
Returns
Promise
<
{
abstracted
:
undefined
|
boolean
;
balance
:
string
;
balanceInFiat
:
number
;
breakdown
:
{
balance
:
string
;
balanceInFiat
:
number
;
chain
:
{
id
:
number
;
logo
:
string
;
name
:
string
;
}
;
contractAddress
:
`
0x
${
string
}
`
;
isNative
:
undefined
|
boolean
;
network
:
"evm"
;
}
[]
;
decimals
:
number
;
icon
:
undefined
|
string
;
local
:
undefined
|
boolean
;
symbol
:
string
;
}
[]
>
init
init
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
removeCAEvent
Listener
removeCAEvent
Listener
(
listener
)
:
void
Parameters
listener
:
(
(
...
args
:
any
[]
)
=>
void
)
(
...
args
)
:
void
Parameters
Rest
...
args
:
any
[]
Returns
void
Returns
void
request
request
(
args
)
:
Promise
<
unknown
>
Parameters
args
:
RequestArguments
Returns
Promise
<
unknown
>
set
On
Allowance
Hook
set
On
Allowance
Hook
(
hook
)
:
void
Parameters
hook
:
OnAllowanceHook
Returns
void
set
On
Intent
Hook
set
On
Intent
Hook
(
hook
)
:
void
Parameters
hook
:
OnIntentHook
Returns
void
transfer
transfer
(
)
:
SendQueryBuilder
Returns
SendQueryBuilder
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
ca
Event
Emitter
on
remove
Listener
Methods
addCAEvent
Listener
allowance
bridge
get
Unified
Balance
get
Unified
Balances
init
removeCAEvent
Listener
request
set
On
Allowance
Hook
set
On
Intent
Hook
transfer
Docs
CA SDK Reference - v0.0.2
Loading...