@grainlify/contracts-sdk / ProgramEscrowClient
Defined in: src/program-escrow-client.ts:56
Client for interacting with the ProgramEscrow Soroban contract
new ProgramEscrowClient(
config):ProgramEscrowClient
Defined in: src/program-escrow-client.ts:64
Create a client bound to one ProgramEscrow contract and Soroban RPC endpoint.
ProgramEscrowClient
batchPayout(
recipients,amounts,sourceKeypair):Promise<ProgramData>
Defined in: src/program-escrow-client.ts:135
Execute batch payouts to multiple recipients
string[]
bigint[]
Keypair
Promise<ProgramData>
createProgramReleaseSchedule(
recipient,amount,releaseTimestamp,sourceKeypair):Promise<ProgramReleaseSchedule>
Defined in: src/program-escrow-client.ts:229
Create a release schedule
string
bigint
number
Keypair
Promise<ProgramReleaseSchedule>
getProgramInfo():
Promise<ProgramData>
Defined in: src/program-escrow-client.ts:205
Get program information
Promise<ProgramData>
getRemainingBalance():
Promise<bigint>
Defined in: src/program-escrow-client.ts:217
Get remaining balance
Promise<bigint>
initProgram(
programId,authorizedPayoutKey,tokenAddress,sourceKeypair):Promise<ProgramData>
Defined in: src/program-escrow-client.ts:83
Initialize a new program escrow
string
string
string
Keypair
Promise<ProgramData>
lockProgramFunds(
from,amount,sourceKeypair):Promise<ProgramData>
Defined in: src/program-escrow-client.ts:111
Lock funds into the program escrow
string
bigint
Keypair
Promise<ProgramData>
singlePayout(
recipient,amount,sourceKeypair):Promise<ProgramData>
Defined in: src/program-escrow-client.ts:179
Execute a single payout
string
bigint
Keypair
Promise<ProgramData>
triggerProgramReleases(
sourceKeypair):Promise<number>
Defined in: src/program-escrow-client.ts:256
Trigger program releases
Keypair
Promise<number>