Open source program

ICPX Payments IDL.

Solana escrow instructions for GPU jobs, streaming receipts, completion and disputes.

Instructions

accept_job

43, 201, 124, 1, 19, 189, 96, 10

2 accounts

Accounts

providerread signer
jobwritable account

Args

None

cancel_expired_job

140, 225, 133, 15, 106, 212, 83, 145

2 accounts

Accounts

jobwritable account
requester_refund_accountwritable account

Args

None

complete_job

221, 216, 225, 72, 101, 250, 3, 11

5 accounts

Accounts

authorityread signer
jobwritable account
provider_payment_accountwritable account
requester_refund_accountwritable account
protocol_fee_accountwritable account

Args

receiptAnchorGpuStreamReceipt

create_gpu_job

194, 80, 98, 30, 254, 121, 100, 85

3 accounts

Accounts

requesterwritable signer
jobwritable account
system_programread account 1111...1111

Args

argsAnchorCreateGpuJobArgs

fund_job

244, 198, 4, 15, 41, 178, 169, 187

2 accounts

Accounts

requesterwritable signer
jobwritable account

Args

None

open_dispute

137, 25, 99, 119, 23, 223, 161, 42

2 accounts

Accounts

signerread signer
jobwritable account

Args

None

settle_stream

75, 209, 108, 133, 65, 133, 93, 228

4 accounts

Accounts

receipt_authorityread signer
jobwritable account
provider_payment_accountwritable account
protocol_fee_accountwritable account

Args

receiptAnchorGpuStreamReceipt

Types

AnchorCreateGpuJobArgs

struct

Fields

providerpubkey
receipt_authoritypubkey
metadata_hash[u8; 32]
gpu_profile_hash[u8; 32]
nvidia_api_hash[u8; 32]
metering_unitAnchorGpuMeteringUnit
payment_assetAnchorPaymentAsset
client_nonceu64
price_per_unitu64
max_unitsu64
expiry_slotu64

AnchorGpuMeteringUnit

enum

Fields

GpuMillisecondvariant
NvidiaBillingUnitvariant
OutputTokenvariant
Requestvariant

AnchorGpuStreamReceipt

struct

Fields

cumulative_unitsu64
result_hash[u8; 32]
receipt_nonceu64

AnchorPaymentAsset

enum

Fields

Solvariant
Usdcvariant
Icpxvariant

Errors

Payment assets

GPU jobs can be funded with SOL, USDC or ICPX.

GPU job lifecycle

Create the job, fund it, start the provider runtime, then settle usage when work is done.

Receipt authority

Runtime receipts close the loop between paid compute and finished work.

Mainnet ready

The website now indexes the deployed mainnet IDL.