# Nibgate SDK ## SDK Reference - [SDK reference](https://docs.nibgate.xyz/sdk-reference/pages/introduction.md): Source-mapped Nibgate SDK 0.4.40 reference. - [client.gate](https://docs.nibgate.xyz/sdk-reference/pages/api/gate.md): Create a resource-scoped event and local unlock controller - [client.content](https://docs.nibgate.xyz/sdk-reference/pages/api/content.md): Emit content_registered with normalized resource metadata - [client.registerContent](https://docs.nibgate.xyz/sdk-reference/pages/api/registercontent.md): Alias behavior for content: emits content_registered - [client.view](https://docs.nibgate.xyz/sdk-reference/pages/api/view.md): Emit resource_view - [client.track](https://docs.nibgate.xyz/sdk-reference/pages/api/track.md): Emit a custom event and payload - [client.unlockStarted](https://docs.nibgate.xyz/sdk-reference/pages/api/unlockstarted.md): Emit unlock_started; this is telemetry and does not initiate payment. - [client.unlockCompleted](https://docs.nibgate.xyz/sdk-reference/pages/api/unlockcompleted.md): Emit unlock_completed after your verified flow - [client.paymentCompleted](https://docs.nibgate.xyz/sdk-reference/pages/api/paymentcompleted.md): Emit payment_completed after verification - [client.rateResource](https://docs.nibgate.xyz/sdk-reference/pages/api/rateresource.md): Normalize a rating and emit content_rating - [client.trackResourcePage](https://docs.nibgate.xyz/sdk-reference/pages/api/trackresourcepage.md): Validate metadata, emit content and view events, and return a gate - [client.checkResourceAccess](https://docs.nibgate.xyz/sdk-reference/pages/api/checkresourceaccess.md): Fetch the access route (default /api/nibgate/access) - [client.payWithPaymentSignature](https://docs.nibgate.xyz/sdk-reference/pages/api/paywithpaymentsignature.md): Submit a supplied payment signature or invoke checkout/createPaymentSignature, then verify through the access route - [client.createWalletCheckout](https://docs.nibgate.xyz/sdk-reference/pages/api/createwalletcheckout.md): Create an unlock controller around a required checkout/createPaymentSignature/pay callback - [client.createCircleGatewayBrowserAdapter](https://docs.nibgate.xyz/sdk-reference/pages/api/createcirclegatewaybrowseradapter.md): Lazily import the Gateway adapter - [client.createTransferCheckout](https://docs.nibgate.xyz/sdk-reference/pages/api/createtransfercheckout.md): Require sendTransfer (or transfer), then return a pay callback that converts its transaction hash into verification metadata - [client.payWithTransfer](https://docs.nibgate.xyz/sdk-reference/pages/api/paywithtransfer.md): Invoke a transfer checkout, obtain its transaction hash, optionally sign ownership, and call the access verifier - [client.createEvmGatewayUnlock](https://docs.nibgate.xyz/sdk-reference/pages/api/createevmgatewayunlock.md): Create the Arc Gateway UI controller - [client.createHostedUnlock](https://docs.nibgate.xyz/sdk-reference/pages/api/createhostedunlock.md): Wrap createEvmGatewayUnlock with hosted: true - [client.rateContentOnchain](https://docs.nibgate.xyz/sdk-reference/pages/api/ratecontentonchain.md): Request an EVM account, prepare the content hash, switch to Arc, and send a rating transaction - [client.createOnchainRating](https://docs.nibgate.xyz/sdk-reference/pages/api/createonchainrating.md): Bind rating controls to the onchain flow - [client.mountRatingUI](https://docs.nibgate.xyz/sdk-reference/pages/api/mountratingui.md): Mount a five-star telemetry UI, or return null without a browser/target - [client.payAndUnlockResource](https://docs.nibgate.xyz/sdk-reference/pages/api/payandunlockresource.md): POST resource and optional payPayload to payPath (default /api/nibgate/pay) - [client.setupResourcePage](https://docs.nibgate.xyz/sdk-reference/pages/api/setupresourcepage.md): Track the page and optionally bind a button to checkResourceAccess - [client.ratingMessage](https://docs.nibgate.xyz/sdk-reference/pages/api/ratingmessage.md): Produce the canonical rating message with normalized resource defaults - [client.normalizeResource](https://docs.nibgate.xyz/sdk-reference/pages/api/normalizeresource.md): Merge client resource defaults and normalize identity, type, price, access, unlock and discovery fields - [validateResourceMetadata](https://docs.nibgate.xyz/sdk-reference/pages/api/validateresourcemetadata.md): Standalone export only at runtime in v0.4.40 - [client.normalizeContentType](https://docs.nibgate.xyz/sdk-reference/pages/api/normalizecontenttype.md): Map aliases such as audio to music and pdf to document - [client.flush](https://docs.nibgate.xyz/sdk-reference/pages/api/flush.md): Drain queued events only when the browser hub track function is available