# [Ride v5] AttachedPayment
⚠️ This is the documentation for the Standard library version 5. We recommend to use version 6. Go to version 6
Structure of a payment attached to the script invocation and available to the callable function. The structure is used in:
- Invocation structure;
- InvokeScriptTransaction structure;
- invoke and reentrantInvoke functions.
# 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 |