@hypernetlabs/gateway-connector
Version:
Package that defines how to write a Hypernet Gateway.
18 lines • 981 B
TypeScript
import { BigNumberString, EthereumContractAddress, PaymentId, PublicIdentifier, SendFundsRequestData, UnixTimestamp } from "@hypernetlabs/objects";
export interface IInitiateSendFundsRequest extends SendFundsRequestData {
/**
* The request identifier is defined by the gateway connector, but should be a unique identifier for this particular payment.
* Usually, you can just use the internal payment ID from the gateway for this. If that is not available, a nonce works just fine.
* This must be signed with the rest of the request.
*/
requestIdentifier: string;
channelAddress: EthereumContractAddress;
recipientPublicIdentifier: PublicIdentifier;
amount: BigNumberString;
expirationDate: UnixTimestamp;
requiredStake: BigNumberString;
paymentToken: EthereumContractAddress;
metadata: string;
callback: (err: unknown | null, paymentId: PaymentId | null) => void;
}
//# sourceMappingURL=IInitiateSendFundsRequest.d.ts.map