Skip to main content

hexdump

Running

❗ Remember to setup transform-hub locally or use the platform's environment for the sequence deployment.

Open two terminals and run the following commands:

The first terminal

# go to 'hexdump' directory
cd typescript/hexdump

# install dependencies
npm install

# transpile TS->JS and copy node_modules and package.json to dist/
npm run build

# deploy the Sequence from the dist/ directory, which contains transpiled code, package.json and node_modules
si seq deploy dist
# copy instance _id - you'll use this in 3rd terminal window

# see the Instance output
si inst output -

The second terminal

# replace INSTANCE_ID with actual instance ID and pipe scramjet.ico as binary to instance input
si inst input <INSTANCE_ID> scramjet.ico -t application/octet-stream

Check output in the third terminal to see hex format of scramjet.ico file.

Expected output

0000010001001010000001002000680400001600000028000000100000002000000001002000000000000004000000000000000000000000000000000000fffffffffffffffffffffffff9fbffffe1eefdfffffffffffefeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe9f3feffffffffffcce2fcffd7e9fcfffffffdfffdfdfdfffefefdfffefdfcfffffffefffffffffffffffffffffffffffffffffffffffffffefeffffffffffffddecfdffc0dcfbffa3caf7ff7cb5f5ffe8f4fffffffffffffefefffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffefeffffffffffffa6ccf8ff4198f9ff3896ffffaca39effe7c39ffff0e4daffe6ceb8fffaf5f0fffffffffffffffefffffffffffffffffffffffffffffffffffefeffffffffffffe4f1ffff6c9fdbffa98666ffbb6c1fffb06822ffb46b26ffb0641cfff1e3d5fffffffffffefefdfffffffffffffffffffffffffffffffffffffffffffefefeffffffffffc98d51ffa95300ffb3702fffb7702dffb56f2bffb56d29fff0e2d5fffffffffffefefdfffffffffffffffffffffffffffffffffffffffffffffefeffffffffffbe8854ffa5580cffad641dffb6702effb56f2bffb36a24ffefdfd0fffffffffffefdfdfffffffffffffffffffffffffffffffffffefdfcffffffffffe2c8b0ffa14f00ffab6118ffaa6018ffaf6823ffb7712fffb26822ffedddccfffffffffffefdfdfffffffffffffffffffffffffffffffffffefefdffffffffffe9d6c3ffbf864fffaa5f15ffa45405ffa85c12ffb4702effb1661effdcbb9afffffffffffefdfcfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0e3d7ffd0a77effae6620ffa85c12ffb46d2affbf8146fffdfbf8fffffffffffffffefffffffffffffffffffffffffffffffffffffffffffefdfdfffefefdfffffefefffffffffff3e8deffb26e2cffab6017ffb46c26ffe5ccb4fffffffffffefdfcfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffefdfdfffdfcfafffffffffff5ece3ffb57434ffa95b10ffca9766fffffffffffffefefffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffefdfcfffffffffff6eee7ffb7793bffae631bfff1e3d5fffffffffffefefdfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffefdfcfffffffffff8f2ecffb77738ffcd9d6ffffffffffffefdfcfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffefdfcfffffffffff7f1ebffc69361fff4e9defffffffffffefefdfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffefdfcfffffffffff5ebe2ffecdbcafffffffffffefefeff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Check out the source on GitHub

Was it helpful?

Didn't find information needed?

Join our Scramjet Community on Discord, where you can get help from our engineers directly.