Skip to main content
Defined in the Base Account SDK
This utility creates a link with a prolink query parameter. Supports standard, deeplink, and universal link formats.

Import

Parameters

The base64url-encoded prolink payload to create a link for.
url
string
required
The URL to which the prolink will be appended as a query parameter. Defaults to https://base.app/base-pay.
additionalQueryParams
Record<string, string>
Optional additional query parameters to append to the URL.

Returns

url
string
The complete URL with the prolink and any additional query parameters appended.

Examples

Encode wallet_sendCalls (ERC20 Transfer)

encodeProlink

Create prolink payloads from JSON-RPC requests

decodeProlink

Decode a prolink payload back to a JSON-RPC request