curl --location --request POST 'https://vf-solana-api.dev.alphaledger.com/api/v1/loans?solanaClusterId=SOLANA_DEVNET' \
--header 'x-request-id: f9860f73-a466-41f2-a083-34eeb1cc3a3c' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"itemData": {
"defiProtocol": "LOOPSCALE",
"loopscaleDetails": {
"loanStrategyAddress": "6tv6XYnXUFjLSaAeap4T1GQusYeEw3nK6KTcVyyHf3ns",
"expectedLoanValues": {
"expectedApy": 80000,
"expectedLqt": [
800000,
800000,
800000,
800000,
800000
]
}
},
"itemsToBorrow": [
{
"positionLookup": {
"position": {
"onchainId": "GPjDgRPhSuJSya5GbaCWkYCDqcyL6N3ZBge9XMJsDton",
"offchainId": "1b03ae9a-348c-4c18-8727-20c7c4ae7a0a",
"offchainReferences": {
"alId": "ALFNDPF000153778",
"organizationExternalId": "ALT",
"accountNumber": "ALT10000233",
"code": "some-authority",
"type": "WALLET"
},
"isOtherTenantSigner": false,
"otherTenantOrganizationExternalId": "ALIM",
"offPlatform": false
},
"owner": {
"onchainId": "GPjDgRPhSuJSya5GbaCWkYCDqcyL6N3ZBge9XMJsDton",
"offchainId": "1b03ae9a-348c-4c18-8727-20c7c4ae7a0a",
"offchainReferences": {
"alId": "ALFNDPF000153778",
"organizationExternalId": "ALT",
"accountNumber": "ALT10000233",
"code": "some-authority",
"type": "WALLET"
},
"isOtherTenantSigner": false,
"otherTenantOrganizationExternalId": "ALIM",
"offPlatform": false
},
"financialInstrument": {
"onchainId": "GPjDgRPhSuJSya5GbaCWkYCDqcyL6N3ZBge9XMJsDton",
"offchainId": "1b03ae9a-348c-4c18-8727-20c7c4ae7a0a",
"offchainReferences": {
"alId": "ALFNDPF000153778",
"organizationExternalId": "ALT",
"accountNumber": "ALT10000233",
"code": "some-authority",
"type": "WALLET"
},
"isOtherTenantSigner": false,
"otherTenantOrganizationExternalId": "ALIM",
"offPlatform": false
},
"mintAuthority": {
"onchainId": "GPjDgRPhSuJSya5GbaCWkYCDqcyL6N3ZBge9XMJsDton",
"offchainId": "1b03ae9a-348c-4c18-8727-20c7c4ae7a0a",
"offchainReferences": {
"alId": "ALFNDPF000153778",
"organizationExternalId": "ALT",
"accountNumber": "ALT10000233",
"code": "some-authority",
"type": "WALLET"
},
"isOtherTenantSigner": false,
"otherTenantOrganizationExternalId": "ALIM",
"offPlatform": false
},
"freezeAuthority": {
"onchainId": "GPjDgRPhSuJSya5GbaCWkYCDqcyL6N3ZBge9XMJsDton",
"offchainId": "1b03ae9a-348c-4c18-8727-20c7c4ae7a0a",
"offchainReferences": {
"alId": "ALFNDPF000153778",
"organizationExternalId": "ALT",
"accountNumber": "ALT10000233",
"code": "some-authority",
"type": "WALLET"
},
"isOtherTenantSigner": false,
"otherTenantOrganizationExternalId": "ALIM",
"offPlatform": false
}
},
"amount": 100.5,
"transferTo": {
"position": {
"onchainId": "GPjDgRPhSuJSya5GbaCWkYCDqcyL6N3ZBge9XMJsDton",
"offchainId": "1b03ae9a-348c-4c18-8727-20c7c4ae7a0a",
"offchainReferences": {
"alId": "ALFNDPF000153778",
"organizationExternalId": "ALT",
"accountNumber": "ALT10000233",
"code": "some-authority",
"type": "WALLET"
},
"isOtherTenantSigner": false,
"otherTenantOrganizationExternalId": "ALIM",
"offPlatform": false
},
"owner": {
"onchainId": "GPjDgRPhSuJSya5GbaCWkYCDqcyL6N3ZBge9XMJsDton",
"offchainId": "1b03ae9a-348c-4c18-8727-20c7c4ae7a0a",
"offchainReferences": {
"alId": "ALFNDPF000153778",
"organizationExternalId": "ALT",
"accountNumber": "ALT10000233",
"code": "some-authority",
"type": "WALLET"
},
"isOtherTenantSigner": false,
"otherTenantOrganizationExternalId": "ALIM",
"offPlatform": false
},
"financialInstrument": {
"onchainId": "GPjDgRPhSuJSya5GbaCWkYCDqcyL6N3ZBge9XMJsDton",
"offchainId": "1b03ae9a-348c-4c18-8727-20c7c4ae7a0a",
"offchainReferences": {
"alId": "ALFNDPF000153778",
"organizationExternalId": "ALT",
"accountNumber": "ALT10000233",
"code": "some-authority",
"type": "WALLET"
},
"isOtherTenantSigner": false,
"otherTenantOrganizationExternalId": "ALIM",
"offPlatform": false
},
"mintAuthority": {
"onchainId": "GPjDgRPhSuJSya5GbaCWkYCDqcyL6N3ZBge9XMJsDton",
"offchainId": "1b03ae9a-348c-4c18-8727-20c7c4ae7a0a",
"offchainReferences": {
"alId": "ALFNDPF000153778",
"organizationExternalId": "ALT",
"accountNumber": "ALT10000233",
"code": "some-authority",
"type": "WALLET"
},
"isOtherTenantSigner": false,
"otherTenantOrganizationExternalId": "ALIM",
"offPlatform": false
},
"freezeAuthority": {
"onchainId": "GPjDgRPhSuJSya5GbaCWkYCDqcyL6N3ZBge9XMJsDton",
"offchainId": "1b03ae9a-348c-4c18-8727-20c7c4ae7a0a",
"offchainReferences": {
"alId": "ALFNDPF000153778",
"organizationExternalId": "ALT",
"accountNumber": "ALT10000233",
"code": "some-authority",
"type": "WALLET"
},
"isOtherTenantSigner": false,
"otherTenantOrganizationExternalId": "ALIM",
"offPlatform": false
}
}
}
],
"itemsToPledge": [
{
"positionLookup": {
"position": {
"onchainId": "GPjDgRPhSuJSya5GbaCWkYCDqcyL6N3ZBge9XMJsDton",
"offchainId": "1b03ae9a-348c-4c18-8727-20c7c4ae7a0a",
"offchainReferences": {
"alId": "ALFNDPF000153778",
"organizationExternalId": "ALT",
"accountNumber": "ALT10000233",
"code": "some-authority",
"type": "WALLET"
},
"isOtherTenantSigner": false,
"otherTenantOrganizationExternalId": "ALIM",
"offPlatform": false
},
"owner": {
"onchainId": "GPjDgRPhSuJSya5GbaCWkYCDqcyL6N3ZBge9XMJsDton",
"offchainId": "1b03ae9a-348c-4c18-8727-20c7c4ae7a0a",
"offchainReferences": {
"alId": "ALFNDPF000153778",
"organizationExternalId": "ALT",
"accountNumber": "ALT10000233",
"code": "some-authority",
"type": "WALLET"
},
"isOtherTenantSigner": false,
"otherTenantOrganizationExternalId": "ALIM",
"offPlatform": false
},
"financialInstrument": {
"onchainId": "GPjDgRPhSuJSya5GbaCWkYCDqcyL6N3ZBge9XMJsDton",
"offchainId": "1b03ae9a-348c-4c18-8727-20c7c4ae7a0a",
"offchainReferences": {
"alId": "ALFNDPF000153778",
"organizationExternalId": "ALT",
"accountNumber": "ALT10000233",
"code": "some-authority",
"type": "WALLET"
},
"isOtherTenantSigner": false,
"otherTenantOrganizationExternalId": "ALIM",
"offPlatform": false
},
"mintAuthority": {
"onchainId": "GPjDgRPhSuJSya5GbaCWkYCDqcyL6N3ZBge9XMJsDton",
"offchainId": "1b03ae9a-348c-4c18-8727-20c7c4ae7a0a",
"offchainReferences": {
"alId": "ALFNDPF000153778",
"organizationExternalId": "ALT",
"accountNumber": "ALT10000233",
"code": "some-authority",
"type": "WALLET"
},
"isOtherTenantSigner": false,
"otherTenantOrganizationExternalId": "ALIM",
"offPlatform": false
},
"freezeAuthority": {
"onchainId": "GPjDgRPhSuJSya5GbaCWkYCDqcyL6N3ZBge9XMJsDton",
"offchainId": "1b03ae9a-348c-4c18-8727-20c7c4ae7a0a",
"offchainReferences": {
"alId": "ALFNDPF000153778",
"organizationExternalId": "ALT",
"accountNumber": "ALT10000233",
"code": "some-authority",
"type": "WALLET"
},
"isOtherTenantSigner": false,
"otherTenantOrganizationExternalId": "ALIM",
"offPlatform": false
}
},
"amount": 100.5,
"transferFrom": {
"position": {
"onchainId": "GPjDgRPhSuJSya5GbaCWkYCDqcyL6N3ZBge9XMJsDton",
"offchainId": "1b03ae9a-348c-4c18-8727-20c7c4ae7a0a",
"offchainReferences": {
"alId": "ALFNDPF000153778",
"organizationExternalId": "ALT",
"accountNumber": "ALT10000233",
"code": "some-authority",
"type": "WALLET"
},
"isOtherTenantSigner": false,
"otherTenantOrganizationExternalId": "ALIM",
"offPlatform": false
},
"owner": {
"onchainId": "GPjDgRPhSuJSya5GbaCWkYCDqcyL6N3ZBge9XMJsDton",
"offchainId": "1b03ae9a-348c-4c18-8727-20c7c4ae7a0a",
"offchainReferences": {
"alId": "ALFNDPF000153778",
"organizationExternalId": "ALT",
"accountNumber": "ALT10000233",
"code": "some-authority",
"type": "WALLET"
},
"isOtherTenantSigner": false,
"otherTenantOrganizationExternalId": "ALIM",
"offPlatform": false
},
"financialInstrument": {
"onchainId": "GPjDgRPhSuJSya5GbaCWkYCDqcyL6N3ZBge9XMJsDton",
"offchainId": "1b03ae9a-348c-4c18-8727-20c7c4ae7a0a",
"offchainReferences": {
"alId": "ALFNDPF000153778",
"organizationExternalId": "ALT",
"accountNumber": "ALT10000233",
"code": "some-authority",
"type": "WALLET"
},
"isOtherTenantSigner": false,
"otherTenantOrganizationExternalId": "ALIM",
"offPlatform": false
},
"mintAuthority": {
"onchainId": "GPjDgRPhSuJSya5GbaCWkYCDqcyL6N3ZBge9XMJsDton",
"offchainId": "1b03ae9a-348c-4c18-8727-20c7c4ae7a0a",
"offchainReferences": {
"alId": "ALFNDPF000153778",
"organizationExternalId": "ALT",
"accountNumber": "ALT10000233",
"code": "some-authority",
"type": "WALLET"
},
"isOtherTenantSigner": false,
"otherTenantOrganizationExternalId": "ALIM",
"offPlatform": false
},
"freezeAuthority": {
"onchainId": "GPjDgRPhSuJSya5GbaCWkYCDqcyL6N3ZBge9XMJsDton",
"offchainId": "1b03ae9a-348c-4c18-8727-20c7c4ae7a0a",
"offchainReferences": {
"alId": "ALFNDPF000153778",
"organizationExternalId": "ALT",
"accountNumber": "ALT10000233",
"code": "some-authority",
"type": "WALLET"
},
"isOtherTenantSigner": false,
"otherTenantOrganizationExternalId": "ALIM",
"offPlatform": false
}
},
"mintAsset": false
}
],
"duration": {
"code": "DAYS",
"unit": 1
},
"submitTransaction": true
},
"solanaTransactionConfig": {
"feePayer": {
"onchainId": "GPjDgRPhSuJSya5GbaCWkYCDqcyL6N3ZBge9XMJsDton",
"offchainId": "1b03ae9a-348c-4c18-8727-20c7c4ae7a0a",
"offchainReferences": {
"alId": "ALFNDPF000153778",
"organizationExternalId": "ALT",
"accountNumber": "ALT10000233",
"code": "some-authority",
"type": "WALLET"
},
"isOtherTenantSigner": false,
"otherTenantOrganizationExternalId": "ALIM",
"offPlatform": false
},
"computeUnitConfig": {
"enable": true,
"limit": 1400000,
"price": 35000,
"priceEstimate": {
"provider": "HELIUS",
"calculationStrategy": "DEFAULT"
}
},
"commitmentConfig": {
"commitmentLevel": "processed"
},
"messageLifetimeStrategy": "RECENT_BLOCKHASH",
"transactionVersion": "V0"
},
"tenancyConfig": {
"overrideOrganizationExternalId": "ALIM"
}
}'