Search
Preparing search index...
The search index is not available
Home
PaymentHubService
Class PaymentHubService
Hierarchy
Service
PaymentHubService
Index
Methods
activate
Payment
Hub
Bridge
create
Payment
Hub
Payment
deactivate
Payment
Hub
Bridge
destroy
get
Payment
Hub
get
Payment
Hub
Bridge
get
Payment
Hub
Bridges
get
Payment
Hub
Deposit
get
Payment
Hub
Deposits
get
Payment
Hub
Payment
get
Payment
Hub
Payments
get
Payment
Hubs
init
transfer
Payment
Hub
Deposit
update
Payment
Hub
update
Payment
Hub
Deposit
Methods
activate
Payment
Hub
Bridge
activate
Payment
Hub
Bridge
(
token
:
string
, acceptedChainId
:
number
, acceptedToken
?:
string
)
:
Promise
<
PaymentHubBridge
>
Parameters
token:
string
acceptedChainId:
number
Default value
acceptedToken:
string
= null
Returns
Promise
<
PaymentHubBridge
>
create
Payment
Hub
Payment
create
Payment
Hub
Payment
(
hub
:
string
, token
:
string
, recipient
:
string
, value
:
BigNumber
)
:
Promise
<
PaymentHubPayment
>
Parameters
hub:
string
token:
string
recipient:
string
value:
BigNumber
Returns
Promise
<
PaymentHubPayment
>
deactivate
Payment
Hub
Bridge
deactivate
Payment
Hub
Bridge
(
token
:
string
, acceptedChainId
:
number
, acceptedToken
?:
string
)
:
Promise
<
PaymentHubBridge
>
Parameters
token:
string
acceptedChainId:
number
Default value
acceptedToken:
string
= null
Returns
Promise
<
PaymentHubBridge
>
destroy
destroy
(
)
:
void
Returns
void
get
Payment
Hub
get
Payment
Hub
(
hub
:
string
, token
?:
string
)
:
Promise
<
PaymentHub
>
Parameters
hub:
string
Default value
token:
string
= null
Returns
Promise
<
PaymentHub
>
get
Payment
Hub
Bridge
get
Payment
Hub
Bridge
(
hub
:
string
, token
:
string
, acceptedChainId
:
number
, acceptedToken
:
string
)
:
Promise
<
PaymentHubBridge
>
Parameters
hub:
string
token:
string
acceptedChainId:
number
acceptedToken:
string
Returns
Promise
<
PaymentHubBridge
>
get
Payment
Hub
Bridges
get
Payment
Hub
Bridges
(
hub
:
string
, token
?:
string
, acceptedChainId
?:
number
, page
?:
number
)
:
Promise
<
PaymentHubBridges
>
Parameters
hub:
string
Default value
token:
string
= null
Default value
acceptedChainId:
number
= null
Default value
page:
number
= null
Returns
Promise
<
PaymentHubBridges
>
get
Payment
Hub
Deposit
get
Payment
Hub
Deposit
(
hub
:
string
, token
?:
string
, owner
:
string
)
:
Promise
<
PaymentHubDeposit
>
Parameters
hub:
string
Default value
token:
string
= null
owner:
string
Returns
Promise
<
PaymentHubDeposit
>
get
Payment
Hub
Deposits
get
Payment
Hub
Deposits
(
hub
:
string
, tokens
?:
string
[]
, owner
:
string
, page
?:
number
)
:
Promise
<
PaymentHubDeposits
>
Parameters
hub:
string
Default value
tokens:
string
[]
= []
owner:
string
Default value
page:
number
= null
Returns
Promise
<
PaymentHubDeposits
>
get
Payment
Hub
Payment
get
Payment
Hub
Payment
(
hash
:
string
)
:
Promise
<
PaymentHubPayment
>
Parameters
hash:
string
Returns
Promise
<
PaymentHubPayment
>
get
Payment
Hub
Payments
get
Payment
Hub
Payments
(
hub
:
string
, token
?:
string
, senderOrRecipient
:
string
, page
?:
number
)
:
Promise
<
PaymentHubPayments
>
Parameters
hub:
string
Default value
token:
string
= null
senderOrRecipient:
string
Default value
page:
number
= null
Returns
Promise
<
PaymentHubPayments
>
get
Payment
Hubs
get
Payment
Hubs
(
hub
?:
string
, token
?:
string
, page
?:
number
)
:
Promise
<
PaymentHubs
>
Parameters
Default value
hub:
string
= null
Optional
token:
string
Default value
page:
number
= null
Returns
Promise
<
PaymentHubs
>
init
init
(
context
:
Context
)
:
void
Parameters
context:
Context
Returns
void
transfer
Payment
Hub
Deposit
transfer
Payment
Hub
Deposit
(
hub
:
string
, token
:
string
, value
:
BigNumber
, targetChainId
:
number
, targetHub
?:
string
, targetToken
?:
any
)
:
Promise
<
PaymentHubDeposit
>
Parameters
hub:
string
token:
string
value:
BigNumber
targetChainId:
number
Default value
targetHub:
string
= null
Default value
targetToken:
any
= null
Returns
Promise
<
PaymentHubDeposit
>
update
Payment
Hub
update
Payment
Hub
(
liquidity
:
BigNumber
, token
?:
string
)
:
Promise
<
PaymentHub
>
Parameters
liquidity:
BigNumber
Default value
token:
string
= null
Returns
Promise
<
PaymentHub
>
update
Payment
Hub
Deposit
update
Payment
Hub
Deposit
(
hub
:
string
, totalAmount
:
BigNumber
, token
?:
string
)
:
Promise
<
PaymentHubDeposit
>
Parameters
hub:
string
totalAmount:
BigNumber
Default value
token:
string
= null
Returns
Promise
<
PaymentHubDeposit
>
Globals
Payment
Hub
Service
activate
Payment
Hub
Bridge
create
Payment
Hub
Payment
deactivate
Payment
Hub
Bridge
destroy
get
Payment
Hub
get
Payment
Hub
Bridge
get
Payment
Hub
Bridges
get
Payment
Hub
Deposit
get
Payment
Hub
Deposits
get
Payment
Hub
Payment
get
Payment
Hub
Payments
get
Payment
Hubs
init
transfer
Payment
Hub
Deposit
update
Payment
Hub
update
Payment
Hub
Deposit