Estimate Costs and Handle Upload Payments
Prerequisites
Steps
1. Check the configured wallet
curl http://localhost:8082/v1/wallet/address
curl http://localhost:8082/v1/wallet/balancefrom antd import AntdClient
client = AntdClient()
address = client.wallet_address()
balance = client.wallet_balance()
print(address.address)
print(balance.balance)
print(balance.gas_balance)import { createClient } from "antd";
async function main() {
const client = createClient();
const address = await client.walletAddress();
const balance = await client.walletBalance();
console.log(address.address);
console.log(balance.balance);
console.log(balance.gasBalance);
}
main().catch((error) => {
console.error(error);
process.exit(1);
});2. Approve token spend
3. Estimate storage cost
4. Choose a payment mode when uploading
5. Understand local versus public-network testing
Verify it worked
Common errors
Next steps
Last updated