pai
Preparing search index...
pai
buyAndPay
Function buyAndPay
buyAndPay
(
apiKey
:
string
,
env
:
Env
,
opts
:
{
amount_usd
:
number
;
coin
:
"usdc"
|
"sol"
|
"usdcsol"
;
onStatus
?:
(
s
:
string
)
=>
void
;
sleep
?:
(
ms
:
number
)
=>
Promise
<
void
>
;
wallet
?:
string
;
}
,
)
:
Promise
<
SelfPayResult
>
Buys credit for this key and pays for it from one of the agent's wallets.
Parameters
apiKey
:
string
env
:
Env
opts
:
{
amount_usd
:
number
;
coin
:
"usdc"
|
"sol"
|
"usdcsol"
;
onStatus
?:
(
s
:
string
)
=>
void
;
sleep
?:
(
ms
:
number
)
=>
Promise
<
void
>
;
wallet
?:
string
;
}
Returns
Promise
<
SelfPayResult
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
pai
Loading...
Buys credit for this key and pays for it from one of the agent's wallets.