Table of Contents

Class Body18

Namespace
Thirdweb.Api
Assembly
Thirdweb.dll
public class Body18
Inheritance
Body18
Inherited Members

Properties

AdditionalProperties

[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties { get; set; }

Property Value

IDictionary<string, object>

ExtraMetadata

Optional extra data to be passed to in the payment requirements.

[JsonProperty("extraMetadata", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public IDictionary<string, object> ExtraMetadata { get; set; }

Property Value

IDictionary<string, object>

Method

The HTTP method used to access the resource

[JsonProperty("method", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public Method2 Method { get; set; }

Property Value

Method2

Network

The blockchain network where the payment should be processed

[JsonProperty("network", Required = Required.Always)]
public Network Network { get; set; }

Property Value

Network

Price

The price for accessing the resource - either a USD amount (e.g., '$0.10') or a specific token amount

[JsonProperty("price", Required = Required.Always)]
public Price Price { get; set; }

Property Value

Price

RecipientAddress

Optional recipient address to receive the payment if different from your facilitator server wallet address

[JsonProperty("recipientAddress", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public string RecipientAddress { get; set; }

Property Value

string

ResourceUrl

The URL of the resource being protected by the payment

[JsonProperty("resourceUrl", Required = Required.Always)]
[Required(AllowEmptyStrings = true)]
public Uri ResourceUrl { get; set; }

Property Value

Uri

RouteConfig

Optional configuration for the payment middleware route

[JsonProperty("routeConfig", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public RouteConfig RouteConfig { get; set; }

Property Value

RouteConfig

ServerWalletAddress

Your server wallet address, defaults to the project server wallet address

[JsonProperty("serverWalletAddress", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public string ServerWalletAddress { get; set; }

Property Value

string