# AttachedPayment
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 |