UNPKG

@stellar/stellar-sdk

Version:

A library for working with the Stellar network, including communication with the Horizon and Soroban RPC servers.

13 lines (12 loc) 645 B
import xdr from "../xdr.js"; import { CreateAccountResult, CreateAccountOpts } from "./types.js"; /** * Create and fund a non-existent account. * * @param opts - Options object * - `destination`: Destination account ID to create an account for. * - `startingBalance`: Amount in XLM the account should be funded for. Must be greater * than the {@link https://developers.stellar.org/docs/glossary/fees/ | reserve balance amount}. * - `source`: The source account for the payment. Defaults to the transaction's source account. */ export declare function createAccount(opts: CreateAccountOpts): xdr.Operation<CreateAccountResult>;