Paych

The Paych methods are for interacting with and managing payment channels

PaychAllocateLane

Perms: sign

Inputs:

["f01234"]

Response: 42

PaychAvailableFunds

Perms: sign

Inputs:

["f01234"]

Response:

{
  "Channel": "f01234",
  "From": "f01234",
  "To": "f01234",
  "ConfirmedAmt": "0",
  "PendingAmt": "0",
  "NonReservedAmt": "0",
  "PendingAvailableAmt": "0",
  "PendingWaitSentinel": {
    "/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4"
  },
  "QueuedAmt": "0",
  "VoucherRedeemedAmt": "0"
}

PaychAvailableFundsByFromTo

Perms: sign

Inputs:

Response:

PaychCollect

Perms: sign

Inputs:

Response:

PaychFund

PaychFund gets or creates a payment channel between address pair. The specified amount will be added to the channel through on-chain send for future use

Perms: sign

Inputs:

Response:

PaychGet

PaychGet gets or creates a payment channel between address pair The specified amount will be reserved for use. If there aren't enough non-reserved funds available, funds will be added through an on-chain message.

  • When opts.OffChain is true, this call will not cause any messages to be sent to the chain (no automatic channel creation/funds adding). If the operation can't be performed without sending a message an error will be returned. Note that even when this option is specified, this call can be blocked by previous operations on the channel waiting for on-chain operations.

Perms: sign

Inputs:

Response:

PaychGetWaitReady

Perms: sign

Inputs:

Response: "f01234"

PaychList

Perms: read

Inputs: null

Response:

PaychNewPayment

Perms: sign

Inputs:

Response:

PaychSettle

Perms: sign

Inputs:

Response:

PaychStatus

Perms: read

Inputs:

Response:

PaychVoucherAdd

Perms: write

Inputs:

Response: "0"

PaychVoucherCheckSpendable

Perms: read

Inputs:

Response: true

PaychVoucherCheckValid

Perms: read

Inputs:

Response: {}

PaychVoucherCreate

Perms: sign

Inputs:

Response:

PaychVoucherList

Perms: write

Inputs:

Response:

PaychVoucherSubmit

Perms: sign

Inputs:

Response:

Was this page helpful?

Last updated

Was this helpful?