# [Ride v4 and v3] AttachedPayment
⚠️ This is the documentation for the Standard library version 4 and 3. We recommend to use version 6. Go to version 6
Structure of an invoke script transaction payment.
# Constructor
AttachedPayment(assetId: ByteVector|Unit, amount: Int)
# Fields
| # | Name | Data type | Description |
|---|---|---|---|
| 1 | assetId | ByteVector|Unit | ID of a token |
| 2 | amount | Int | Payment amount |