Skip to main content
Transfer credit to another account.

Signature

VastAI.transfer_credit(
    recipient: str,
    amount: float
) -> dict

Parameters

recipient
str
required
email (or id) of recipient account
amount
float
required
dollars of credit to transfer

Returns

dict

Example

from vastai import VastAI

client = VastAI(api_key="YOUR_API_KEY")
result = client.transfer_credit(recipient="value", amount=1.0)
print(result)