/payment-source-extended
Creates a payment source.
token<token>
API key authentication via header (token)
In: header
networkstring
The network the payment source will be used on
Value in
"Preprod" | "Mainnet"
paymentTypestring
The type of payment source used
Value in
"Web3CardanoV1"
PaymentSourceConfigobject
feeRatePermillenumber | null
The fee in permille to be used for the payment source. The default contract uses 50 (5%)
Range
0 <= value <= 1000
cooldownTime?number | null
The cooldown time in milliseconds to be used for the payment source. The default contract uses 1000 * 60 * 7 (7 minutes)
Range
0 <= value
AdminWalletsarray<object>
The wallet addresses of the admin wallets (exactly 3)
FeeReceiverNetworkWalletobject
The wallet address of the network fee receiver wallet
PurchasingWalletsarray<object>
The mnemonic of the purchasing wallets to be added. Please backup the mnemonic of the wallets.
SellingWalletsarray<object>
The mnemonic of the selling wallets to be added. Please backup the mnemonic of the wallets.
Response Body
curl -X POST "https://loading/./../api/v1/payment-source-extended/" \
-H "Content-Type: application/json" \
-d '{
"network": "Preprod",
"PaymentSourceConfig": {
"rpcProviderApiKey": "rpc_provider_api_key",
"rpcProvider": "Blockfrost"
},
"paymentType": "Web3CardanoV1",
"AdminWallets": [
{
"walletAddress": "wallet_address_1"
},
{
"walletAddress": "wallet_address_2"
},
{
"walletAddress": "wallet_address_3"
}
],
"FeeReceiverNetworkWallet": {
"walletAddress": "wallet_address"
},
"feeRatePermille": 50,
"PurchasingWallets": [
{
"walletMnemonic": "wallet mnemonic",
"note": "note",
"collectionAddress": null
}
],
"SellingWallets": [
{
"walletMnemonic": "wallet mnemonic",
"note": "note",
"collectionAddress": "collection_address"
}
]
}'
{
"status": "success",
"data": {
"id": "cuid_v2_auto_generated",
"createdAt": "1970-01-20T20:00:36.260Z",
"updatedAt": "1970-01-20T20:00:36.260Z",
"network": "Mainnet",
"paymentType": "Web3CardanoV1",
"syncInProgress": true,
"smartContractAddress": "address_of_the_smart_contract",
"AdminWallets": [
{
"walletAddress": "wallet_address",
"order": 0
},
{
"walletAddress": "wallet_address",
"order": 1
},
{
"walletAddress": "wallet_address",
"order": 2
}
],
"feeRatePermille": 50,
"FeeReceiverNetworkWallet": {
"walletAddress": "wallet_address"
},
"lastCheckedAt": "1970-01-20T20:00:36.260Z",
"lastIdentifierChecked": "identifier",
"PaymentSourceConfig": {
"rpcProviderApiKey": "rpc_provider_api_key_blockfrost",
"rpcProvider": "Blockfrost"
},
"PurchasingWallets": [
{
"collectionAddress": null,
"note": "note",
"walletVkey": "wallet_vkey",
"walletAddress": "wallet_address",
"id": "unique_cuid_v2_auto_generated"
},
{
"collectionAddress": "send_refunds_to_this_address",
"note": "note",
"walletVkey": "wallet_vkey",
"walletAddress": "wallet_address",
"id": "unique_cuid_v2_auto_generated"
}
],
"SellingWallets": [
{
"collectionAddress": "null_will_use_the_selling_wallet_as_revenue_address",
"note": "note",
"walletVkey": "wallet_vkey",
"walletAddress": "wallet_address",
"id": "unique_cuid_v2_auto_generated"
},
{
"collectionAddress": "send_revenue_to_this_address",
"note": "note",
"walletVkey": "wallet_vkey",
"walletAddress": "wallet_address",
"id": "unique_cuid_v2_auto_generated"
}
]
}
}