Maple
Search…
Private
Private GraphQL resolvers for Maple Finance Protocol
The private GraphQL endpoint is https://api.maple.finance/private. The following authentication headers must be passed with each request. Please refer to the Auth section to get your auth challenge and how to create a signature.
1
interface AuthHeaders {
2
"x-auth-message": string;
3
"x-auth-signature": string;
4
}
Copied!

All Loans

Request
Response
Entities
1
query AllLoans {
2
allLoans {
3
limit
4
skip
5
total
6
list {
7
_id
8
owner
9
borrower {
10
_id
11
owner
12
companyName
13
companyEmail
14
primaryAddress
15
aboutCompany
16
contactName
17
telegram
18
discord
19
website
20
twitter
21
createdAt
22
updatedAt
23
}
24
requestAmount
25
loanNumber
26
paymentStructure
27
liquidityAsset {
28
address
29
symbol
30
decimals
31
price
32
}
33
collateralAsset {
34
address
35
symbol
36
decimals
37
price
38
}
39
collateralRatio
40
apr
41
purpose
42
termDays
43
state
44
contractAddress
45
paymentIntervalDays
46
createdAt
47
updatedAt
48
collateralAmount
49
amountFunded
50
drawdownAmount
51
drawdownDate
52
maturityDate
53
treasuryFees
54
claimableAmount
55
principalOwed
56
nextPayment
57
nextPaymentDue
58
paymentsRemaining
59
numLenders
60
transactionHash
61
collateralSwapped
62
liquidityAssetReturned
63
liquidationExcess
64
defaultSuffered
65
pools {
66
poolName
67
name
68
amount
69
companyName
70
}
71
poolDelegateFunding
72
transaction {
73
id
74
timestamp
75
}
76
}
77
}
78
}
Copied!
1
{
2
"data": {
3
"allLoans": {
4
"limit": 10,
5
"skip": 0,
6
"total": 0,
7
"list": [
8
{
9
"_id": "611dea6cd1f92ab1b779ad44",
10
"borrower": {
11
"_id": "611d071d6123e9abb3a79e02",
12
"owner": "0xa0b30De2833294C200a376B0e8205b9517bF021F",
13
"companyName": "Galaxy Trading",
14
"companyEmail": "[email protected]",
15
"primaryAddress": "278 Boehm Hollow",
16
"aboutCompany": "Dicta rerum perferendis expedita libero aspernatur rem quia autem dolores. Eos corrupti eos optio enim. Aut maxime incidunt quia. Voluptatem dolorem assumenda minima consequuntur quis saepe voluptatem excepturi ut.",
17
"contactName": "Deven",
18
"telegram": "http://t.me/maplefinance",
19
"discord": "https://discord.com/invite/maplefinance",
20
"website": "https://genoveva.biz",
21
"twitter": "@maplefinance"
22
},
23
"requestAmount": "1000000000000",
24
"loanNumber": 21628566,
25
"paymentStructure": "INTEREST_ONLY",
26
"liquidityAsset": {
27
"address": "0xa3d55b520f678e7b3c6020439e387b3bcb727198",
28
"symbol": "USDC",
29
"decimals": 6,
30
"price": null
31
},
32
"collateralAsset": {
33
"address": "0x1fea817089ffe74d50815496d6ae15da6bc1ce41",
34
"symbol": "WETH",
35
"decimals": 18,
36
"price": null
37
},
38
"collateralRatio": 1000,
39
"apr": 1000,
40
"purpose": "Demo Loan purpose for infra",
41
"termDays": 60,
42
"state": "Draft",
43
"contractAddress": null,
44
"paymentIntervalDays": 30,
45
"collateralAmount": null,
46
"defaultSuffered": null,
47
"amountFunded": null,
48
"drawdownAmount": null,
49
"claimableAmount": null,
50
"principalOwed": null,
51
"nextPaymentDue": null,
52
"paymentsRemaining": null,
53
"numLenders": null,
54
"transactionHash": null,
55
"collateralSwapped": null,
56
"liquidityAssetReturned": null,
57
"liquidationExcess": null,
58
"poolDelegateFunding": null,
59
"transaction": null,
60
"pools": null
61
}
62
]
63
}
64
}
65
}
Copied!
1
type Company {
2
_id: String
3
owner: String
4
companyName: String
5
companyEmail: String
6
primaryAddress: String
7
aboutCompany: String
8
contactName: String
9
telegram: String
10
discord: String
11
website: String
12
twitter: String
13
createdAt: String
14
updatedAt: String
15
}
16
17
type Transaction {
18
id: String
19
timestamp: String
20
}
21
22
type PoolTransaction {
23
poolName: String
24
name: String
25
amount: String
26
companyName: String
27
}
28
29
type Asset {
30
address: String
31
symbol: String
32
decimals: Int
33
price: Float
34
}
35
36
type Loan {
37
_id: String
38
owner: String
39
borrower: Company
40
requestAmount: String
41
loanNumber: Int
42
paymentStructure: String
43
liquidityAsset: Asset
44
collateralAsset: Asset
45
collateralRatio: Int
46
apr: Int
47
purpose: String
48
termDays: Int
49
state: String
50
contractAddress: String
51
paymentIntervalDays: Int
52
createdAt: String
53
updatedAt: String
54
collateralAmount: String
55
amountFunded: String
56
drawdownAmount: String
57
drawdownDate: String
58
maturityDate: String
59
treasuryFees: String
60
claimableAmount: String
61
principalOwed: String
62
nextPayment: String
63
nextPaymentDue: String
64
paymentsRemaining: String
65
numLenders: String
66
transactionHash: String
67
collateralSwapped: String
68
liquidityAssetReturned: String
69
liquidationExcess: String
70
defaultSuffered: String
71
pools: [PoolTransaction]
72
poolDelegateFunding: String
73
transaction: Transaction
74
}
Copied!

My Loans

Request
Response
Entities
1
query MyLoans {
2
myLoans {
3
_id
4
owner
5
borrower {
6
_id
7
owner
8
companyName
9
companyEmail
10
primaryAddress
11
aboutCompany
12
contactName
13
telegram
14
discord
15
website
16
twitter
17
createdAt
18
updatedAt
19
}
20
requestAmount
21
loanNumber
22
paymentStructure
23
liquidityAsset {
24
address
25
symbol
26
decimals
27
price
28
}
29
collateralAsset {
30
address
31
symbol
32
decimals
33
price
34
}
35
collateralRatio
36
apr
37
purpose
38
termDays
39
state
40
contractAddress
41
paymentIntervalDays
42
createdAt
43
updatedAt
44
collateralAmount
45
amountFunded
46
drawdownAmount
47
drawdownDate
48
maturityDate
49
treasuryFees
50
claimableAmount
51
principalOwed
52
nextPayment
53
nextPaymentDue
54
paymentsRemaining
55
numLenders
56
transactionHash
57
collateralSwapped
58
liquidityAssetReturned
59
liquidationExcess
60
defaultSuffered
61
pools {
62
poolName
63
name
64
amount
65
companyName
66
}
67
poolDelegateFunding
68
transaction {
69
id
70
timestamp
71
}
72
}
73
}
Copied!
1
{
2
"data": {
3
"myLoans": [
4
{
5
"_id": "611dea6cd1f92ab1b779ad44",
6
"borrower": {
7
"_id": "611d071d6123e9abb3a79e02",
8
"owner": "0xa0b30De2833294C200a376B0e8205b9517bF021F",
9
"companyName": "Galaxy Trading",
10
"companyEmail": "[email protected]",
11
"primaryAddress": "278 Boehm Hollow",
12
"aboutCompany": "Dicta rerum perferendis expedita libero aspernatur rem quia autem dolores. Eos corrupti eos optio enim. Aut maxime incidunt quia. Voluptatem dolorem assumenda minima consequuntur quis saepe voluptatem excepturi ut.",
13
"contactName": "Deven",
14
"telegram": "http://t.me/maplefinance",
15
"discord": "https://discord.com/invite/maplefinance",
16
"website": "https://genoveva.biz",
17
"twitter": "@maplefinance"
18
},
19
"requestAmount": "1000000000000",
20
"loanNumber": 21628566,
21
"paymentStructure": "INTEREST_ONLY",
22
"liquidityAsset": {
23
"address": "0xa3d55b520f678e7b3c6020439e387b3bcb727198",
24
"symbol": "USDC",
25
"decimals": 6,
26
"price": null
27
},
28
"collateralAsset": {
29
"address": "0x1fea817089ffe74d50815496d6ae15da6bc1ce41",
30
"symbol": "WETH",
31
"decimals": 18,
32
"price": null
33
},
34
"collateralRatio": 1000,
35
"apr": 1000,
36
"purpose": "Demo Loan purpose for infra",
37
"termDays": 60,
38
"state": "Draft",
39
"contractAddress": null,
40
"paymentIntervalDays": 30,
41
"collateralAmount": null,
42
"defaultSuffered": null,
43
"amountFunded": null,
44
"drawdownAmount": null,
45
"claimableAmount": null,
46
"principalOwed": null,
47
"nextPaymentDue": null,
48
"paymentsRemaining": null,
49
"numLenders": null,
50
"transactionHash": null,
51
"collateralSwapped": null,
52
"liquidityAssetReturned": null,
53
"liquidationExcess": null,
54
"poolDelegateFunding": null,
55
"transaction": null,
56
"pools": null
57
}
58
]
59
}
60
}
61
Copied!
1
type Company {
2
_id: String
3
owner: String
4
companyName: String
5
companyEmail: String
6
primaryAddress: String
7
aboutCompany: String
8
contactName: String
9
telegram: String
10
discord: String
11
website: String
12
twitter: String
13
createdAt: String
14
updatedAt: String
15
}
16
17
type Transaction {
18
id: String
19
timestamp: String
20
}
21
22
type PoolTransaction {
23
poolName: String
24
name: String
25
amount: String
26
companyName: String
27
}
28
29
type Asset {
30
address: String
31
symbol: String
32
decimals: Int
33
price: Float
34
}
35
36
type Loan {
37
_id: String
38
owner: String
39
borrower: Company
40
requestAmount: String
41
loanNumber: Int
42
paymentStructure: String
43
liquidityAsset: Asset
44
collateralAsset: Asset
45
collateralRatio: Int
46
apr: Int
47
purpose: String
48
termDays: Int
49
state: String
50
contractAddress: String
51
paymentIntervalDays: Int
52
createdAt: String
53
updatedAt: String
54
collateralAmount: String
55
amountFunded: String
56
drawdownAmount: String
57
drawdownDate: String
58
maturityDate: String
59
treasuryFees: String
60
claimableAmount: String
61
principalOwed: String
62
nextPayment: String
63
nextPaymentDue: String
64
paymentsRemaining: String
65
numLenders: String
66
transactionHash: String
67
collateralSwapped: String
68
liquidityAssetReturned: String
69
liquidationExcess: String
70
defaultSuffered: String
71
pools: [PoolTransaction]
72
poolDelegateFunding: String
73
transaction: Transaction
74
}
Copied!

Create Loan

Request
Response
Entities
1
mutation {
2
createLoan(
3
loan: {
4
requestAmount: "1000000000000"
5
paymentStructure: "INTEREST_ONLY"
6
liquidityAsset: {
7
address: "0xa3d55b520f678e7b3c6020439e387b3bcb727198"
8
symbol: "USDC"
9
decimals: 6
10
}
11
collateralAsset: {
12
address: "0x1fea817089ffe74d50815496d6ae15da6bc1ce41"
13
symbol: "WETH"
14
decimals: 18
15
}
16
paymentIntervalDays: 30
17
collateralRatio: 1000
18
apr: 1000
19
purpose: "Base loan to build second structure"
20
termDays: 60
21
}
22
) {
23
_id
24
borrower {
25
_id
26
owner
27
companyName
28
companyEmail
29
primaryAddress
30
aboutCompany
31
contactName
32
telegram
33
discord
34
website
35
twitter
36
}
37
requestAmount
38
loanNumber
39
paymentStructure
40
liquidityAsset {
41
address
42
symbol
43
decimals
44
price
45
}
46
collateralAsset {
47
address
48
symbol
49
decimals
50
price
51
}
52
collateralRatio
53
apr
54
purpose
55
termDays
56
state
57
contractAddress
58
paymentIntervalDays
59
collateralAmount
60
defaultSuffered
61
amountFunded
62
drawdownAmount
63
claimableAmount
64
principalOwed
65
nextPaymentDue
66
paymentsRemaining
67
numLenders
68
transactionHash
69
collateralSwapped
70
liquidityAssetReturned
71
liquidationExcess
72
poolDelegateFunding
73
transaction {
74
id
75
timestamp
76
}
77
pools {
78
poolName
79
name
80
amount
81
companyName
82
}
83
}
84
}
85
Copied!
1
{
2
"data": {
3
"createLoan": {
4
"_id": "611e1e6eaae9f8001210575e",
5
"borrower": {
6
"_id": "611e1b0daae9f80012105232",
7
"owner": "0xa0b30De2833294C200a376B0e8205b9517bF021F",
8
"companyName": "Borrower Company 1",
9
"companyEmail": "[email protected]",
10
"primaryAddress": "Basic Address 1",
11
"aboutCompany": "Borrower Company is a crypto trading firm",
12
"contactName": "Borrower Smith",
13
"telegram": null,
14
"discord": null,
15
"website": "https://borrower.company",
16
"twitter": null
17
},
18
"requestAmount": "1000000000000",
19
"loanNumber": 21798117,
20
"paymentStructure": "INTEREST_ONLY",
21
"liquidityAsset": {
22
"address": "0xa3d55b520f678e7b3c6020439e387b3bcb727198",
23
"symbol": "USDC",
24
"decimals": 6,
25
"price": null
26
},
27
"collateralAsset": {
28
"address": "0x1fea817089ffe74d50815496d6ae15da6bc1ce41",
29
"symbol": "WETH",
30
"decimals": 18,
31
"price": null
32
},
33
"collateralRatio": 1000,
34
"apr": 1000,
35
"purpose": "Base loan to build second structure",
36
"termDays": 60,
37
"state": "Draft",
38
"contractAddress": null,
39
"paymentIntervalDays": 30,
40
"collateralAmount": null,
41
"defaultSuffered": null,
42
"amountFunded": null,
43
"drawdownAmount": null,
44
"claimableAmount": null,
45
"principalOwed": null,
46
"nextPaymentDue": null,
47
"paymentsRemaining": null,
48
"numLenders": null,
49
"transactionHash": null,
50
"collateralSwapped": null,
51
"liquidityAssetReturned": null,
52
"liquidationExcess": null,
53
"poolDelegateFunding": null,
54
"transaction": null,
55
"pools": null
56
}
57
}
58
}
Copied!
1
type Company {
2
_id: String
3
owner: String
4
companyName: String
5
companyEmail: String
6
primaryAddress: String
7
aboutCompany: String
8
contactName: String
9
telegram: String
10
discord: String
11
website: String
12
twitter: String
13
createdAt: String
14
updatedAt: String
15
}
16
17
type Transaction {
18
id: String
19
timestamp: String
20
}
21
22
type PoolTransaction {
23
poolName: String
24
name: String
25
amount: String
26
companyName: String
27
}
28
29
type Asset {
30
address: String
31
symbol: String
32
decimals: Int
33
price: Float
34
}
35
36
type Loan {
37
_id: String
38
owner: String
39
borrower: Company
40
requestAmount: String
41
loanNumber: Int
42
paymentStructure: String
43
liquidityAsset: Asset
44
collateralAsset: Asset
45
collateralRatio: Int
46
apr: Int
47
purpose: String
48
termDays: Int
49
state: String
50
contractAddress: String
51
paymentIntervalDays: Int
52
createdAt: String
53
updatedAt: String
54
collateralAmount: String
55
amountFunded: String
56
drawdownAmount: String
57
drawdownDate: String
58
maturityDate: String
59
treasuryFees: String
60
claimableAmount: String
61
principalOwed: String
62
nextPayment: String
63
nextPaymentDue: String
64
paymentsRemaining: String
65
numLenders: String
66
transactionHash: String
67
collateralSwapped: String
68
liquidityAssetReturned: String
69
liquidationExcess: String
70
defaultSuffered: String
71
pools: [PoolTransaction]
72
poolDelegateFunding: String
73
transaction: Transaction
74
}
Copied!

Update Loan

Request
Response
Entities
1
mutation {
2
updateLoan(
3
_id: "611e1e6eaae9f8001210575e",
4
loan: {
5
requestAmount: "1000000000000"
6
paymentStructure: "INTEREST_ONLY"
7
liquidityAsset: {
8
address: "0xa3d55b520f678e7b3c6020439e387b3bcb727198"
9
symbol: "USDC"
10
decimals: 6
11
}
12
collateralAsset: {
13
address: "0x1fea817089ffe74d50815496d6ae15da6bc1ce41"
14
symbol: "WETH"
15
decimals: 18
16
}
17
paymentIntervalDays: 30
18
collateralRatio: 1000
19
apr: 1000
20
purpose: "(UPDATED) Base loan to build second structure"
21
termDays: 60
22
}
23
) {
24
_id
25
borrower {
26
_id
27
owner
28
companyName
29
companyEmail
30
primaryAddress
31
aboutCompany
32
contactName
33
telegram
34
discord
35
website
36
twitter
37
}
38
requestAmount
39
loanNumber
40
paymentStructure
41
liquidityAsset {
42
address
43
symbol
44
decimals
45
price
46
}
47
collateralAsset {
48
address
49
symbol
50
decimals
51
price
52
}
53
collateralRatio
54
apr
55
purpose
56
termDays
57
state
58
contractAddress
59
paymentIntervalDays
60
collateralAmount
61
defaultSuffered
62
amountFunded
63
drawdownAmount
64
claimableAmount
65
principalOwed
66
nextPaymentDue
67
paymentsRemaining
68
numLenders
69
transactionHash
70
collateralSwapped
71
liquidityAssetReturned
72
liquidationExcess
73
poolDelegateFunding
74
transaction {
75
id
76
timestamp
77
}
78
pools {
79
poolName
80
name
81
amount
82
companyName
83
}
84
}
85
}
86
Copied!
1
{
2
"data": {
3
"updateLoan": {
4
"_id": "611e1e6eaae9f8001210575e",
5
"borrower": {
6
"_id": "611e1b0daae9f80012105232",
7
"owner": "0xa0b30De2833294C200a376B0e8205b9517bF021F",
8
"companyName": "Borrower Company 1",
9
"companyEmail": "[email protected]",
10
"primaryAddress": "Basic Address 1",
11
"aboutCompany": "Borrower Company is a crypto trading firm",
12
"contactName": "Borrower Smith",
13
"telegram": null,
14
"discord": null,
15
"website": "https://borrower.company",
16
"twitter": null
17
},
18
"requestAmount": "1000000000000",
19
"loanNumber": 21798117,
20
"paymentStructure": "INTEREST_ONLY",
21
"liquidityAsset": {
22
"address": "0xa3d55b520f678e7b3c6020439e387b3bcb727198",
23
"symbol": "USDC",
24
"decimals": 6,
25
"price": null
26
},
27
"collateralAsset": {
28
"address": "0x1fea817089ffe74d50815496d6ae15da6bc1ce41",
29
"symbol": "WETH",
30
"decimals": 18,
31
"price": null
32
},
33
"collateralRatio": 1000,
34
"apr": 1000,
35
"purpose": "(UPDATED) Base loan to build second structure",
36
"termDays": 60,
37
"state": "Draft",
38
"contractAddress": null,
39
"paymentIntervalDays": 30,
40
"collateralAmount": null,
41
"defaultSuffered": null,
42
"amountFunded": null,
43
"drawdownAmount": null,
44
"claimableAmount": null,
45
"principalOwed": null,
46
"nextPaymentDue": null,
47
"paymentsRemaining": null,
48
"numLenders": null,
49
"transactionHash": null,
50
"collateralSwapped": null,
51
"liquidityAssetReturned": null,
52
"liquidationExcess": null,
53
"poolDelegateFunding": null,
54
"transaction": null,
55
"pools": null
56
}
57
}
58
}
Copied!
1
type Company {
2
_id: String
3
owner: String
4
companyName: String
5
companyEmail: String
6
primaryAddress: String
7
aboutCompany: String
8
contactName: String
9
telegram: String
10
discord: String
11
website: String
12
twitter: String
13
createdAt: String
14
updatedAt: String
15
}
16
17
type Transaction {
18
id: String
19
timestamp: String
20
}
21
22
type PoolTransaction {
23
poolName: String
24
name: String
25
amount: String
26
companyName: String
27
}
28
29
type Asset {
30
address: String
31
symbol: String
32
decimals: Int
33
price: Float
34
}
35
36
type Loan {
37
_id: String
38
owner: String
39
borrower: Company
40
requestAmount: String
41
loanNumber: Int
42
paymentStructure: String
43
liquidityAsset: Asset
44
collateralAsset: Asset
45
collateralRatio: Int
46
apr: Int
47
purpose: String
48
termDays: Int
49
state: String
50
contractAddress: String
51
paymentIntervalDays: Int
52
createdAt: String
53
updatedAt: String
54
collateralAmount: String
55
amountFunded: String
56
drawdownAmount: String
57
drawdownDate: String
58
maturityDate: String
59
treasuryFees: String
60
claimableAmount: String
61
principalOwed: String
62
nextPayment: String
63
nextPaymentDue: String
64
paymentsRemaining: String
65
numLenders: String
66
transactionHash: String
67
collateralSwapped: String
68
liquidityAssetReturned: String
69
liquidationExcess: String
70
defaultSuffered: String
71
pools: [PoolTransaction]
72
poolDelegateFunding: String
73
transaction: Transaction
74
}
Copied!

My Pool Delegate

Request
Response
Entities
1
query MyPoolDelegate {
2
myPoolDelegate {
3
_id
4
owner
5
name
6
website
7
twitter
8
linkedIn
9
telegram
10
aboutBusiness
11
allowList
12
companyName
13
}
14
}
Copied!
1
{
2
"data": {
3
"myPoolDelegate": {
4
"_id": "611d06e56123e9abb3a79ded",
5
"owner": "0xa0b30De2833294C200a376B0e8205b9517bF431F",
6
"name": "Jake Smith",
7
"website": "http://jakesmith.org",
8
"twitter": "@JakeSmithVentures",
9
"linkedIn": "https://linkedin.com/in/JakeSmithVentures",
10
"telegram": "https://t.me/jake_ventures",
11
"aboutBusiness": "We are a stock brokerage firm.",
12
"allowList": false,
13
"companyName": "Jake Smith Ventures Inc"
14
}
15
}
16
}
Copied!
1
type PoolDelegate {
2
_id: String
3
owner: String
4
name: String
5
website: String
6
telegram: String
7
twitter: String
8
linkedIn: String
9
companyName: String
10
aboutBusiness: String
11
allowList: Boolean
12
createdAt: String
13
updatedAt: String
14
}
Copied!

Create Pool Delegate

Request
Response
Entities
1
mutation {
2
createPoolDelegate(
3
poolDelegate: {
4
name: "Pool Delegate demo"
5
website: "https://pooldelegate.company"
6
twitter: "@pdcompany"
7
aboutBusiness: "Basic Pool Delegate doing awesome stuff (UPDATED)"
8
companyName: "Pool Delegate Company"
9
linkedIn: "https://linkedin.com/in/PoolDelegateCompany"
10
telegram: "https://t.me/PoolDelegate"
11
}
12
) {
13
_id
14
owner
15
name
16
website
17
twitter
18
linkedIn
19
telegram
20
aboutBusiness
21
allowList
22
companyName
23
}
24
}
Copied!
1
{
2
"data": {
3
"createPoolDelegate": {
4
"_id": "611e1a3faae9f800121050cf",
5
"owner": "0xa0b30De2833294C200a376B0e8205b9517bF021F",
6
"name": "Pool Delegate demo",
7
"website": "https://pooldelegate.company",
8
"twitter": "@pdcompany",
9
"linkedIn": "https://linkedin.com/in/PoolDelegateCompany",
10
"telegram": "https://t.me/PoolDelegate",
11
"aboutBusiness": "Basic Pool Delegate doing awesome stuff (UPDATED)",
12
"allowList": false,
13
"companyName": "Pool Delegate Company"
14
}
15
}
16
}
Copied!
1
type PoolDelegate {
2
_id: String
3
owner: String
4
name: String
5
website: