This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// check balance | |
const blocktrail = require('blocktrail-sdk'); | |
const client = blocktrail.BlocktrailSDK({ | |
apiKey: '', | |
apiSecret: '', | |
network: 'BCC', | |
testnet: true | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x550a9aabaD84EdBd1661F969849A9BDC720cf34d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.thumbnail { | |
margin: 5px, | |
padding: 5px, | |
background-color: #91969A, | |
border-radius: 3px, | |
min-width: 66px | |
} | |
.sponsored { | |
background-color: #F9BF3B, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Post extends React.Component { | |
onSponsorPost(){ | |
if(this.props.post.type === 'sponsored'){ | |
return '#F9BF3B' //gold color | |
} | |
} | |
render(){ | |
// web |