Skip to Content
Solana PayTypesTransfer Request URL Params

Transfer Request URL Params

The TransferRequestURLParams input dictionary accepted by encode_url contains:

FieldTypeRequired
recipientPublicKey | strYes
amountDecimal | int | float | strNo
spl_tokenPublicKey | strNo
referenceSequence[PublicKey | str] | PublicKey | strNo
labelstrNo
messagestrNo
memostrNo

For native SOL, amount is denominated in SOL and may contain at most nine decimal places. With spl_token, it is denominated in that mint’s user unit.

parse_url returns an immutable TransferRequestURL dataclass. Its amount is Decimal | None, key fields are PublicKey, and reference is always a list.