Friendbot

Fund accounts on TestNet or FutureNet using Friendbot.

initializeWithFriendbot

import { initializeWithFriendbot, NetworkConfig } from "@colibri/core";

const network = NetworkConfig.TestNet();

await initializeWithFriendbot(
  network.friendbotUrl,
  "GABC...XYZ" // Public key to fund
);

Signature

async function initializeWithFriendbot(
  friendbotUrl: string,
  publicKey: Ed25519PublicKey
): Promise<void>;

Example

Creating and funding a new test account:

Network Availability

Network
Friendbot Available
URL

MainNet

TestNet

Yes

https://friendbot.stellar.org

FutureNet

Yes

https://friendbot-futurenet.stellar.org

Custom

Configurable

Your own friendbot URL

Check availability before calling:

Next Steps

Last updated