Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!



 2851

[ Revolut API Wrapper ] Create, View, Delete, Manage your personal Revolut account.

by DarknessTom - 18 July, 2023 - 01:19 AM
This post is by a banned member (404Monkey) - Unhide
404Monkey  
Registered
51
Posts
0
Threads
1 Year of service
#9
nice bro [Image: hype.png] [Image: hype.png]
This post is by a banned member (Matteor29) - Unhide
Matteor29  
Registered
208
Posts
1
Threads
3 Years of service
#10
(18 July, 2023 - 01:19 AM)DarknessTom Wrote: Show More
I originally had the source code private. This project was actually really fun yet tedious to do, Revolut has some good obfuscation in play and finding then reversing their decrypt function was pretty painful.

Don't get confused, this isn't some 3rd party API. This is a NodeJS library that uses Revolut's internal API. 

This was made to be used by personal Revolut accounts, no business or some API key bullshit needed!

Example how the library is used:


 
Code:
 
require("dotenv").config()
import Revolut from '../../lib/index'

let sleep = (ms: number) => new Promise(resolve => setTimeout(resolve, ms));

(async () => {
    //Make sure we have the environment variables
    if(!process.env.NUMBER || !process.env.PASSCODE) {
        throw new Error('Missing environment variables')
    }

    //Create a new instance of a revolut account
    let revolut = new Revolut(process.env.NUMBER, process.env.PASSCODE)

    //Signin with the credentials given in the constructor
    await revolut.signin()

    //Get all cards on the account
    console.log(await revolut.getCards())
    
    //Create a new virtual card with the label "hello!"
    let card = await revolut.newVirtualCard("hello!")

    //Get the expiry date, cvv and pan of the credit card
    let details = await revolut.getCardSecrets(card.id)
    console.log(details)

    //Revolut takes ~500ms to process the new card into their system
    await sleep(1000);
    
    //Delete the newly created card
    //await revolut.deleteCard(card.id)
})()



See Github below:

thankssss
This post is by a banned member (DarknessTom) - Unhide
This post is by a banned member (Matroda) - Unhide
Matroda  
Registered
13
Posts
0
Threads
1 Year of service
#12
(18 July, 2023 - 01:19 AM)DarknessTom Wrote: Show More
I originally had the source code private. This project was actually really fun yet tedious to do, Revolut has some good obfuscation in play and finding then reversing their decrypt function was pretty painful.

Don't get confused, this isn't some 3rd party API. This is a NodeJS library that uses Revolut's internal API. 

This was made to be used by personal Revolut accounts, no business or some API key bullshit needed!

Example how the library is used:


 
Code:
 
require("dotenv").config()
import Revolut from '../../lib/index'

let sleep = (ms: number) => new Promise(resolve => setTimeout(resolve, ms));

(async () => {
    //Make sure we have the environment variables
    if(!process.env.NUMBER || !process.env.PASSCODE) {
        throw new Error('Missing environment variables')
    }

    //Create a new instance of a revolut account
    let revolut = new Revolut(process.env.NUMBER, process.env.PASSCODE)

    //Signin with the credentials given in the constructor
    await revolut.signin()

    //Get all cards on the account
    console.log(await revolut.getCards())
    
    //Create a new virtual card with the label "hello!"
    let card = await revolut.newVirtualCard("hello!")

    //Get the expiry date, cvv and pan of the credit card
    let details = await revolut.getCardSecrets(card.id)
    console.log(details)

    //Revolut takes ~500ms to process the new card into their system
    await sleep(1000);
    
    //Delete the newly created card
    //await revolut.deleteCard(card.id)
})()



See Github below:

damn thats some actual work lol
This post is by a banned member (asdas123cc) - Unhide
505
Posts
26
Threads
2 Years of service
#13
(18 July, 2023 - 01:19 AM)DarknessTom Wrote: Show More
I originally had the source code private. This project was actually really fun yet tedious to do, Revolut has some good obfuscation in play and finding then reversing their decrypt function was pretty painful.

Don't get confused, this isn't some 3rd party API. This is a NodeJS library that uses Revolut's internal API. 

This was made to be used by personal Revolut accounts, no business or some API key bullshit needed!

Example how the library is used:


 
Code:
 
require("dotenv").config()
import Revolut from '../../lib/index'

let sleep = (ms: number) => new Promise(resolve => setTimeout(resolve, ms));

(async () => {
    //Make sure we have the environment variables
    if(!process.env.NUMBER || !process.env.PASSCODE) {
        throw new Error('Missing environment variables')
    }

    //Create a new instance of a revolut account
    let revolut = new Revolut(process.env.NUMBER, process.env.PASSCODE)

    //Signin with the credentials given in the constructor
    await revolut.signin()

    //Get all cards on the account
    console.log(await revolut.getCards())
    
    //Create a new virtual card with the label "hello!"
    let card = await revolut.newVirtualCard("hello!")

    //Get the expiry date, cvv and pan of the credit card
    let details = await revolut.getCardSecrets(card.id)
    console.log(details)

    //Revolut takes ~500ms to process the new card into their system
    await sleep(1000);
    
    //Delete the newly created card
    //await revolut.deleteCard(card.id)
})()



See Github below:

thanks!!!

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 5 Guest(s)