Class

PriceQuote

PriceQuote

Price quote.

This type represents a price quote for an operation in the Nillion network.

Members

# cost

Gets the cost for the quoted operation in unil units. The payment associated for the quoted operation must transfer this amount for it to be considered a valid payment.

View Source nillion_client_wasm.js, line 2032

Example
const cost = quote.cost;

# expires_at

Get the expiration time for this price quote.

The payment and the operation execution must be invoked before this deadline is hit, otherwise the network will reject the operation request.

View Source nillion_client_wasm.js, line 2019

Example
const expiration_time = quote.expires_at;

# nonce

Gets the nonce for this quote. This nonce must be used as part of the payment transaction.

View Source nillion_client_wasm.js, line 2042

Example
const nonce = quote.nonce;