Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidCreateAmount occurs when the amount for a friendbot create account request is out of bounds. The bounds // are defined in the friendbot service (see https://github.com/kinecosystem/friendbot/blob/master/src/routes.ts#L51). ErrInvalidCreateAmount = errors.New("friendbot create account request quark amount must be in the range [0, 1000000000]") // ErrInvalidFundAmount occurs when the amount for a friendbot fund account request is out of bounds. The bounds // defined in the friendbot service (https://github.com/kinecosystem/friendbot/blob/master/src/routes.ts#L51) allow // fund requests for 0 quarks, but the blockchain transaction will fail. Therefore, a min amount of 1 is required. ErrInvalidFundAmount = errors.New("friendbot fund account request quark amount must be in the range [1, 1000000000]") )
Functions ¶
func CreateAccount ¶
CreateAccount creates a new account on the test Kin network with the requested starting balance.
friendbot accepts an amount in kin, but parses it as a float and throws an internal error if the amount has more than 5 decimal places, so quarks are used here to avoid input errors.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.