Skip to content

Instantly share code, notes, and snippets.

View hankc97's full-sized avatar
🤓

Hank hankc97

🤓
View GitHub Profile
{"info":{"version":"1.0.0","title":"Hello Moon Public API","description":"Data access for Hello Moon"},"servers":[{"url":"https://rest-api.hellomoon.io"}],"openapi":"3.0.0","components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"block_rewards":{"type":"array","items":{"type":"object","properties":{"blockId":{"type":"number","description":"Numeric identifier of a block describing the slot that the block was produced in","example":154105605},"blockTime":{"type":"number","description":"Unix epoch time (in seconds) of a block as calculated from validator votes. \n Due to the voting mechanism, the block time may change for a while after a block is produced, \n and blocks with higher block id's may have lower block time. You can convert blocktime to UTC time \n with the Date library in any language.","example":1622576000},"commission":{"type":"number","description":"commission earned by the validator by providing rewards. Ranges 0-100 so 10 is
{"info":{"version":"1.0.0","title":"Hello Moon Public API","description":"Data access for Hello Moon"},"servers":[{"url":"https://rest-api.hellomoon.io"}],"openapi":"3.0.0","components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"block_rewards":{"type":"array","items":{"type":"object","properties":{"blockId":{"type":"number","description":"Numeric identifier of a block describing the slot that the block was produced in","example":154105605},"blockTime":{"type":"number","description":"Unix epoch time (in seconds) of a block as calculated from validator votes. \n Due to the voting mechanism, the block time may change for a while after a block is produced, \n and blocks with higher block id's may have lower block time. You can convert blocktime to UTC time \n with the Date library in any language.","example":1622576000},"commission":{"type":"number","description":"commission earned by the validator by providing rewards. Ranges 0-100 so 10 is
{"info":{"version":"1.0.0","title":"Hello Moon Public API","description":"Data access for Hello Moon"},"servers":[{"url":"https://rest-api.hellomoon.io"}],"openapi":"3.0.0","components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"block_rewards":{"type":"array","items":{"type":"object","properties":{"blockId":{"type":"number","description":"Numeric identifier of a block describing the slot that the block was produced in","example":154105605},"blockTime":{"type":"number","description":"Unix epoch time (in seconds) of a block as calculated from validator votes. \n Due to the voting mechanism, the block time may change for a while after a block is produced, \n and blocks with higher block id's may have lower block time. You can convert blocktime to UTC time \n with the Date library in any language.","example":1622576000},"commission":{"type":"number","description":"commission earned by the validator by providing rewards. Ranges 0-100 so 10 is
{"info":{"version":"1.0.0","title":"Hello Moon Public API","description":"Data access for Hello Moon"},"servers":[{"url":"https://rest-api.hellomoon.io"}],"openapi":"3.0.0","components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"block_rewards":{"type":"array","items":{"type":"object","properties":{"blockId":{"type":"number","description":"Numeric identifier of a block describing the slot that the block was produced in","example":154105605},"blockTime":{"type":"number","description":"Unix epoch time (in seconds) of a block as calculated from validator votes. \n If you want to look at historical data, let's say 7 days in the past.\n 1. _Change the **operator** to <_\n 2. Get the **current epochtime** i.e, 1673831466 -> Jan 15, 2023\n 3. Subtract the current epochtime from **( 86400 * 7 )**. Place the result of 1673831466 - ( 86400 * 7 ) = **1673226666** in the value input - this returns the epochtime time from 7 days ago","example":1622576000
{"info":{"version":"1.0.0","title":"Hello Moon Public API","description":"Data access for Hello Moon"},"servers":[{"url":"https://rest-api.hellomoon.io"}],"openapi":"3.0.0","components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"defi_lending":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"programName":{"type":"string","description":"The programName references the lending protocol name\n that the user account is borrowing or repaying to.","example":"Solend"},"programId":{"type":"string","description":"The programId references the lending protocol\n that the user account is borrowing or repaying to.","example":"So1endDq2YkqhipRh3WViPa8hdiSpxWy6z3Z6tMCpAo"},"actionType":{"type":"string","enum":["borrow","repay"],"description":"Select the action types: **borrow** or **repay**. \n >If borrow, the endpoint returns the amount of tokens the user account borrowed from the program.\n >If repa
{"info":{"version":"1.0.0","title":"Hello Moon Public API","description":"Data access for Hello Moon"},"servers":[{"url":"https://rest-api.hellomoon.io"}],"openapi":"3.0.0","components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"defi_lending":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"programName":{"type":"string","description":"The programName references the lending protocol name\n that the user account is borrowing or repaying to.","example":"Solend"},"programId":{"type":"string","description":"The programId references the lending protocol\n that the user account is borrowing or repaying to.","example":"So1endDq2YkqhipRh3WViPa8hdiSpxWy6z3Z6tMCpAo"},"actionType":{"type":"string","enum":["borrow","repay"],"description":"Select the action types: **borrow** or **repay**. \n >If borrow, the endpoint returns the amount of tokens the user account borrowed from the program.\n >If repa
{"info":{"version":"1.0.0","title":"Hello Moon Public API","description":"Data access for Hello Moon"},"servers":[{"url":"https://rest-api.hellomoon.io"}],"openapi":"3.0.0","components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"defi_lending":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"programName":{"type":"string","description":"The programName references the lending protocol name\n that the user account is borrowing or repaying to.","example":"Solend"},"programId":{"type":"string","description":"The programId references the lending protocol\n that the user account is borrowing or repaying to.","example":"So1endDq2YkqhipRh3WViPa8hdiSpxWy6z3Z6tMCpAo"},"actionType":{"type":"string","enum":["borrow","repay"],"description":"Select the action types: **borrow** or **repay**.\n >If borrow, the endpoint returns the amount of tokens the user account borrowed from the program.\n >If repay
{"info":{"version":"1.0.0","title":"Hello Moon Public API","description":"Data access for Hello Moon"},"servers":[{"url":"https://rest-api.hellomoon.io"}],"openapi":"3.0.0","components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"defi_lending":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"programName":{"type":"string","description":"The programName references the lending protocol name\n that the user account is borrowing or repaying to.","example":"Solend"},"programId":{"type":"string","description":"The programId references the lending protocol\n that the user account is borrowing or repaying to.","example":"So1endDq2YkqhipRh3WViPa8hdiSpxWy6z3Z6tMCpAo"},"actionType":{"type":"string","enum":["borrow","repay"],"description":"Select the action types: **borrow** or **repay**.\n >If borrow, the endpoint returns the amount of tokens the user account borrowed from the program.\n >If repay
@hankc97
hankc97 / open
Created February 18, 2023 19:20
{"info":{"version":"1.0.0","title":"Hello Moon Public API","description":"Data access for Hello Moon"},"servers":[{"url":"https://rest-api.hellomoon.io"}],"openapi":"3.0.0","components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"defi_lending":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"programName":{"type":"string","description":"The programName references the lending protocol name\n that the user account is borrowing or repaying to.","example":"Solend"},"programId":{"type":"string","description":"The programId references the lending protocol\n that the user account is borrowing or repaying to.","example":"So1endDq2YkqhipRh3WViPa8hdiSpxWy6z3Z6tMCpAo"},"actionType":{"type":"string","enum":["borrow","repay"],"description":"Select the action types: **borrow** or **repay**.\n >If borrow, the endpoint returns the amount of tokens the user account borrowed from the program.\n >If repay
@hankc97
hankc97 / open
Created February 18, 2023 21:47
{"info":{"version":"1.0.0","title":"Hello Moon Public API","description":"Data access for Hello Moon"},"servers":[{"url":"https://rest-api.hellomoon.io"}],"openapi":"3.0.0","components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"defi_lending":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"programName":{"type":"string","description":"The programName references the lending protocol name\n that the user account is borrowing or repaying to.","example":"Solend"},"programId":{"type":"string","description":"The programId references the lending protocol\n that the user account is borrowing or repaying to.","example":"So1endDq2YkqhipRh3WViPa8hdiSpxWy6z3Z6tMCpAo"},"actionType":{"type":"string","enum":["borrow","repay"],"description":"Select the action types: **borrow** or **repay**.\n >If borrow, the endpoint returns the amount of tokens the user account borrowed from the program.\n >If repay