Solana Kit
Fund Your Account
Learn how to fund your Shelby storage account for uploads
Funding Your Storage Account
Before uploading files to Shelby, your storage account needs to hold two types of tokens:
- ShelbyUSD tokens - Used to pay for blob storage on the Shelby network
- APT tokens - Used to pay for gas fees when sending transactions
Funding Methods
Fund with the Shelby SDK API
Fund with ShelbyUSD (Storage Fees)
ShelbyUSD tokens are used to pay for blob storage. The cost depends on the size of the data and the storage duration.
await shelbyClient.fundAccountWithShelbyUSD({
address: storageAccount.accountAddress,
amount: 1_000_000, // Amount in smallest units
});// In React, use the derived storage account address
await shelbyClient.fundAccountWithShelbyUSD({
address: storageAccountAddress,
amount: 1_000_000,
});Fund with APT (Transaction Fees)
APT tokens are required to pay for gas when submitting transactions to the Aptos network.
await shelbyClient.fundAccountWithAPT({
address: storageAccount.accountAddress,
amount: 1_000_000, // Amount in octas (1 APT = 100,000,000 octas)
});await shelbyClient.fundAccountWithAPT({
address: storageAccountAddress,
amount: 1_000_000,
});Fund with the Web Faucet
Alternatively, you can use the web faucet to fund the storage account with ShelbyUSD and APT
Fund your account with either ShelbyUSD Tokens or APTOS APT Tokens